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.001191/0.001191, allocations: 104 kB / 16.92 MB, free: 5.793 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.001175/0.001175, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.378/1.378, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2736/0.2736, allocations: 48.84 MB / 319.9 MB, free: 11.1 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.001509/0.001509, allocations: 70.14 kB / 390.2 MB, free: 48.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07836/0.07989, allocations: 59.15 MB / 449.3 MB, free: 9.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.002776/0.08269, allocations: 1.652 MB / 451 MB, free: 8.004 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.08384, allocations: 0.6991 MB / 451.7 MB, free: 7.297 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.03e-05/0.08395, allocations: 0 / 451.7 MB, free: 7.297 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00018/0.08414, allocations: 55.75 kB / 451.7 MB, free: 7.242 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.513e-05/0.08425, allocations: 59.72 kB / 451.8 MB, free: 7.184 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004436/0.0847, allocations: 119.7 kB / 451.9 MB, free: 7.066 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002138/0.08493, allocations: 171.5 kB / 452.1 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.555e-05/0.08503, allocations: 21.72 kB / 452.1 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.362e-05/0.08513, allocations: 63.83 kB / 452.2 MB, free: 6.816 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001437/0.08528, allocations: 91.7 kB / 452.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.982e-05/0.08532, allocations: 12 kB / 452.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001366/0.08546, allocations: 95.84 kB / 452.4 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.818e-05/0.08554, allocations: 31.86 kB / 452.4 MB, free: 6.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.047e-05/0.08563, allocations: 67.59 kB / 452.5 MB, free: 6.523 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002634/0.0859, allocations: 195.4 kB / 452.7 MB, free: 6.332 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.08591, allocations: 0 / 452.7 MB, free: 6.332 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.08592, allocations: 0 / 452.7 MB, free: 6.332 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.867e-06/0.08593, allocations: 0 / 452.7 MB, free: 6.332 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.0007141/0.08665, allocations: 0.5215 MB / 453.2 MB, free: 5.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.0867, allocations: 11.89 kB / 453.2 MB, free: 5.738 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.512e-05/0.08675, allocations: 42.73 kB / 453.2 MB, free: 5.688 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.97e-05/0.0868, allocations: 16.75 kB / 453.2 MB, free: 5.672 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002138/0.08702, allocations: 223.9 kB / 453.5 MB, free: 5.414 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.08705, allocations: 4.375 kB / 453.5 MB, free: 5.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.691e-05/0.08708, allocations: 8.375 kB / 453.5 MB, free: 5.402 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00034/0.08743, allocations: 177.3 kB / 453.6 MB, free: 5.215 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.08745, allocations: 3.938 kB / 453.7 MB, free: 5.211 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.542e-05/0.08747, allocations: 0 / 453.7 MB, free: 5.211 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.08748, allocations: 4 kB / 453.7 MB, free: 5.207 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000221/0.0877, allocations: 87.94 kB / 453.7 MB, free: 5.121 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005481/0.08826, allocations: 0.5475 MB / 454.3 MB, free: 4.516 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003062/0.08858, allocations: 146.5 kB / 454.4 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001882/0.08878, allocations: 100.8 kB / 454.5 MB, free: 4.262 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/0.08881, allocations: 4 kB / 454.5 MB, free: 4.258 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003362/0.08915, allocations: 188.9 kB / 454.7 MB, free: 4.055 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.493e-06/0.08916, allocations: 0 / 454.7 MB, free: 4.055 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008034/0.08997, allocations: 419 kB / 455.1 MB, free: 3.633 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.628e-05/0.09004, allocations: 85.09 kB / 455.2 MB, free: 3.531 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.09021, allocations: 198.8 kB / 455.4 MB, free: 3.324 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.857e-05/0.09023, allocations: 25.7 kB / 455.4 MB, free: 3.293 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.656e-05/0.09031, allocations: 120.5 kB / 455.5 MB, free: 3.172 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.853e-05/0.09035, allocations: 47.38 kB / 455.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.941e-05/0.09043, allocations: 41.7 kB / 455.6 MB, free: 3.078 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.472e-05/0.09053, allocations: 334.8 kB / 456 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001764/0.09071, allocations: 79.95 kB / 456 MB, free: 2.664 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000193/0.09091, allocations: 128.1 kB / 456.2 MB, free: 2.523 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000905/0.09182, allocations: 497.8 kB / 456.7 MB, free: 2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.09184, allocations: 0 / 456.7 MB, free: 2 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005256/0.09237, allocations: 319 kB / 457 MB, free: 1.676 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.842e-05/0.09242, allocations: 37.69 kB / 457 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.874e-06/0.09243, allocations: 4 kB / 457 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.09245, allocations: 0 / 457 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001476/0.0926, allocations: 31.98 kB / 457 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.004e-06/0.09262, allocations: 0 / 457 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001293/0.09275, allocations: 23.83 kB / 457.1 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.611e-05/0.09278, allocations: 4 kB / 457.1 MB, free: 1.57 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.0001955/0.09298, allocations: 191.5 kB / 457.2 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.3e-05/0.09302, allocations: 19.8 kB / 457.3 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.697e-05/0.09306, allocations: 21.88 kB / 457.3 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.09307, allocations: 0 / 457.3 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.09308, allocations: 4 kB / 457.3 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.09309, allocations: 3.938 kB / 457.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00087/0.09397, allocations: 0.692 MB / 458 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.09399, allocations: 4 kB / 458 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.96e-05/0.09404, allocations: 4 kB / 458 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.09405, allocations: 0 / 458 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.524e-05/0.09408, allocations: 11.92 kB / 458 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.09409, allocations: 0 / 458 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.09409, allocations: 0 / 458 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008411/0.09494, allocations: 0.5782 MB / 458.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.317e-05/0.095, allocations: 92.89 kB / 458.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.994e-05/0.09505, allocations: 15.86 kB / 458.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001573/0.09522, allocations: 19.98 kB / 458.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.687e-05/0.09526, allocations: 12.05 kB / 458.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.432e-05/0.09529, allocations: 8 kB / 458.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001083/0.09541, allocations: 152 kB / 458.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09541, allocations: 0 / 458.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003117/0.09573, allocations: 55.98 kB / 458.9 MB, free: 15.58 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.00112/0.09686, allocations: 1.135 MB / 460.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004979/0.09737, allocations: 307.2 kB / 460.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.09738, allocations: 4.312 kB / 460.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002487/0.09764, allocations: 199.1 kB / 460.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003507/0.098, allocations: 27.98 kB / 460.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00278/0.1008, allocations: 2.444 MB / 463 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002428/0.101, allocations: 0.724 MB / 463.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.124e-05/0.1011, allocations: 12.64 kB / 463.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.18e-05/0.1012, allocations: 43.42 kB / 463.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1012, allocations: 4 kB / 463.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.759/2.86, allocations: 4.201 MB / 468 MB, free: 6.238 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/13.51, allocations: 15.77 kB / 468 MB, free: 6.223 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)