Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_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.TestPID_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPID_bias",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPID_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPID_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.00716/0.00716, allocations: 99.38 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.001646/0.001646, allocations: 195.2 kB / 16.67 MB, free: 5.977 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.736/1.736, allocations: 205.1 MB / 222.6 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06444/0.06444, allocations: 10.74 MB / 280.7 MB, free: 10.41 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.002864/0.002864, allocations: 83 kB / 390.4 MB, free: 5.531 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/0.3465, allocations: 49.01 MB / 439.4 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPID_bias): time 0.003564/0.35, allocations: 2.196 MB / 441.6 MB, free: 3.527 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00141/0.3514, allocations: 0.6814 MB / 442.2 MB, free: 3.062 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001958/0.3516, allocations: 20.62 kB / 442.3 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002182/0.3519, allocations: 62.28 kB / 442.3 MB, free: 3.008 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001925/0.352, allocations: 50.77 kB / 442.4 MB, free: 2.969 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000736/0.3528, allocations: 330.7 kB / 442.7 MB, free: 2.797 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006568/0.3534, allocations: 0.5733 MB / 443.3 MB, free: 2.555 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001866/0.3536, allocations: 65.91 kB / 443.3 MB, free: 2.516 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002816/0.3539, allocations: 215.9 kB / 443.5 MB, free: 2.426 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003092/0.3542, allocations: 203.9 kB / 443.7 MB, free: 2.332 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.762e-05/0.3543, allocations: 32.34 kB / 443.8 MB, free: 2.332 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.739e-05/0.3543, allocations: 32.84 kB / 443.8 MB, free: 2.332 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001625/0.3545, allocations: 147.2 kB / 444 MB, free: 2.258 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001573/0.3547, allocations: 198.1 kB / 444.1 MB, free: 2.117 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005077/0.3552, allocations: 413.8 kB / 444.5 MB, free: 1.938 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.3552, allocations: 0 / 444.5 MB, free: 1.938 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3552, allocations: 0 / 444.5 MB, free: 1.938 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.572e-05/0.3552, allocations: 6.453 kB / 444.6 MB, free: 1.934 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001311/0.3565, allocations: 0.7928 MB / 445.3 MB, free: 1.332 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.3566, allocations: 13.73 kB / 445.4 MB, free: 1.328 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.662e-05/0.3566, allocations: 75.83 kB / 445.4 MB, free: 1.266 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.833e-05/0.3567, allocations: 59.53 kB / 445.5 MB, free: 1.234 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006859/0.3574, allocations: 429.8 kB / 445.9 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.532e-05/0.3575, allocations: 81.98 kB / 446 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.537e-05/0.3576, allocations: 50.91 kB / 446 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008703/0.3585, allocations: 465.6 kB / 446.5 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.809e-05/0.3585, allocations: 1.406 kB / 446.5 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.184e-05/0.3585, allocations: 17.12 kB / 446.5 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.569e-05/0.3586, allocations: 12.62 kB / 446.5 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007547/0.3593, allocations: 353.2 kB / 446.9 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002884/0.3622, allocations: 1.687 MB / 448.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009549/0.3632, allocations: 292 kB / 448.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002938/0.3634, allocations: 167.1 kB / 449 MB, free: 14.99 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.15e-05/0.3635, allocations: 7.172 kB / 449 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.839e-05/0.3635, allocations: 41.69 kB / 449.1 MB, free: 14.94 MB / 334.1 MB Notification: Performance of pre-optimization done (n=33): time 4.068e-06/0.3635, allocations: 4 kB / 449.1 MB, free: 14.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.001025/0.3646, allocations: 449.1 kB / 449.5 MB, free: 14.71 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.491e-05/0.3646, allocations: 55.09 kB / 449.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005361/0.3651, allocations: 418.6 kB / 450 MB, free: 14.39 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.197e-05/0.3652, allocations: 34.86 kB / 450 MB, free: 14.35 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002279/0.3654, allocations: 253.4 kB / 450.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.3655, allocations: 135.3 kB / 450.4 MB, free: 14.01 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001484/0.3657, allocations: 88.7 kB / 450.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002069/0.3659, allocations: 361 kB / 450.8 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002706/0.3662, allocations: 127.5 kB / 450.9 MB, free: 13.54 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003816/0.3666, allocations: 250.4 kB / 451.2 MB, free: 13.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002429/0.369, allocations: 0.7977 MB / 452 MB, free: 12.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.745e-06/0.369, allocations: 5.188 kB / 452 MB, free: 12.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001026/0.37, allocations: 0.5131 MB / 452.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.37, allocations: 6.594 kB / 452.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.37, allocations: 8.438 kB / 452.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.577e-05/0.3701, allocations: 9.906 kB / 452.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005543/0.3706, allocations: 123.5 kB / 452.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/0.3706, allocations: 5.625 kB / 452.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002442/0.3709, allocations: 55.98 kB / 452.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.27e-05/0.3709, allocations: 19.94 kB / 452.7 MB, free: 12.47 MB / 334.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: 16 * Number of states: 0 () * Number of discrete variables: 4 (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 (61): * Single equations (assignments): 61 * 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.0003757/0.3713, allocations: 210.2 kB / 452.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.212e-05/0.3714, allocations: 51.17 kB / 453 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008501/0.3722, allocations: 405.1 kB / 453.4 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.3723, allocations: 4.281 kB / 453.4 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.3723, allocations: 0 / 453.4 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.3723, allocations: 1.062 kB / 453.4 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006531/0.3729, allocations: 446.9 kB / 453.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.3729, allocations: 1.219 kB / 453.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005646/0.3735, allocations: 99.94 kB / 453.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.3735, allocations: 2.344 kB / 453.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.221e-05/0.3735, allocations: 20.3 kB / 453.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.3735, allocations: 1.062 kB / 453.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3735, allocations: 1.094 kB / 453.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001075/0.3746, allocations: 0.6089 MB / 454.5 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.3747, allocations: 134.2 kB / 454.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.063e-05/0.3748, allocations: 12.64 kB / 454.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001741/0.375, allocations: 22.27 kB / 454.7 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.996e-05/0.3751, allocations: 22.81 kB / 454.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.492e-05/0.3751, allocations: 11.94 kB / 454.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003576/0.3754, allocations: 285.9 kB / 455 MB, free: 10.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3754, allocations: 1 kB / 455 MB, free: 10.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000435/0.3759, allocations: 75.55 kB / 455.1 MB, free: 10.89 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 13 (R.Iaction,R.Fder,R_Bias.Iaction,R_Bias.Fder,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 (37): * Single equations (assignments): 37 * 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.001417/0.3773, allocations: 1.178 MB / 456.3 MB, free: 9.973 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007441/0.378, allocations: 344.7 kB / 456.6 MB, free: 9.832 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.378, allocations: 0 / 456.6 MB, free: 9.832 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002971/0.3783, allocations: 167.1 kB / 456.8 MB, free: 9.758 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004106/0.3787, allocations: 39.92 kB / 456.8 MB, free: 9.734 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00621/0.385, allocations: 4.123 MB / 460.9 MB, free: 6.852 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005597/0.3855, allocations: 0.8547 MB / 461.8 MB, free: 5.973 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002845/0.3858, allocations: 87.3 kB / 461.9 MB, free: 5.887 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002568/0.3861, allocations: 171.4 kB / 462 MB, free: 5.719 MB / 334.1 MB Notification: Performance of SimCode: time 1.543e-06/0.3861, allocations: 0 / 462 MB, free: 5.719 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03696/0.423, allocations: 7.426 MB / 469.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.745/9.168, allocations: 11.67 kB / 469.5 MB, free: 14.36 MB / 350.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_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_TestPID_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.pipe 2>&1)