Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_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.TestPI_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPI_bias",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPI_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPI_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.00935/0.00935, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001989/0.001989, allocations: 200.1 kB / 16.68 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.571/1.571, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.1841/0.1841, allocations: 11.18 MB / 301.7 MB, free: 1.355 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001902/0.001902, allocations: 71.89 kB / 417.3 MB, free: 6.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.2436, allocations: 51.99 MB / 469.3 MB, free: 16.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPI_bias): time 0.003293/0.247, allocations: 2.247 MB / 471.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00106/0.248, allocations: 0.5863 MB / 472.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001772/0.2482, allocations: 14.69 kB / 472.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002136/0.2485, allocations: 69.31 kB / 472.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001009/0.2486, allocations: 36.25 kB / 472.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006917/0.2493, allocations: 280 kB / 472.6 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005444/0.2498, allocations: 0.5722 MB / 473.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001822/0.25, allocations: 96.73 kB / 473.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001839/0.2502, allocations: 188.3 kB / 473.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002596/0.2505, allocations: 196.8 kB / 473.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.27e-05/0.2506, allocations: 35.61 kB / 473.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.232e-05/0.2506, allocations: 31.62 kB / 473.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001425/0.2508, allocations: 133.8 kB / 473.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001584/0.2509, allocations: 204 kB / 474 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004107/0.2514, allocations: 411.9 kB / 474.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.2514, allocations: 0.7812 kB / 474.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.2514, allocations: 0 / 474.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.177e-06/0.2514, allocations: 5 kB / 474.4 MB, free: 13.47 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001057/0.2525, allocations: 0.7726 MB / 475.2 MB, free: 12.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.2525, allocations: 13.67 kB / 475.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.771e-05/0.2526, allocations: 80.64 kB / 475.3 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.921e-05/0.2527, allocations: 62.56 kB / 475.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004492/0.2531, allocations: 399.3 kB / 475.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.724e-05/0.2532, allocations: 37.22 kB / 475.8 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.655e-05/0.2532, allocations: 44.7 kB / 475.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006301/0.2539, allocations: 487.5 kB / 476.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.624e-05/0.2539, allocations: 10.2 kB / 476.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.344e-05/0.2539, allocations: 17.16 kB / 476.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.224e-05/0.254, allocations: 9.312 kB / 476.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005576/0.2545, allocations: 341.3 kB / 476.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002113/0.2566, allocations: 1.94 MB / 478.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007192/0.2574, allocations: 233.2 kB / 478.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001989/0.2576, allocations: 127.3 kB / 478.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.234e-05/0.2576, allocations: 6.141 kB / 478.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.663e-05/0.2577, allocations: 40.09 kB / 479 MB, free: 9.965 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.024e-06/0.2577, allocations: 0 / 479 MB, free: 9.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.0007038/0.2584, allocations: 366.1 kB / 479.3 MB, free: 9.777 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.467e-05/0.2584, allocations: 59.48 kB / 479.4 MB, free: 9.711 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004165/0.2588, allocations: 441.9 kB / 479.8 MB, free: 9.438 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.2589, allocations: 30.77 kB / 479.9 MB, free: 9.402 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/0.259, allocations: 279.2 kB / 480.1 MB, free: 9.152 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.589e-05/0.2591, allocations: 96 kB / 480.2 MB, free: 9.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001397/0.2592, allocations: 91.89 kB / 480.3 MB, free: 9.012 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.941e-05/0.2593, allocations: 357.4 kB / 480.7 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002107/0.2595, allocations: 120.6 kB / 480.8 MB, free: 8.602 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002577/0.2598, allocations: 274.1 kB / 481 MB, free: 8.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001852/0.2617, allocations: 0.7491 MB / 481.8 MB, free: 7.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.2617, allocations: 10.53 kB / 481.8 MB, free: 7.812 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0007183/0.2624, allocations: 0.4929 MB / 482.3 MB, free: 7.559 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.2624, allocations: 7.906 kB / 482.3 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.2624, allocations: 4.562 kB / 482.3 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.362e-05/0.2625, allocations: 12.09 kB / 482.3 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003994/0.2629, allocations: 113.6 kB / 482.4 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/0.2629, allocations: 15.53 kB / 482.4 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002059/0.2631, allocations: 63.23 kB / 482.5 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.041e-05/0.2631, allocations: 21.47 kB / 482.5 MB, free: 7.473 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: 24 * 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 (59): * Single equations (assignments): 59 * 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.0002312/0.2634, allocations: 204.2 kB / 482.7 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.332e-05/0.2634, allocations: 42.53 kB / 482.8 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005951/0.264, allocations: 343 kB / 483.1 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.2641, allocations: 6.938 kB / 483.1 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.2641, allocations: 0.9688 kB / 483.1 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.2641, allocations: 0 / 483.1 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004198/0.2645, allocations: 423 kB / 483.5 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.2645, allocations: 0 / 483.5 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004225/0.265, allocations: 83.64 kB / 483.6 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.087e-06/0.265, allocations: 1.156 kB / 483.6 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.063e-05/0.265, allocations: 12.83 kB / 483.6 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.265, allocations: 5.031 kB / 483.6 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.265, allocations: 0 / 483.6 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007112/0.2657, allocations: 0.5213 MB / 484.1 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.968e-05/0.2658, allocations: 126.5 kB / 484.3 MB, free: 6.234 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.652e-05/0.2659, allocations: 7.562 kB / 484.3 MB, free: 6.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001565/0.266, allocations: 19.02 kB / 484.3 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.872e-05/0.2661, allocations: 16.03 kB / 484.3 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.678e-05/0.2661, allocations: 9.719 kB / 484.3 MB, free: 6.207 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002559/0.2664, allocations: 293.2 kB / 484.6 MB, free: 6.031 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2664, allocations: 0 / 484.6 MB, free: 6.031 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003821/0.2668, allocations: 77.69 kB / 484.7 MB, free: 6.008 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 11 (R.FBout,R_Bias.FBout,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 (29): * Single equations (assignments): 29 * 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.0008347/0.2676, allocations: 1.086 MB / 485.8 MB, free: 5.137 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005339/0.2681, allocations: 328.7 kB / 486.1 MB, free: 5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2682, allocations: 1.438 kB / 486.1 MB, free: 5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000192/0.2684, allocations: 132.8 kB / 486.2 MB, free: 4.945 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003534/0.2687, allocations: 47.94 kB / 486.3 MB, free: 4.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004037/0.2728, allocations: 3.994 MB / 490.3 MB, free: 2.047 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002655/0.273, allocations: 0.8507 MB / 491.1 MB, free: 1.277 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000204/0.2733, allocations: 87.59 kB / 491.2 MB, free: 1.238 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001725/0.2734, allocations: 156.1 kB / 491.4 MB, free: 1.109 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2734, allocations: 3.938 kB / 491.4 MB, free: 1.105 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03894/0.3124, allocations: 6.981 MB / 498.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.586/8.899, allocations: 12.55 kB / 498.4 MB, free: 11.53 MB / 366.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_bias.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_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_TestPI_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_bias.pipe 2>&1)