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: translateModel(ThermoPower.Examples.HRB.Simulators.TestPI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI") translateModel(ThermoPower.Examples.HRB.Simulators.TestPI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001448/0.001448, allocations: 85.44 kB / 16.31 MB, free: 6.457 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.001819/0.001819, allocations: 182.6 kB / 17.21 MB, free: 6.324 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.944/1.944, allocations: 205.4 MB / 223.4 MB, free: 5.582 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4511/0.4511, allocations: 48.77 MB / 320.4 MB, free: 3.832 MB / 254.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.000843/0.0008431, allocations: 16 kB / 391.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1654/0.1663, allocations: 60.26 MB / 451.4 MB, free: 1.922 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.00178/0.1681, allocations: 1.344 MB / 452.8 MB, free: 0.5664 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2677/0.4358, allocations: 0.6561 MB / 453.4 MB, free: 47.61 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001447/0.436, allocations: 3.844 kB / 453.4 MB, free: 47.61 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000206/0.4362, allocations: 44.58 kB / 453.5 MB, free: 47.61 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.929e-05/0.4363, allocations: 57.3 kB / 453.5 MB, free: 47.61 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004923/0.4368, allocations: 87.41 kB / 453.6 MB, free: 47.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001831/0.437, allocations: 135.8 kB / 453.7 MB, free: 47.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.4371, allocations: 22.03 kB / 453.8 MB, free: 47.61 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.338e-05/0.4372, allocations: 59.81 kB / 453.8 MB, free: 47.61 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00015/0.4374, allocations: 84.48 kB / 453.9 MB, free: 47.61 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.099e-05/0.4374, allocations: 5.156 kB / 453.9 MB, free: 47.61 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001289/0.4375, allocations: 71.92 kB / 454 MB, free: 47.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.093e-05/0.4376, allocations: 36.75 kB / 454 MB, free: 47.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.902e-05/0.4377, allocations: 47.48 kB / 454.1 MB, free: 47.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001726/0.4379, allocations: 128.2 kB / 454.2 MB, free: 47.56 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.4379, allocations: 0 / 454.2 MB, free: 47.56 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4379, allocations: 2.844 kB / 454.2 MB, free: 47.56 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.4379, allocations: 0 / 454.2 MB, free: 47.56 MB / 382.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.000627/0.4385, allocations: 0.4956 MB / 454.7 MB, free: 47.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.4386, allocations: 10.19 kB / 454.7 MB, free: 47.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.001e-05/0.4386, allocations: 16.03 kB / 454.7 MB, free: 47.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001974/0.4388, allocations: 224.3 kB / 454.9 MB, free: 46.87 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.202e-05/0.4389, allocations: 6 kB / 454.9 MB, free: 46.87 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.899e-05/0.4389, allocations: 11.06 kB / 455 MB, free: 46.87 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003418/0.4392, allocations: 183.2 kB / 455.1 MB, free: 46.81 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.4393, allocations: 5.062 kB / 455.1 MB, free: 46.81 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.808e-05/0.4393, allocations: 0 / 455.1 MB, free: 46.81 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.4393, allocations: 2.469 kB / 455.1 MB, free: 46.81 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000198/0.4395, allocations: 106.5 kB / 455.2 MB, free: 46.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005046/0.44, allocations: 0.5275 MB / 455.8 MB, free: 46.37 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002814/0.4403, allocations: 157.3 kB / 455.9 MB, free: 46.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/0.4405, allocations: 109.8 kB / 456 MB, free: 46.33 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.09e-05/0.4405, allocations: 6.5 kB / 456 MB, free: 46.33 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003347/0.4409, allocations: 187.7 kB / 456.2 MB, free: 46.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.583e-06/0.4409, allocations: 4 kB / 456.2 MB, free: 46.24 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007459/0.4416, allocations: 446.8 kB / 456.7 MB, free: 46.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.065e-05/0.4417, allocations: 90.67 kB / 456.8 MB, free: 46.07 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001473/0.4418, allocations: 198.3 kB / 456.9 MB, free: 45.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.746e-05/0.4419, allocations: 32.3 kB / 457 MB, free: 45.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.111e-05/0.4419, allocations: 116.8 kB / 457.1 MB, free: 45.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.183e-05/0.442, allocations: 43.28 kB / 457.1 MB, free: 45.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.827e-06/0.442, allocations: 0 / 457.1 MB, free: 45.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.424e-05/0.4421, allocations: 338.3 kB / 457.5 MB, free: 45.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000151/0.4422, allocations: 89.06 kB / 457.6 MB, free: 45.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001626/0.4424, allocations: 129.6 kB / 457.7 MB, free: 45.45 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001795/0.4426, allocations: 124.5 kB / 457.8 MB, free: 45.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.4426, allocations: 0 / 457.8 MB, free: 45.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000447/0.443, allocations: 343.1 kB / 458.1 MB, free: 45.33 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.705e-05/0.4431, allocations: 32.89 kB / 458.2 MB, free: 45.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.4431, allocations: 2.594 kB / 458.2 MB, free: 45.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.4431, allocations: 3.391 kB / 458.2 MB, free: 45.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001377/0.4433, allocations: 38.17 kB / 458.2 MB, free: 45.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.4433, allocations: 0 / 458.2 MB, free: 45.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001122/0.4434, allocations: 30.05 kB / 458.2 MB, free: 45.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.557e-05/0.4434, allocations: 10.12 kB / 458.2 MB, free: 45.29 MB / 382.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 ($PRE.digitalPI.firstTrigger,digitalPI.firstTrigger,$whenCondition1,digitalPI.sampleTrigger,$whenCondition2,digitalPI.e,$PRE.digitalPI.e_int,digitalPI.e_int,digitalPI.e_int_wind,digitalPI.CSwind,digitalPI.CS,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001778/0.4436, allocations: 194.2 kB / 458.4 MB, free: 45.13 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.479e-05/0.4437, allocations: 16.88 kB / 458.5 MB, free: 45.12 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.914e-05/0.4437, allocations: 20.81 kB / 458.5 MB, free: 45.12 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.4437, allocations: 6.766 kB / 458.5 MB, free: 45.12 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.4437, allocations: 0 / 458.5 MB, free: 45.12 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.4437, allocations: 6.25 kB / 458.5 MB, free: 45.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007335/0.4445, allocations: 0.7054 MB / 459.2 MB, free: 44.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.4445, allocations: 0 / 459.2 MB, free: 44.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.408e-05/0.4445, allocations: 5.25 kB / 459.2 MB, free: 44.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.4445, allocations: 3.469 kB / 459.2 MB, free: 44.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.969e-05/0.4446, allocations: 3.969 kB / 459.2 MB, free: 44.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.4446, allocations: 2.656 kB / 459.2 MB, free: 44.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4446, allocations: 1.438 kB / 459.2 MB, free: 44.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008141/0.4454, allocations: 0.6047 MB / 459.8 MB, free: 44.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.616e-05/0.4454, allocations: 91.48 kB / 459.9 MB, free: 44.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.589e-05/0.4455, allocations: 6.688 kB / 459.9 MB, free: 44.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001337/0.4456, allocations: 21.28 kB / 459.9 MB, free: 44.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.213e-05/0.4457, allocations: 9.547 kB / 459.9 MB, free: 44.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.611e-05/0.4457, allocations: 7.203 kB / 459.9 MB, free: 44.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001064/0.4458, allocations: 149.8 kB / 460.1 MB, free: 44.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4458, allocations: 4.062 kB / 460.1 MB, free: 44.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003033/0.4461, allocations: 52.64 kB / 460.1 MB, free: 44.4 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001913/0.4463, allocations: 128.8 kB / 460.3 MB, free: 44.31 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004578/0.4468, allocations: 314.9 kB / 460.6 MB, free: 44.24 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.4468, allocations: 0 / 460.6 MB, free: 44.24 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002162/0.447, allocations: 200.9 kB / 460.8 MB, free: 44.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003906/0.4474, allocations: 46.69 kB / 460.8 MB, free: 44.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00064/0.4481, allocations: 401.5 kB / 461.2 MB, free: 43.96 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001638/0.4483, allocations: 0.7217 MB / 461.9 MB, free: 43.26 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.966e-05/0.4483, allocations: 9.75 kB / 461.9 MB, free: 43.26 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.698e-05/0.4483, allocations: 15.84 kB / 462 MB, free: 43.26 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4483, allocations: 0 / 462 MB, free: 43.26 MB / 382.1 MB Notification: Performance of Templates: time 0.004803/0.4532, allocations: 2.042 MB / 464 MB, free: 43.14 MB / 382.1 MB make -j1 -f ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.makefile Environment - environmentSimulation: (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 & ./ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe 2>&1) Environment - environmentSimulation: