Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009427/0.0009425, allocations: 177.3 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.208/1.208, allocations: 225.7 MB / 243.2 MB, free: 8.449 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007656/0.0007656, allocations: 93.69 kB / 294.4 MB, free: 9.504 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3418/0.3418, allocations: 48.79 MB / 394.3 MB, free: 33.59 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002871/0.0002872, allocations: 11.98 kB / 468.1 MB, free: 9.43 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2626, allocations: 63.07 MB / 0.5187 GB, free: 37.73 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.001402/0.264, allocations: 1.339 MB / 0.52 GB, free: 36.76 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009563/0.265, allocations: 0.7966 MB / 0.5208 GB, free: 36.14 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.651e-05/0.2651, allocations: 10.66 kB / 0.5208 GB, free: 36.13 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001609/0.2652, allocations: 40.94 kB / 0.5209 GB, free: 36.12 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.955e-05/0.2653, allocations: 55.73 kB / 0.5209 GB, free: 36.11 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003342/0.2657, allocations: 96.81 kB / 0.521 GB, free: 36.06 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00014/0.2658, allocations: 147.1 kB / 0.5211 GB, free: 36 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.143e-05/0.2659, allocations: 21.83 kB / 0.5212 GB, free: 35.99 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.254e-05/0.266, allocations: 66.16 kB / 0.5212 GB, free: 35.96 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001166/0.2661, allocations: 86.67 kB / 0.5213 GB, free: 35.94 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.943e-05/0.2661, allocations: 5.594 kB / 0.5213 GB, free: 35.94 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001028/0.2662, allocations: 80.59 kB / 0.5214 GB, free: 35.92 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.1e-05/0.2663, allocations: 26.06 kB / 0.5214 GB, free: 35.91 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.375e-05/0.2664, allocations: 93.25 kB / 0.5215 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001776/0.2666, allocations: 179.2 kB / 0.5217 GB, free: 35.78 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.2666, allocations: 0 / 0.5217 GB, free: 35.78 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2666, allocations: 0 / 0.5217 GB, free: 35.78 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.2666, allocations: 4 kB / 0.5217 GB, free: 35.77 MB / 378.7 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.0005181/0.2671, allocations: 0.4902 MB / 0.5222 GB, free: 35.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.2671, allocations: 13.48 kB / 0.5222 GB, free: 35.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.32e-05/0.2672, allocations: 17.59 kB / 0.5222 GB, free: 35.28 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001652/0.2674, allocations: 231.8 kB / 0.5224 GB, free: 35.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.881e-05/0.2674, allocations: 3.406 kB / 0.5224 GB, free: 35.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.441e-05/0.2674, allocations: 10.19 kB / 0.5224 GB, free: 35.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002912/0.2677, allocations: 179.9 kB / 0.5226 GB, free: 34.96 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-06/0.2677, allocations: 0 / 0.5226 GB, free: 34.96 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/0.2678, allocations: 3.234 kB / 0.5226 GB, free: 34.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.2678, allocations: 6.969 kB / 0.5226 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001886/0.268, allocations: 106.8 kB / 0.5227 GB, free: 34.92 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004412/0.2684, allocations: 0.534 MB / 0.5232 GB, free: 34.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002707/0.2687, allocations: 158.9 kB / 0.5234 GB, free: 34.37 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001742/0.2689, allocations: 105.5 kB / 0.5235 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.523e-05/0.2689, allocations: 2.844 kB / 0.5235 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000293/0.2692, allocations: 200.8 kB / 0.5237 GB, free: 34.22 MB / 378.7 MB Notification: Performance of pre-optimization done (n=17): time 2.435e-06/0.2692, allocations: 0 / 0.5237 GB, free: 34.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=17): time 0.0007017/0.2699, allocations: 442.9 kB / 0.5241 GB, free: 34.06 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.374e-05/0.27, allocations: 83.27 kB / 0.5242 GB, free: 33.97 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001298/0.2701, allocations: 204.1 kB / 0.5244 GB, free: 33.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.2701, allocations: 32.45 kB / 0.5244 GB, free: 33.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.707e-05/0.2702, allocations: 120 kB / 0.5245 GB, free: 33.69 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.795e-05/0.2702, allocations: 40.12 kB / 0.5246 GB, free: 33.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.608e-06/0.2702, allocations: 6.844 kB / 0.5246 GB, free: 33.65 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.049e-05/0.2703, allocations: 330.5 kB / 0.5249 GB, free: 33.33 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000158/0.2704, allocations: 92.17 kB / 0.525 GB, free: 33.31 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001565/0.2706, allocations: 130.5 kB / 0.5251 GB, free: 33.24 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008017/0.2714, allocations: 0.5141 MB / 0.5256 GB, free: 32.97 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.2714, allocations: 2.875 kB / 0.5256 GB, free: 32.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004693/0.2719, allocations: 336.3 kB / 0.5259 GB, free: 32.83 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.789e-05/0.272, allocations: 34.56 kB / 0.5259 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.272, allocations: 2.875 kB / 0.5259 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.272, allocations: 3.938 kB / 0.526 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.2721, allocations: 37.19 kB / 0.526 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.433e-06/0.2721, allocations: 6.922 kB / 0.526 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000121/0.2723, allocations: 29.88 kB / 0.526 GB, free: 32.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.602e-05/0.2723, allocations: 9.5 kB / 0.526 GB, free: 32.77 MB / 378.7 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,$PRE.digitalPI.e_int,$whenCondition2,digitalPI.e,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001499/0.2724, allocations: 188.7 kB / 0.5262 GB, free: 32.61 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.518e-05/0.2725, allocations: 23.28 kB / 0.5262 GB, free: 32.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.939e-05/0.2725, allocations: 19.02 kB / 0.5263 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.2725, allocations: 0 / 0.5263 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.2725, allocations: 0 / 0.5263 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.2725, allocations: 2.688 kB / 0.5263 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007435/0.2733, allocations: 0.7119 MB / 0.5269 GB, free: 32.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.2733, allocations: 0 / 0.5269 GB, free: 32.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.584e-05/0.2734, allocations: 5.562 kB / 0.527 GB, free: 32.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.2734, allocations: 0 / 0.527 GB, free: 32.13 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.905e-05/0.2734, allocations: 5.688 kB / 0.527 GB, free: 32.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.2734, allocations: 7.359 kB / 0.527 GB, free: 32.13 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2734, allocations: 0 / 0.527 GB, free: 32.13 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007107/0.2741, allocations: 0.5965 MB / 0.5275 GB, free: 31.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.269e-05/0.2742, allocations: 101.7 kB / 0.5276 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.408e-05/0.2742, allocations: 2.969 kB / 0.5276 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001453/0.2744, allocations: 26.14 kB / 0.5277 GB, free: 31.72 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.778e-05/0.2744, allocations: 14.31 kB / 0.5277 GB, free: 31.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.39e-05/0.2744, allocations: 12.09 kB / 0.5277 GB, free: 31.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.225e-05/0.2745, allocations: 142.5 kB / 0.5278 GB, free: 31.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.303e-06/0.2745, allocations: 0 / 0.5278 GB, free: 31.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002723/0.2748, allocations: 59.81 kB / 0.5279 GB, free: 31.61 MB / 378.7 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.0001506/0.275, allocations: 129.3 kB / 0.528 GB, free: 31.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004397/0.2754, allocations: 319.5 kB / 0.5283 GB, free: 31.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2754, allocations: 2.781 kB / 0.5283 GB, free: 31.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002154/0.2756, allocations: 197.1 kB / 0.5285 GB, free: 31.26 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003289/0.276, allocations: 34.58 kB / 0.5285 GB, free: 31.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005872/0.2766, allocations: 407.1 kB / 0.5289 GB, free: 31 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000132/0.2767, allocations: 0.729 MB / 0.5296 GB, free: 30.3 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.577e-05/0.2768, allocations: 8.531 kB / 0.5297 GB, free: 30.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.73e-05/0.2768, allocations: 16.62 kB / 0.5297 GB, free: 30.29 MB / 378.7 MB Notification: Performance of SimCode: time 4.81e-07/0.2768, allocations: 0 / 0.5297 GB, free: 30.29 MB / 378.7 MB Notification: Performance of Templates: time 0.004341/0.2812, allocations: 2.132 MB / 0.5317 GB, free: 30.09 MB / 378.7 MB make -j1 -f ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.makefile (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)