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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001454/0.001454, allocations: 180.8 kB / 8.346 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.897/1.897, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001085/0.001085, allocations: 90.34 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.6131/0.6131, allocations: 48.77 MB / 358.8 MB, free: 53.14 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.432e-05/2.468e-05, allocations: 4 kB / 425.3 MB, free: 8.25 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1925/0.1926, allocations: 60.25 MB / 485.5 MB, free: 11.86 MB / 379.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5103/0.703, allocations: 86.02 MB / 0.5582 GB, free: 15.13 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003323/0.7034, allocations: 75.95 kB / 0.5582 GB, free: 15.05 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01162/0.715, allocations: 3.754 MB / 0.5619 GB, free: 11.36 MB / 395.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.7151, allocations: 4 kB / 0.5619 GB, free: 11.36 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.229e-05/0.7152, allocations: 0 / 0.5619 GB, free: 11.36 MB / 395.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.0009232/0.7161, allocations: 492.9 kB / 0.5624 GB, free: 10.82 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.715e-05/0.7162, allocations: 12.02 kB / 0.5624 GB, free: 10.81 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001145/0.7163, allocations: 19.81 kB / 0.5624 GB, free: 10.79 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004418/0.7167, allocations: 230.5 kB / 0.5626 GB, free: 10.52 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.491e-05/0.7168, allocations: 4 kB / 0.5626 GB, free: 10.52 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.813e-05/0.7169, allocations: 9.375 kB / 0.5626 GB, free: 10.51 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002256/0.7171, allocations: 80.72 kB / 0.5627 GB, free: 10.43 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002879/0.7174, allocations: 152.5 kB / 0.5629 GB, free: 10.27 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.7174, allocations: 3.953 kB / 0.5629 GB, free: 10.27 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.866e-05/0.7175, allocations: 4 kB / 0.5629 GB, free: 10.26 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.7175, allocations: 0 / 0.5629 GB, free: 10.26 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008789/0.7184, allocations: 0.5287 MB / 0.5634 GB, free: 9.688 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002367/0.7186, allocations: 118.5 kB / 0.5635 GB, free: 9.562 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001872/0.7188, allocations: 93.48 kB / 0.5636 GB, free: 9.469 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.177e-05/0.7189, allocations: 1.219 kB / 0.5636 GB, free: 9.469 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003138/0.7192, allocations: 177 kB / 0.5638 GB, free: 9.277 MB / 395.1 MB Notification: Performance of pre-optimization done (n=17): time 3.036e-06/0.7192, allocations: 0 / 0.5638 GB, free: 9.277 MB / 395.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007421/0.7199, allocations: 302.6 kB / 0.5641 GB, free: 8.977 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.744e-05/0.72, allocations: 89.09 kB / 0.5641 GB, free: 8.871 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002133/0.7203, allocations: 169.9 kB / 0.5643 GB, free: 8.695 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 3.216e-05/0.7203, allocations: 29.69 kB / 0.5643 GB, free: 8.66 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.7204, allocations: 120.3 kB / 0.5644 GB, free: 8.535 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.039e-05/0.7205, allocations: 35.7 kB / 0.5645 GB, free: 8.5 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.163e-05/0.7205, allocations: 0 / 0.5645 GB, free: 8.5 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.7207, allocations: 334.8 kB / 0.5648 GB, free: 8.164 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001177/0.7208, allocations: 63.98 kB / 0.5649 GB, free: 8.102 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001557/0.721, allocations: 104.4 kB / 0.565 GB, free: 7.984 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002268/0.7212, allocations: 84.3 kB / 0.565 GB, free: 7.902 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.7212, allocations: 8 kB / 0.565 GB, free: 7.895 MB / 395.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005144/0.7217, allocations: 270.9 kB / 0.5653 GB, free: 7.625 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.381e-05/0.7218, allocations: 42.44 kB / 0.5653 GB, free: 7.578 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-06/0.7218, allocations: 0 / 0.5653 GB, free: 7.578 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.343e-05/0.7219, allocations: 4 kB / 0.5653 GB, free: 7.574 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001845/0.7221, allocations: 38.62 kB / 0.5654 GB, free: 7.539 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.828e-06/0.7221, allocations: 4 kB / 0.5654 GB, free: 7.535 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001603/0.7222, allocations: 29.33 kB / 0.5654 GB, free: 7.508 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.47e-05/0.7223, allocations: 12 kB / 0.5654 GB, free: 7.496 MB / 395.1 MB Warning: Assuming fixed start value for the following 1 variables: digitalPI.e_int:DISCRETE(start = digitalPI.CSstart * digitalPI.Ti / digitalPI.Kp fixed = false ) "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 () * 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.0002427/0.7225, allocations: 152.5 kB / 0.5656 GB, free: 7.336 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.274e-05/0.7226, allocations: 15.81 kB / 0.5656 GB, free: 7.32 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.789e-05/0.7227, allocations: 25.91 kB / 0.5656 GB, free: 7.297 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.7227, allocations: 3.938 kB / 0.5656 GB, free: 7.293 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/0.7227, allocations: 4 kB / 0.5656 GB, free: 7.289 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.166e-06/0.7227, allocations: 4 kB / 0.5656 GB, free: 7.285 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009439/0.7237, allocations: 0.6346 MB / 0.5662 GB, free: 6.609 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.7237, allocations: 4 kB / 0.5662 GB, free: 6.605 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.427e-05/0.7237, allocations: 4 kB / 0.5662 GB, free: 6.602 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.018e-05/0.7238, allocations: 6.391 kB / 0.5663 GB, free: 6.598 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.776e-05/0.7238, allocations: 8 kB / 0.5663 GB, free: 6.59 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.7238, allocations: 0 / 0.5663 GB, free: 6.59 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.7238, allocations: 0 / 0.5663 GB, free: 6.59 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008289/0.7247, allocations: 0.5275 MB / 0.5668 GB, free: 6.047 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.57e-05/0.7248, allocations: 88.95 kB / 0.5669 GB, free: 5.941 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.181e-05/0.7248, allocations: 11.95 kB / 0.5669 GB, free: 5.93 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001706/0.725, allocations: 23.97 kB / 0.5669 GB, free: 5.906 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.466e-05/0.7251, allocations: 4 kB / 0.5669 GB, free: 5.902 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.608e-05/0.7251, allocations: 20.05 kB / 0.5669 GB, free: 5.883 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0001222/0.7252, allocations: 137.1 kB / 0.5671 GB, free: 5.75 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.2e-07/0.7252, allocations: 0 / 0.5671 GB, free: 5.75 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0004246/0.7257, allocations: 63.88 kB / 0.5671 GB, free: 5.688 MB / 395.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) * 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.000314/0.726, allocations: 123.8 kB / 0.5672 GB, free: 5.559 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0004228/0.7264, allocations: 247.2 kB / 0.5675 GB, free: 5.305 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.7264, allocations: 0.8125 kB / 0.5675 GB, free: 5.305 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001932/0.7266, allocations: 171.3 kB / 0.5676 GB, free: 5.125 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003803/0.727, allocations: 36.34 kB / 0.5677 GB, free: 5.09 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006841/0.7277, allocations: 249.1 kB / 0.5679 GB, free: 4.82 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003781/0.7281, allocations: 0.7357 MB / 0.5686 GB, free: 4.059 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 6.215e-05/0.7282, allocations: 8.766 kB / 0.5686 GB, free: 4.051 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.548e-05/0.7282, allocations: 11.44 kB / 0.5686 GB, free: 4.039 MB / 395.1 MB Notification: Performance of SimCode: time 2.7e-07/0.7282, allocations: 10.84 kB / 0.5686 GB, free: 4.031 MB / 395.1 MB Notification: Performance of Templates: time 0.005554/0.7338, allocations: 1.941 MB / 0.5705 GB, free: 2.129 MB / 395.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 -lv LOG_STATS > ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe 2>&1)