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.001452/0.001452, allocations: 111.1 kB / 17.68 MB, free: 5.352 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.001676/0.001676, allocations: 192 kB / 18.61 MB, free: 4.434 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.264/1.264, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2542/0.2542, allocations: 48.84 MB / 320.7 MB, free: 11.03 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.001425/0.001425, allocations: 75.64 kB / 391.5 MB, free: 48.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07707/0.0785, allocations: 59.16 MB / 450.7 MB, free: 9.039 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.002831/0.08137, allocations: 1.648 MB / 452.3 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00114/0.08253, allocations: 0.6982 MB / 453 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.392e-05/0.08263, allocations: 4 kB / 453 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001693/0.08283, allocations: 51.81 kB / 453.1 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.6e-05/0.08292, allocations: 55.73 kB / 453.1 MB, free: 6.555 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004531/0.08338, allocations: 123.7 kB / 453.3 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002278/0.08362, allocations: 159.6 kB / 453.4 MB, free: 6.277 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.423e-05/0.08372, allocations: 25.39 kB / 453.4 MB, free: 6.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.304e-05/0.08382, allocations: 75.73 kB / 453.5 MB, free: 6.176 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000155/0.08399, allocations: 95.7 kB / 453.6 MB, free: 6.082 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.513e-05/0.08403, allocations: 12 kB / 453.6 MB, free: 6.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001267/0.08416, allocations: 79.94 kB / 453.7 MB, free: 5.992 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.863e-05/0.08423, allocations: 31.84 kB / 453.7 MB, free: 5.961 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.411e-05/0.08432, allocations: 79.52 kB / 453.8 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002492/0.08458, allocations: 195.4 kB / 454 MB, free: 5.691 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.08459, allocations: 0 / 454 MB, free: 5.691 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.0846, allocations: 0 / 454 MB, free: 5.691 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.08461, allocations: 0 / 454 MB, free: 5.691 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.0007042/0.08532, allocations: 0.5137 MB / 454.5 MB, free: 5.117 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.164e-05/0.08536, allocations: 15.89 kB / 454.5 MB, free: 5.102 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.929e-05/0.08541, allocations: 16.75 kB / 454.5 MB, free: 5.086 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002731/0.08569, allocations: 231.9 kB / 454.8 MB, free: 4.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.099e-05/0.08572, allocations: 16.34 kB / 454.8 MB, free: 4.805 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.144e-05/0.08576, allocations: 8.375 kB / 454.8 MB, free: 4.797 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003288/0.0861, allocations: 168.5 kB / 455 MB, free: 4.617 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.08612, allocations: 0 / 455 MB, free: 4.617 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.08614, allocations: 7.984 kB / 455 MB, free: 4.609 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.08615, allocations: 11.94 kB / 455 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002056/0.08636, allocations: 91.89 kB / 455.1 MB, free: 4.508 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005793/0.08695, allocations: 0.5321 MB / 455.6 MB, free: 3.918 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002916/0.08726, allocations: 150.4 kB / 455.7 MB, free: 3.762 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001944/0.08746, allocations: 100.8 kB / 455.8 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.908e-05/0.08749, allocations: 4 kB / 455.8 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002975/0.0878, allocations: 181 kB / 456 MB, free: 3.461 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 3.206e-06/0.08781, allocations: 0 / 456 MB, free: 3.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007879/0.0886, allocations: 422.9 kB / 456.4 MB, free: 3.035 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.183e-05/0.08867, allocations: 85.11 kB / 456.5 MB, free: 2.934 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001747/0.08885, allocations: 198.6 kB / 456.7 MB, free: 2.727 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.08888, allocations: 37.7 kB / 456.8 MB, free: 2.684 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.433e-05/0.08896, allocations: 112.4 kB / 456.9 MB, free: 2.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.001e-05/0.08901, allocations: 47.64 kB / 456.9 MB, free: 2.523 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.572e-05/0.08908, allocations: 37.7 kB / 456.9 MB, free: 2.48 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.0892, allocations: 334.8 kB / 457.3 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001781/0.08938, allocations: 79.95 kB / 457.4 MB, free: 2.066 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/0.08958, allocations: 128.1 kB / 457.5 MB, free: 1.926 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008709/0.09046, allocations: 486 kB / 457.9 MB, free: 1.414 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.09048, allocations: 4 kB / 458 MB, free: 1.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005174/0.091, allocations: 318.9 kB / 458.3 MB, free: 1.086 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.433e-05/0.09105, allocations: 37.7 kB / 458.3 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.09106, allocations: 4 kB / 458.3 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.09108, allocations: 3.938 kB / 458.3 MB, free: 1.035 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.09122, allocations: 32.09 kB / 458.3 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.09124, allocations: 4 kB / 458.3 MB, free: 1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001258/0.09137, allocations: 27.83 kB / 458.4 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.597e-05/0.0914, allocations: 4 kB / 458.4 MB, free: 0.9688 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.0001923/0.09159, allocations: 187.4 kB / 458.6 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.212e-05/0.09164, allocations: 15.81 kB / 458.6 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.353e-05/0.09167, allocations: 21.86 kB / 458.6 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.09168, allocations: 4 kB / 458.6 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.09169, allocations: 0 / 458.6 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.0917, allocations: 7.922 kB / 458.6 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008903/0.0926, allocations: 0.6911 MB / 459.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.09261, allocations: 0 / 459.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.892e-05/0.09267, allocations: 4 kB / 459.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.09268, allocations: 0 / 459.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.354e-05/0.09271, allocations: 11.94 kB / 459.3 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.09271, allocations: 4 kB / 459.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.09272, allocations: 3.984 kB / 459.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008183/0.09354, allocations: 0.5674 MB / 459.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.104e-05/0.09362, allocations: 100.8 kB / 460 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.632e-05/0.09366, allocations: 8.062 kB / 460 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001544/0.09382, allocations: 23.92 kB / 460 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.84e-05/0.09387, allocations: 15.92 kB / 460 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.587e-05/0.0939, allocations: 7.984 kB / 460 MB, free: 15.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001152/0.09403, allocations: 147 kB / 460.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.09403, allocations: 3.938 kB / 460.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003054/0.09434, allocations: 52 kB / 460.2 MB, free: 14.99 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.0001757/0.09453, allocations: 131.2 kB / 460.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000488/0.09502, allocations: 295.2 kB / 460.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.09504, allocations: 0 / 460.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002469/0.09529, allocations: 191.3 kB / 460.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003655/0.09567, allocations: 49.02 kB / 460.9 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006549/0.09633, allocations: 359.9 kB / 461.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002687/0.09661, allocations: 0.724 MB / 462 MB, free: 13.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.172e-05/0.09667, allocations: 16.64 kB / 462 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.735e-05/0.0967, allocations: 11.44 kB / 462 MB, free: 13.15 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.0967, allocations: 0 / 462 MB, free: 13.15 MB / 350.1 MB Notification: Performance of Templates: time 0.005227/0.1019, allocations: 2.284 MB / 464.3 MB, free: 10.87 MB / 350.1 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 -s gbode -lv LOG_STATS > ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe 2>&1)