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 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.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.001848/0.001848, allocations: 112.5 kB / 15.73 MB, free: 68 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001706/0.001706, allocations: 192.7 kB / 16.66 MB, free: 6.586 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.1689/0.1689, allocations: 11.19 MB / 301.7 MB, free: 1.285 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001844/0.001844, allocations: 63.89 kB / 417.3 MB, free: 6.078 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2449, allocations: 51.97 MB / 469.3 MB, free: 16.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_bias): time 0.003329/0.2482, allocations: 2.256 MB / 471.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001575/0.2498, allocations: 1.024 MB / 472.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000179/0.2501, allocations: 15.59 kB / 472.6 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00027/0.2503, allocations: 91.17 kB / 472.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001278/0.2505, allocations: 67.75 kB / 472.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009255/0.2514, allocations: 340.9 kB / 473.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006162/0.252, allocations: 0.627 MB / 473.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001791/0.2522, allocations: 91.47 kB / 473.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002447/0.2525, allocations: 219.5 kB / 474 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003447/0.2528, allocations: 247.2 kB / 474.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.655e-05/0.2529, allocations: 35.06 kB / 474.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000201/0.2531, allocations: 110.1 kB / 474.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001491/0.2533, allocations: 162.6 kB / 474.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001634/0.2534, allocations: 232.6 kB / 474.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005227/0.254, allocations: 0.5284 MB / 475.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.254, allocations: 0 / 475.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.254, allocations: 4 kB / 475.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.817e-06/0.254, allocations: 1.375 kB / 475.3 MB, free: 12.76 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: 108 * Number of variables: 108 Notification: Performance of Generate backend data structure: time 0.001277/0.2553, allocations: 0.8906 MB / 476.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.2553, allocations: 13.11 kB / 476.2 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.896e-05/0.2554, allocations: 86.83 kB / 476.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.931e-05/0.2555, allocations: 66.52 kB / 476.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005074/0.256, allocations: 460.1 kB / 476.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.152e-05/0.2561, allocations: 31.19 kB / 476.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.803e-05/0.2562, allocations: 51.05 kB / 476.9 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007392/0.2569, allocations: 0.5544 MB / 477.5 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.769e-05/0.2569, allocations: 8.562 kB / 477.5 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.891e-05/0.257, allocations: 16.53 kB / 477.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/0.257, allocations: 10.53 kB / 477.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006084/0.2576, allocations: 410.4 kB / 477.9 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002409/0.26, allocations: 2.16 MB / 480.1 MB, free: 9.168 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005/0.2606, allocations: 276.4 kB / 480.3 MB, free: 9.027 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002572/0.2608, allocations: 184.4 kB / 480.5 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.188e-05/0.2609, allocations: 3.5 kB / 480.5 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003442/0.2612, allocations: 261.4 kB / 480.8 MB, free: 8.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 1.944e-06/0.2612, allocations: 0 / 480.8 MB, free: 8.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.0009536/0.2622, allocations: 0.5799 MB / 481.3 MB, free: 8.453 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.497e-05/0.2622, allocations: 90.03 kB / 481.4 MB, free: 8.352 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004676/0.2627, allocations: 0.5088 MB / 481.9 MB, free: 8.043 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.37e-05/0.2627, allocations: 31.8 kB / 482 MB, free: 8.008 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/0.2629, allocations: 310.1 kB / 482.3 MB, free: 7.734 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.322e-05/0.263, allocations: 139.9 kB / 482.4 MB, free: 7.613 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001325/0.2631, allocations: 120.4 kB / 482.5 MB, free: 7.539 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.839e-05/0.2632, allocations: 366.3 kB / 482.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002507/0.2635, allocations: 168.6 kB / 483.1 MB, free: 7.113 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003343/0.2638, allocations: 363 kB / 483.4 MB, free: 6.789 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001931/0.2657, allocations: 1.108 MB / 484.5 MB, free: 6.008 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.9e-06/0.2658, allocations: 5.125 kB / 484.5 MB, free: 6.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0009651/0.2667, allocations: 0.7575 MB / 485.3 MB, free: 5.613 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.965e-05/0.2668, allocations: 43.88 kB / 485.3 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.2668, allocations: 5.719 kB / 485.3 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.878e-05/0.2668, allocations: 12.69 kB / 485.3 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004563/0.2673, allocations: 131 kB / 485.5 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.753e-05/0.2673, allocations: 16.17 kB / 485.5 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002603/0.2676, allocations: 70.88 kB / 485.6 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.171e-05/0.2676, allocations: 26.28 kB / 485.6 MB, free: 5.484 MB / 350.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: 27 * Number of states: 0 () * Number of discrete variables: 15 (Disturbance.nextEventScaled,Disturbance.nextEvent,$PRE.Disturbance.nextEvent,Disturbance.last,Disturbance.b,Disturbance.a,$whenCondition1,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 (74): * Single equations (assignments): 73 * 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.0003235/0.268, allocations: 281.7 kB / 485.9 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.991e-05/0.268, allocations: 52.42 kB / 485.9 MB, free: 5.227 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007649/0.2688, allocations: 0.532 MB / 486.4 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.2688, allocations: 10.72 kB / 486.4 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.2688, allocations: 1.406 kB / 486.4 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.2688, allocations: 4 kB / 486.5 MB, free: 4.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004043/0.2692, allocations: 495.4 kB / 486.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.2693, allocations: 0 / 486.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004715/0.2697, allocations: 79.52 kB / 487 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.2698, allocations: 2.5 kB / 487 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.856e-05/0.2698, allocations: 19.83 kB / 487 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.2698, allocations: 5.438 kB / 487 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2698, allocations: 0 / 487 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008906/0.2707, allocations: 0.715 MB / 487.8 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.562e-05/0.2708, allocations: 129.7 kB / 487.9 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.357e-05/0.2708, allocations: 15.86 kB / 487.9 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001517/0.271, allocations: 19.27 kB / 487.9 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.759e-05/0.2711, allocations: 22.69 kB / 487.9 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.142e-05/0.2711, allocations: 12.34 kB / 488 MB, free: 3.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003035/0.2714, allocations: 354.6 kB / 488.3 MB, free: 3.723 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2714, allocations: 1.156 kB / 488.3 MB, free: 3.723 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004158/0.2719, allocations: 124.4 kB / 488.4 MB, free: 3.688 MB / 350.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.001111/0.273, allocations: 1.293 MB / 489.7 MB, free: 2.766 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000733/0.2737, allocations: 0.5622 MB / 490.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2737, allocations: 0 / 490.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002824/0.274, allocations: 274.2 kB / 490.5 MB, free: 2.316 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003222/0.2744, allocations: 58.58 kB / 490.6 MB, free: 2.277 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005522/0.2799, allocations: 5.105 MB / 495.7 MB, free: 13.74 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000536/0.2804, allocations: 0.8937 MB / 496.6 MB, free: 12.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002698/0.2807, allocations: 112.3 kB / 496.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002546/0.281, allocations: 191.4 kB / 496.9 MB, free: 12.53 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.281, allocations: 0 / 496.9 MB, free: 12.53 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03341/0.3144, allocations: 9.294 MB / 0.4943 GB, free: 3.395 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.497/8.811, allocations: 6.438 kB / 0.4943 GB, free: 3.391 MB / 366.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_bias_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe 2>&1)