Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_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.TestP_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_bias",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestP_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_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.008076/0.008076, allocations: 101 kB / 15.73 MB, free: 6.059 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.001924/0.001924, allocations: 194.1 kB / 16.67 MB, free: 5.969 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.51/1.51, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06385/0.06385, allocations: 11.21 MB / 301.7 MB, free: 4.047 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001886, allocations: 56.41 kB / 417.3 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1103, allocations: 51.99 MB / 469.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_bias): time 0.00366/0.114, allocations: 2.201 MB / 471.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001012/0.115, allocations: 448 kB / 472 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001652/0.1152, allocations: 19.81 kB / 472 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002584/0.1155, allocations: 63.33 kB / 472.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001027/0.1156, allocations: 35.61 kB / 472.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005276/0.1161, allocations: 219.6 kB / 472.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005842/0.1167, allocations: 0.4926 MB / 472.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002239/0.117, allocations: 96.8 kB / 472.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001933/0.1172, allocations: 159.4 kB / 473 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002581/0.1174, allocations: 187 kB / 473.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.999e-05/0.1175, allocations: 28 kB / 473.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.165e-05/0.1176, allocations: 28 kB / 473.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001492/0.1177, allocations: 127.6 kB / 473.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001798/0.1179, allocations: 186.8 kB / 473.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004438/0.1183, allocations: 390.3 kB / 474 MB, free: 10.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.1184, allocations: 0 / 474 MB, free: 10.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1184, allocations: 0 / 474 MB, free: 10.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.782e-06/0.1184, allocations: 4 kB / 474 MB, free: 10.3 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.001293/0.1197, allocations: 0.7441 MB / 474.7 MB, free: 9.496 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.4e-05/0.1197, allocations: 11.89 kB / 474.7 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001241/0.1199, allocations: 78.7 kB / 474.8 MB, free: 9.398 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/0.12, allocations: 64.56 kB / 474.9 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005792/0.1206, allocations: 387.9 kB / 475.2 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.468e-05/0.1206, allocations: 33.38 kB / 475.3 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.86e-05/0.1207, allocations: 48.27 kB / 475.3 MB, free: 8.836 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007473/0.1215, allocations: 459.9 kB / 475.8 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.433e-05/0.1215, allocations: 3.938 kB / 475.8 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.482e-05/0.1215, allocations: 16 kB / 475.8 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.524e-05/0.1215, allocations: 12 kB / 475.8 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005923/0.1221, allocations: 318.3 kB / 476.1 MB, free: 8.008 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002592/0.1247, allocations: 1.888 MB / 478 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004371/0.1252, allocations: 178.5 kB / 478.2 MB, free: 5.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000201/0.1254, allocations: 108.8 kB / 478.3 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.78e-05/0.1255, allocations: 4 kB / 478.3 MB, free: 5.727 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.517e-05/0.1255, allocations: 30.94 kB / 478.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.914e-06/0.1255, allocations: 4 kB / 478.3 MB, free: 5.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0006943/0.1262, allocations: 333 kB / 478.7 MB, free: 5.355 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.275e-05/0.1263, allocations: 55.41 kB / 478.7 MB, free: 5.289 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004779/0.1268, allocations: 429.8 kB / 479.1 MB, free: 4.859 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.963e-05/0.1268, allocations: 29.7 kB / 479.2 MB, free: 4.824 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002295/0.127, allocations: 268.1 kB / 479.4 MB, free: 4.555 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.022e-05/0.1271, allocations: 87.22 kB / 479.5 MB, free: 4.469 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/0.1272, allocations: 85.64 kB / 479.6 MB, free: 4.379 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001865/0.1274, allocations: 358.8 kB / 479.9 MB, free: 4.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001943/0.1276, allocations: 92.38 kB / 480 MB, free: 3.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003183/0.128, allocations: 253.4 kB / 480.3 MB, free: 3.617 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001532/0.1295, allocations: 0.631 MB / 480.9 MB, free: 2.918 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1295, allocations: 0 / 480.9 MB, free: 2.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007957/0.1303, allocations: 461.1 kB / 481.4 MB, free: 2.461 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.1303, allocations: 8 kB / 481.4 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.1304, allocations: 8 kB / 481.4 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.1304, allocations: 4 kB / 481.4 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003433/0.1307, allocations: 95.83 kB / 481.5 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.598e-05/0.1308, allocations: 11.94 kB / 481.5 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002057/0.131, allocations: 51.61 kB / 481.5 MB, free: 2.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.198e-05/0.131, allocations: 28.33 kB / 481.6 MB, free: 2.258 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 (51): * Single equations (assignments): 51 * 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.0002651/0.1313, allocations: 192.1 kB / 481.7 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.376e-05/0.1314, allocations: 43.7 kB / 481.8 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005659/0.1319, allocations: 293.1 kB / 482.1 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.1319, allocations: 4 kB / 482.1 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.132, allocations: 3.938 kB / 482.1 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.132, allocations: 0 / 482.1 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004745/0.1324, allocations: 401.3 kB / 482.5 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1325, allocations: 0 / 482.5 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003252/0.1328, allocations: 59.95 kB / 482.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.1328, allocations: 0 / 482.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.506e-05/0.1328, allocations: 8 kB / 482.5 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/0.1328, allocations: 4 kB / 482.5 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.1328, allocations: 7.875 kB / 482.6 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007369/0.1336, allocations: 476.5 kB / 483 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/0.1337, allocations: 120.8 kB / 483.1 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.093e-05/0.1338, allocations: 8 kB / 483.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001392/0.1339, allocations: 11.98 kB / 483.2 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.178e-05/0.134, allocations: 27.84 kB / 483.2 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.134, allocations: 4 kB / 483.2 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003099/0.1343, allocations: 287.1 kB / 483.5 MB, free: 256 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1343, allocations: 0 / 483.5 MB, free: 256 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003546/0.1347, allocations: 71.84 kB / 483.5 MB, free: 184 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (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 (23): * Single equations (assignments): 23 * 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.001093/0.1358, allocations: 1.015 MB / 484.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005359/0.1363, allocations: 288.4 kB / 484.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1363, allocations: 0 / 484.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002194/0.1365, allocations: 107.9 kB / 484.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003565/0.1369, allocations: 45.17 kB / 485 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004888/0.1418, allocations: 3.762 MB / 488.7 MB, free: 10.74 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005397/0.1424, allocations: 0.8383 MB / 489.6 MB, free: 9.875 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002023/0.1426, allocations: 83.16 kB / 489.7 MB, free: 9.793 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002075/0.1428, allocations: 150.4 kB / 489.8 MB, free: 9.652 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.1428, allocations: 0 / 489.8 MB, free: 9.652 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03435/0.1772, allocations: 6.45 MB / 496.3 MB, free: 3.359 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.596/8.773, allocations: 6.078 kB / 496.3 MB, free: 3.359 MB / 366.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_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_TestP_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias.pipe 2>&1)