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 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.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.006962/0.006963, allocations: 99.75 kB / 15.73 MB, free: 6.043 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.001535/0.001535, allocations: 192.2 kB / 16.67 MB, free: 5.953 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.36/1.36, allocations: 205.1 MB / 222.6 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05823/0.05823, allocations: 10.75 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.001495/0.001495, allocations: 68.47 kB / 390.3 MB, free: 5.52 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2441, allocations: 49.02 MB / 439.4 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPI_bias): time 0.003161/0.2473, allocations: 2.109 MB / 441.5 MB, free: 3.566 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001176/0.2485, allocations: 0.5383 MB / 442 MB, free: 3.195 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002703/0.2488, allocations: 13.81 kB / 442 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002137/0.2491, allocations: 55.92 kB / 442.1 MB, free: 3.148 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001313/0.2492, allocations: 36.28 kB / 442.1 MB, free: 3.121 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007451/0.2499, allocations: 260.2 kB / 442.4 MB, free: 2.984 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004987/0.2505, allocations: 0.5082 MB / 442.9 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001602/0.2506, allocations: 79.77 kB / 443 MB, free: 2.738 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001728/0.2508, allocations: 175.6 kB / 443.1 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002285/0.251, allocations: 186.5 kB / 443.3 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.278e-05/0.2511, allocations: 29.19 kB / 443.3 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.355e-05/0.2512, allocations: 27.78 kB / 443.4 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001444/0.2513, allocations: 122.1 kB / 443.5 MB, free: 2.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001305/0.2514, allocations: 175.5 kB / 443.7 MB, free: 2.395 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004019/0.2519, allocations: 378.8 kB / 444 MB, free: 2.227 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.2519, allocations: 4 kB / 444 MB, free: 2.223 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2519, allocations: 1.156 kB / 444 MB, free: 2.223 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.418e-06/0.2519, allocations: 0.5156 kB / 444 MB, free: 2.223 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001046/0.2529, allocations: 0.7209 MB / 444.8 MB, free: 1.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.253, allocations: 13.02 kB / 444.8 MB, free: 1.656 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.713e-05/0.2531, allocations: 75.28 kB / 444.8 MB, free: 1.594 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.422e-05/0.2531, allocations: 54.52 kB / 444.9 MB, free: 1.562 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004584/0.2536, allocations: 398.4 kB / 445.3 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.667e-05/0.2536, allocations: 27.72 kB / 445.3 MB, free: 1.242 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.072e-05/0.2537, allocations: 40.02 kB / 445.4 MB, free: 1.227 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006528/0.2544, allocations: 417.8 kB / 445.8 MB, free: 1.043 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.433e-05/0.2544, allocations: 11.77 kB / 445.8 MB, free: 1.035 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.131e-05/0.2544, allocations: 10.62 kB / 445.8 MB, free: 1.027 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.2544, allocations: 9 kB / 445.8 MB, free: 1.027 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005702/0.255, allocations: 313.6 kB / 446.1 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002168/0.2572, allocations: 1.522 MB / 447.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007598/0.258, allocations: 237.8 kB / 447.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002139/0.2582, allocations: 121.5 kB / 448 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.087e-05/0.2582, allocations: 3.719 kB / 448 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.2583, allocations: 35.84 kB / 448 MB, free: 15.69 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.543e-06/0.2583, allocations: 0 / 448 MB, free: 15.69 MB / 334.1 MB Notification: Performance of matching and sorting (n=25): time 0.0006932/0.259, allocations: 360.7 kB / 448.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.401e-05/0.259, allocations: 54.94 kB / 448.4 MB, free: 15.44 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003979/0.2594, allocations: 405.8 kB / 448.8 MB, free: 15.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.258e-05/0.2595, allocations: 34.86 kB / 448.8 MB, free: 15.14 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001569/0.2596, allocations: 240.9 kB / 449.1 MB, free: 14.93 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.949e-05/0.2597, allocations: 102.6 kB / 449.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/0.2598, allocations: 80.08 kB / 449.3 MB, free: 14.78 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.26, allocations: 350.3 kB / 449.6 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002109/0.2602, allocations: 103.3 kB / 449.7 MB, free: 14.39 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002713/0.2605, allocations: 223.3 kB / 449.9 MB, free: 14.2 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001914/0.2624, allocations: 0.676 MB / 450.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.2624, allocations: 4 kB / 450.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006823/0.2631, allocations: 453.6 kB / 451 MB, free: 13.53 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.2631, allocations: 7.094 kB / 451.1 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.2631, allocations: 7.312 kB / 451.1 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.2632, allocations: 6.438 kB / 451.1 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004021/0.2636, allocations: 104.4 kB / 451.2 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.2636, allocations: 5.906 kB / 451.2 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001933/0.2638, allocations: 51.83 kB / 451.2 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.701e-05/0.2638, allocations: 17.69 kB / 451.2 MB, free: 13.46 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 (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.0002256/0.264, allocations: 204.2 kB / 451.4 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.555e-05/0.2641, allocations: 45 kB / 451.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005874/0.2647, allocations: 341.8 kB / 451.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.2647, allocations: 6.734 kB / 451.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2647, allocations: 1.375 kB / 451.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.2647, allocations: 3.984 kB / 451.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004108/0.2652, allocations: 393.6 kB / 452.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2652, allocations: 1.094 kB / 452.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004379/0.2656, allocations: 83.06 kB / 452.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.2656, allocations: 5.156 kB / 452.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.662e-05/0.2657, allocations: 8.094 kB / 452.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.2657, allocations: 2.094 kB / 452.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.2657, allocations: 3.938 kB / 452.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007382/0.2664, allocations: 0.5243 MB / 452.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.933e-05/0.2665, allocations: 121 kB / 453 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.719e-05/0.2666, allocations: 11.69 kB / 453 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001612/0.2667, allocations: 14.17 kB / 453 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.261e-05/0.2668, allocations: 17.5 kB / 453 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.682e-05/0.2668, allocations: 8.688 kB / 453 MB, free: 12.2 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002691/0.2671, allocations: 275.6 kB / 453.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2671, allocations: 1.125 kB / 453.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003494/0.2675, allocations: 71.69 kB / 453.3 MB, free: 12 MB / 334.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.0009958/0.2685, allocations: 1.071 MB / 454.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005354/0.269, allocations: 309.2 kB / 454.7 MB, free: 11.01 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.269, allocations: 0 / 454.7 MB, free: 11.01 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002276/0.2693, allocations: 136.3 kB / 454.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003709/0.2696, allocations: 42.45 kB / 454.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004297/0.2739, allocations: 3.745 MB / 458.6 MB, free: 8.277 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003931/0.2744, allocations: 0.8386 MB / 459.5 MB, free: 7.512 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001976/0.2746, allocations: 76.25 kB / 459.6 MB, free: 7.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001963/0.2748, allocations: 149.5 kB / 459.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2748, allocations: 1.312 kB / 459.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02428/0.2991, allocations: 6.571 MB / 466.3 MB, free: 1.582 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.848/8.147, allocations: 20 kB / 466.3 MB, free: 1.562 MB / 334.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)