Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.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/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.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(ThermoPower.Examples.HRB.Simulators.TestPI,fileNamePrefix="ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Examples.HRB.Simulators.TestPI,fileNamePrefix="ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI",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.001148/0.001148, allocations: 117.9 kB / 16.63 MB, free: 6.812 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.00113/0.00113, allocations: 189.8 kB / 17.55 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.201/1.201, allocations: 205.1 MB / 223.4 MB, free: 12.44 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2437/0.2437, allocations: 48.83 MB / 319.6 MB, free: 11.27 MB / 270.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.001414/0.001414, allocations: 69.39 kB / 389.7 MB, free: 48.96 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08606/0.08749, allocations: 59.16 MB / 448.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.002793/0.09032, allocations: 1.71 MB / 450.5 MB, free: 8.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001108/0.09145, allocations: 0.6943 MB / 451.2 MB, free: 7.586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.352e-05/0.09156, allocations: 4 kB / 451.2 MB, free: 7.582 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001805/0.09175, allocations: 43.86 kB / 451.3 MB, free: 7.539 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.025e-05/0.09187, allocations: 55.73 kB / 451.3 MB, free: 7.484 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004548/0.09233, allocations: 103.8 kB / 451.4 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002247/0.09257, allocations: 175.5 kB / 451.6 MB, free: 7.211 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.076e-05/0.09266, allocations: 13.73 kB / 451.6 MB, free: 7.199 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.947e-05/0.09276, allocations: 71.81 kB / 451.7 MB, free: 7.129 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001434/0.09291, allocations: 99.64 kB / 451.8 MB, free: 7.031 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.444e-05/0.09294, allocations: 12 kB / 451.8 MB, free: 7.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001197/0.09307, allocations: 79.92 kB / 451.9 MB, free: 6.941 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.999e-05/0.09314, allocations: 39.84 kB / 451.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.503e-05/0.09322, allocations: 67.59 kB / 452 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002458/0.09347, allocations: 191.4 kB / 452.2 MB, free: 6.648 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.09348, allocations: 0 / 452.2 MB, free: 6.648 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.09349, allocations: 0 / 452.2 MB, free: 6.648 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.09351, allocations: 0 / 452.2 MB, free: 6.648 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0006449/0.09415, allocations: 0.5253 MB / 452.7 MB, free: 6.062 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.0942, allocations: 11.89 kB / 452.7 MB, free: 6.051 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.151e-05/0.09424, allocations: 42.73 kB / 452.7 MB, free: 6 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.923e-05/0.0943, allocations: 20.75 kB / 452.8 MB, free: 5.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002084/0.09451, allocations: 219.9 kB / 453 MB, free: 5.727 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.762e-05/0.09454, allocations: 8.375 kB / 453 MB, free: 5.719 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.634e-05/0.09457, allocations: 12.38 kB / 453 MB, free: 5.707 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003191/0.0949, allocations: 176.2 kB / 453.2 MB, free: 5.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.09491, allocations: 0 / 453.2 MB, free: 5.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.911e-05/0.09494, allocations: 8 kB / 453.2 MB, free: 5.512 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.09495, allocations: 0 / 453.2 MB, free: 5.512 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001953/0.09515, allocations: 95.88 kB / 453.3 MB, free: 5.418 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005385/0.09569, allocations: 0.5321 MB / 453.8 MB, free: 4.828 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002723/0.09598, allocations: 146.4 kB / 453.9 MB, free: 4.676 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001741/0.09616, allocations: 104.8 kB / 454 MB, free: 4.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.68e-05/0.09619, allocations: 7.984 kB / 454 MB, free: 4.562 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003209/0.09651, allocations: 177 kB / 454.2 MB, free: 4.371 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.663e-06/0.09653, allocations: 0 / 454.2 MB, free: 4.371 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007443/0.09727, allocations: 431 kB / 454.6 MB, free: 3.938 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.647e-05/0.09734, allocations: 89.05 kB / 454.7 MB, free: 3.832 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001663/0.09752, allocations: 190.8 kB / 454.9 MB, free: 3.633 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.153e-05/0.09755, allocations: 33.7 kB / 454.9 MB, free: 3.594 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.213e-05/0.09762, allocations: 116.5 kB / 455.1 MB, free: 3.477 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.061e-05/0.09766, allocations: 43.39 kB / 455.1 MB, free: 3.434 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.001e-05/0.09773, allocations: 41.64 kB / 455.1 MB, free: 3.387 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.826e-05/0.09784, allocations: 338.8 kB / 455.5 MB, free: 3.047 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00016/0.098, allocations: 83.94 kB / 455.6 MB, free: 2.965 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001724/0.09818, allocations: 123.6 kB / 455.7 MB, free: 2.832 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008129/0.099, allocations: 486.7 kB / 456.1 MB, free: 2.316 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.09901, allocations: 0 / 456.1 MB, free: 2.316 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000479/0.0995, allocations: 323 kB / 456.5 MB, free: 1.988 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.633e-05/0.09954, allocations: 41.69 kB / 456.5 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.09955, allocations: 0 / 456.5 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.09957, allocations: 4 kB / 456.5 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.09971, allocations: 27.92 kB / 456.5 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.09973, allocations: 7.984 kB / 456.5 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000118/0.09985, allocations: 23.83 kB / 456.6 MB, free: 1.879 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.533e-05/0.09987, allocations: 8 kB / 456.6 MB, free: 1.871 MB / 334.1 MB Warning: Assuming fixed start value for the following 1 variables: digitalPI.e_int:DISCRETE(start = digitalPI.CSstart / digitalPI.Kp * digitalPI.Ti fixed = true ) "Integrated error" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 (digitalPI.firstTrigger,$PRE.digitalPI.firstTrigger,digitalPI.sampleTrigger,$whenCondition1,$PRE.digitalPI.e_int,timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,digitalPI.CS,digitalPI.CSwind,digitalPI.e_int_wind,digitalPI.e_int,digitalPI.e,$whenCondition2,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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.0001743/0.1001, allocations: 183.5 kB / 456.8 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.062e-05/0.1001, allocations: 19.81 kB / 456.8 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.995e-05/0.1001, allocations: 17.86 kB / 456.8 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.1001, allocations: 0 / 456.8 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.1001, allocations: 4 kB / 456.8 MB, free: 1.641 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.583e-06/0.1002, allocations: 3.938 kB / 456.8 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000804/0.101, allocations: 0.6883 MB / 457.5 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.101, allocations: 3.984 kB / 457.5 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.742e-05/0.101, allocations: 4 kB / 457.5 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.101, allocations: 0 / 457.5 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.24e-05/0.1011, allocations: 11.94 kB / 457.5 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1011, allocations: 0 / 457.5 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.1011, allocations: 8 kB / 457.5 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007923/0.1019, allocations: 0.5741 MB / 458.1 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.293e-05/0.1019, allocations: 100.8 kB / 458.2 MB, free: 152 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.74e-05/0.102, allocations: 7.938 kB / 458.2 MB, free: 144 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001437/0.1021, allocations: 11.98 kB / 458.2 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.605e-05/0.1022, allocations: 12.05 kB / 458.2 MB, free: 120 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.1022, allocations: 12 kB / 458.2 MB, free: 108 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001211/0.1023, allocations: 156 kB / 458.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 3e-07/0.1023, allocations: 0 / 458.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002857/0.1026, allocations: 52 kB / 458.4 MB, free: 15.9 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 14 (digitalPI.sampleTrigger,$whenCondition1,$whenCondition2,digitalPI.firstTrigger,digitalPI.e,digitalPI.e_int,digitalPI.e_int_wind,digitalPI.CSwind,digitalPI.CS,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 7 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition2,digitalPI.e_int) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 6 * 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.001063/0.1037, allocations: 1.143 MB / 459.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004655/0.1042, allocations: 303.2 kB / 459.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1042, allocations: 320 / 459.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000233/0.1044, allocations: 203.1 kB / 460.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003336/0.1048, allocations: 43.95 kB / 460.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002952/0.1077, allocations: 2.468 MB / 462.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002457/0.108, allocations: 0.7201 MB / 463.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.947e-05/0.108, allocations: 8.641 kB / 463.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.296e-05/0.1081, allocations: 47.42 kB / 463.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1081, allocations: 0 / 463.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01433/0.1225, allocations: 4.116 MB / 467.5 MB, free: 6.641 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001786/0.1227, allocations: 189.3 kB / 467.7 MB, free: 6.383 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.697/1.82, allocations: 0 / 467.7 MB, free: 6.383 MB / 350.1 MB (rm -f ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe ; mkfifo ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe >> ../files/ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI.fmu > ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe 2>&1)