Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.TestPD_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_bias",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPD_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_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.006673/0.006674, allocations: 107.5 kB / 15.74 MB, free: 6.02 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.001712/0.001713, allocations: 193.3 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.381/1.381, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05946/0.05946, allocations: 10.75 MB / 280.7 MB, free: 10.42 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001691/0.001691, allocations: 71.89 kB / 390.3 MB, free: 5.523 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.2426, allocations: 49.02 MB / 439.4 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_bias): time 0.002781/0.2455, allocations: 2.176 MB / 441.5 MB, free: 3.531 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00152/0.247, allocations: 1.044 MB / 442.6 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001387/0.2472, allocations: 10.44 kB / 442.6 MB, free: 2.801 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002447/0.2474, allocations: 90.3 kB / 442.7 MB, free: 2.754 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001275/0.2475, allocations: 68.8 kB / 442.8 MB, free: 2.723 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007513/0.2483, allocations: 320.3 kB / 443.1 MB, free: 2.566 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000536/0.2489, allocations: 0.5877 MB / 443.7 MB, free: 2.328 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001627/0.249, allocations: 89.44 kB / 443.7 MB, free: 2.281 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002156/0.2492, allocations: 212.4 kB / 443.9 MB, free: 2.195 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002944/0.2496, allocations: 240.2 kB / 444.2 MB, free: 2.102 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.105e-05/0.2496, allocations: 34.59 kB / 444.2 MB, free: 2.102 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001795/0.2498, allocations: 109.7 kB / 444.3 MB, free: 2.078 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001526/0.25, allocations: 158.2 kB / 444.5 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001623/0.2501, allocations: 217.5 kB / 444.7 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005368/0.2507, allocations: 0.5029 MB / 445.2 MB, free: 1.645 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.2507, allocations: 5.562 kB / 445.2 MB, free: 1.641 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2507, allocations: 0 / 445.2 MB, free: 1.641 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.2507, allocations: 0 / 445.2 MB, free: 1.641 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001236/0.252, allocations: 0.8725 MB / 446.1 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.252, allocations: 14.36 kB / 446.1 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.722e-05/0.2521, allocations: 78.34 kB / 446.2 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.711e-05/0.2522, allocations: 65.7 kB / 446.2 MB, free: 0.875 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005595/0.2528, allocations: 439.6 kB / 446.7 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.585e-05/0.2528, allocations: 28.53 kB / 446.7 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.597e-05/0.2529, allocations: 49.05 kB / 446.7 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007705/0.2536, allocations: 0.5056 MB / 447.2 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.893e-05/0.2537, allocations: 16.59 kB / 447.3 MB, free: 304 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.752e-05/0.2537, allocations: 23.44 kB / 447.3 MB, free: 284 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.2538, allocations: 10.22 kB / 447.3 MB, free: 284 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006215/0.2544, allocations: 391.1 kB / 447.7 MB, free: 112 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002816/0.2572, allocations: 1.788 MB / 449.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005258/0.2578, allocations: 272.3 kB / 449.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000264/0.258, allocations: 177.3 kB / 449.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.099e-05/0.2581, allocations: 13.91 kB / 449.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003982/0.2585, allocations: 259.6 kB / 450.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of pre-optimization done (n=36): time 1.923e-06/0.2585, allocations: 0 / 450.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=36): time 0.001103/0.2596, allocations: 0.5744 MB / 450.7 MB, free: 14.04 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.499e-05/0.2597, allocations: 84.05 kB / 450.8 MB, free: 13.95 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006131/0.2603, allocations: 0.4932 MB / 451.3 MB, free: 13.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.121e-05/0.2603, allocations: 32.45 kB / 451.3 MB, free: 13.61 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002227/0.2606, allocations: 282.8 kB / 451.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.2607, allocations: 144.7 kB / 451.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001449/0.2608, allocations: 107.6 kB / 451.9 MB, free: 13.17 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.261, allocations: 369.8 kB / 452.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002709/0.2613, allocations: 161.8 kB / 452.4 MB, free: 12.73 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000394/0.2617, allocations: 338.4 kB / 452.7 MB, free: 12.44 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002267/0.264, allocations: 1.072 MB / 453.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.264, allocations: 1.125 kB / 453.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001246/0.2652, allocations: 0.7271 MB / 454.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.622e-05/0.2653, allocations: 38.84 kB / 454.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.2653, allocations: 6.438 kB / 454.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.122e-05/0.2654, allocations: 11.72 kB / 454.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005467/0.2659, allocations: 128.8 kB / 454.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.882e-05/0.266, allocations: 20.73 kB / 454.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002705/0.2662, allocations: 72.38 kB / 454.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.102e-05/0.2663, allocations: 24.44 kB / 454.8 MB, free: 11.19 MB / 334.1 MB Warning: Assuming fixed start value for the following 15 variables: processNoCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processNoCtrl.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] processNoCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessBias.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessBias.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessBias.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessBias.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessBias.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessCtrl.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 11 (Disturbance.nextEventScaled,Disturbance.nextEvent,$PRE.Disturbance.nextEvent,Disturbance.last,Disturbance.b,Disturbance.a,$whenCondition1,R_Bias.TS_in,R.TS_in,R_Bias.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 1 * 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.0003531/0.2666, allocations: 270.8 kB / 455.1 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.316e-05/0.2667, allocations: 58.81 kB / 455.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008477/0.2676, allocations: 0.5237 MB / 455.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.2676, allocations: 2.625 kB / 455.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.2676, allocations: 1.156 kB / 455.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.2676, allocations: 0 / 455.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005032/0.2681, allocations: 478.7 kB / 456.1 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.2681, allocations: 1.312 kB / 456.1 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004816/0.2686, allocations: 82.45 kB / 456.2 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.2686, allocations: 1.531 kB / 456.2 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.117e-05/0.2687, allocations: 20.58 kB / 456.2 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.2687, allocations: 5.375 kB / 456.2 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.2687, allocations: 4 kB / 456.2 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.2697, allocations: 0.7191 MB / 457 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.2699, allocations: 132 kB / 457.1 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.9e-05/0.2699, allocations: 12.19 kB / 457.1 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.2701, allocations: 14.89 kB / 457.1 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.469e-05/0.2702, allocations: 31.14 kB / 457.1 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.473e-05/0.2702, allocations: 15.89 kB / 457.2 MB, free: 9.656 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003734/0.2706, allocations: 341.2 kB / 457.5 MB, free: 9.457 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2706, allocations: 1.406 kB / 457.5 MB, free: 9.457 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004782/0.2711, allocations: 112.8 kB / 457.6 MB, free: 9.43 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 17 (R.Fin,R_Bias.Fin,ProcessCtrl.Y[3],ProcessCtrl.Y[4],ProcessCtrl.U[2],ProcessCtrl.U[3],ProcessCtrl.w,processNoCtrl.Y[3],processNoCtrl.Y[4],processNoCtrl.U[2],processNoCtrl.U[3],processNoCtrl.w,ProcessBias.Y[3],ProcessBias.Y[4],ProcessBias.U[2],ProcessBias.U[3],ProcessBias.w) * Number of discrete variables: 6 ($whenCondition1,Disturbance.a,Disturbance.b,Disturbance.last,Disturbance.nextEvent,Disturbance.nextEventScaled) * Number of discrete states: 6 (Disturbance.nextEvent,Disturbance.last,Disturbance.nextEventScaled,Disturbance.b,Disturbance.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * 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.001407/0.2725, allocations: 1.297 MB / 458.9 MB, free: 8.504 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007893/0.2733, allocations: 0.5518 MB / 459.5 MB, free: 8.219 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.2733, allocations: 2.531 kB / 459.5 MB, free: 8.219 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003252/0.2737, allocations: 276.2 kB / 459.7 MB, free: 8.055 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003635/0.2741, allocations: 52.06 kB / 459.8 MB, free: 8.02 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005515/0.2796, allocations: 4.954 MB / 464.7 MB, free: 2.832 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004264/0.28, allocations: 0.8859 MB / 465.6 MB, free: 1.922 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002731/0.2803, allocations: 112.1 kB / 465.7 MB, free: 1.812 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002278/0.2806, allocations: 179.4 kB / 465.9 MB, free: 1.637 MB / 334.1 MB Notification: Performance of SimCode: time 7.41e-07/0.2806, allocations: 0 / 465.9 MB, free: 1.637 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02668/0.3072, allocations: 9.033 MB / 474.9 MB, free: 8.656 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.248/8.556, allocations: 11.86 kB / 474.9 MB, free: 8.645 MB / 350.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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_TestPD_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe 2>&1)