Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_bias.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestI_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_bias",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestI_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_bias",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008219/0.008219, allocations: 98.52 kB / 15.73 MB, free: 5.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001784/0.001784, allocations: 187.6 kB / 16.67 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06446/0.06446, allocations: 11.21 MB / 301.7 MB, free: 4.062 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 59.44 kB / 417.3 MB, free: 19.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1073, allocations: 51.98 MB / 469.3 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_bias): time 0.003575/0.1109, allocations: 2.211 MB / 471.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.1121, allocations: 0.5426 MB / 472.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001529/0.1123, allocations: 11.94 kB / 472.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002238/0.1125, allocations: 63.33 kB / 472.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000105/0.1126, allocations: 35.61 kB / 472.2 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006726/0.1133, allocations: 259.5 kB / 472.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00065/0.114, allocations: 0.5394 MB / 473 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001998/0.1142, allocations: 92.8 kB / 473.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002209/0.1144, allocations: 175.4 kB / 473.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002823/0.1147, allocations: 195 kB / 473.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.669e-05/0.1148, allocations: 32 kB / 473.5 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.312e-05/0.1148, allocations: 32 kB / 473.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001561/0.115, allocations: 135.6 kB / 473.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001766/0.1152, allocations: 186.8 kB / 473.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004475/0.1156, allocations: 402.3 kB / 474.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1157, allocations: 0 / 474.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1157, allocations: 0 / 474.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.1157, allocations: 0 / 474.2 MB, free: 10.2 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001298/0.117, allocations: 0.7636 MB / 475 MB, free: 9.379 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.117, allocations: 15.88 kB / 475 MB, free: 9.363 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.432e-05/0.1171, allocations: 78.72 kB / 475.1 MB, free: 9.277 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.284e-05/0.1172, allocations: 60.56 kB / 475.1 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005675/0.1178, allocations: 395.9 kB / 475.5 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001012/0.1179, allocations: 88.97 kB / 475.6 MB, free: 8.691 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.436e-05/0.118, allocations: 44.33 kB / 475.6 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007756/0.1188, allocations: 475.7 kB / 476.1 MB, free: 8.148 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.333e-05/0.1188, allocations: 8 kB / 476.1 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.637e-05/0.1188, allocations: 19.94 kB / 476.1 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.2e-05/0.1189, allocations: 8 kB / 476.1 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006128/0.1195, allocations: 326.3 kB / 476.5 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002753/0.1222, allocations: 1.959 MB / 478.4 MB, free: 5.738 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004292/0.1227, allocations: 183.6 kB / 478.6 MB, free: 5.551 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002192/0.1229, allocations: 120.8 kB / 478.7 MB, free: 5.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.123, allocations: 0 / 478.7 MB, free: 5.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.173e-05/0.123, allocations: 50.88 kB / 478.8 MB, free: 5.371 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.132e-06/0.123, allocations: 0 / 478.8 MB, free: 5.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0007155/0.1237, allocations: 344.4 kB / 479.1 MB, free: 5.031 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.363e-05/0.1238, allocations: 55.41 kB / 479.1 MB, free: 4.965 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000484/0.1243, allocations: 421.8 kB / 479.6 MB, free: 4.543 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.1243, allocations: 33.7 kB / 479.6 MB, free: 4.504 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002189/0.1245, allocations: 272.2 kB / 479.9 MB, free: 4.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.57e-05/0.1246, allocations: 91.17 kB / 479.9 MB, free: 4.141 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/0.1247, allocations: 86.02 kB / 480 MB, free: 4.051 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.1249, allocations: 358.8 kB / 480.4 MB, free: 3.691 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002113/0.1251, allocations: 104.7 kB / 480.5 MB, free: 3.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003247/0.1255, allocations: 258.1 kB / 480.7 MB, free: 3.273 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001705/0.1272, allocations: 0.6773 MB / 481.4 MB, free: 2.531 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.1272, allocations: 0 / 481.4 MB, free: 2.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0008067/0.128, allocations: 477 kB / 481.9 MB, free: 2.059 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.208e-05/0.1281, allocations: 8 kB / 481.9 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.1281, allocations: 4.656 kB / 481.9 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.446e-05/0.1281, allocations: 8 kB / 481.9 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004141/0.1285, allocations: 107.8 kB / 482 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.553e-05/0.1286, allocations: 11.94 kB / 482 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002015/0.1288, allocations: 55.61 kB / 482.1 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.14e-05/0.1288, allocations: 16 kB / 482.1 MB, free: 1.852 MB / 350.1 MB Warning: Assuming fixed start value for the following 9 variables: ProcessBias.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessBias.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] ProcessBias.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processNoCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] processNoCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] ProcessCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 8 (R_Bias.TS_in,R.TS_in,R_Bias.satLOW_in,R_Bias.satHIGH_in,R_Bias.ATreq_in,R.satLOW_in,R.satHIGH_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002946/0.1291, allocations: 212 kB / 482.3 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.889e-05/0.1292, allocations: 43.7 kB / 482.3 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005985/0.1298, allocations: 297.1 kB / 482.6 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.1298, allocations: 4 kB / 482.6 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.1298, allocations: 4 kB / 482.6 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.1298, allocations: 0 / 482.6 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005272/0.1304, allocations: 417.2 kB / 483 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.1304, allocations: 0 / 483 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004157/0.1308, allocations: 67.89 kB / 483.1 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.1308, allocations: 0 / 483.1 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.878e-05/0.1308, allocations: 11.98 kB / 483.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.1308, allocations: 0 / 483.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.1309, allocations: 4 kB / 483.1 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007769/0.1316, allocations: 0.4963 MB / 483.6 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001052/0.1317, allocations: 124.8 kB / 483.7 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.26e-05/0.1318, allocations: 8 kB / 483.7 MB, free: 92 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001484/0.132, allocations: 7.984 kB / 483.8 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.432e-05/0.132, allocations: 23.91 kB / 483.8 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.1321, allocations: 4 kB / 483.8 MB, free: 56 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003272/0.1324, allocations: 295.1 kB / 484.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1324, allocations: 0 / 484.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003856/0.1328, allocations: 71.83 kB / 484.1 MB, free: 15.7 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 11 (R.Iout,R_Bias.Iout,ProcessCtrl.Y[3],ProcessCtrl.U[2],ProcessCtrl.w,processNoCtrl.Y[3],processNoCtrl.U[2],processNoCtrl.w,ProcessBias.Y[3],ProcessBias.U[2],ProcessBias.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001092/0.1339, allocations: 1.039 MB / 485.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005972/0.1345, allocations: 301.2 kB / 485.5 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1345, allocations: 0 / 485.5 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002124/0.1347, allocations: 123.7 kB / 485.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003793/0.1351, allocations: 48.8 kB / 485.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005061/0.1402, allocations: 3.866 MB / 489.5 MB, free: 10.1 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005447/0.1408, allocations: 0.8458 MB / 490.4 MB, free: 9.23 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002176/0.141, allocations: 75.22 kB / 490.4 MB, free: 9.156 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002192/0.1412, allocations: 143.4 kB / 490.6 MB, free: 9.016 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1412, allocations: 0 / 490.6 MB, free: 9.016 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03176/0.173, allocations: 6.618 MB / 497.2 MB, free: 2.559 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.569/8.742, allocations: 11.8 kB / 497.2 MB, free: 2.551 MB / 366.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_bias.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_bias_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_bias.pipe 2>&1)