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.001278/0.001278, allocations: 110.7 kB / 16.62 MB, free: 6.336 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.00149/0.00149, allocations: 187.2 kB / 17.55 MB, free: 5.805 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.355/1.355, allocations: 205.1 MB / 223.4 MB, free: 12.44 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2637/0.2637, allocations: 48.84 MB / 319.6 MB, free: 11.27 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.001331/0.001331, allocations: 62.22 kB / 389.6 MB, free: 48.95 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08382/0.08516, allocations: 59.16 MB / 448.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.002972/0.08816, allocations: 1.71 MB / 450.4 MB, free: 8.391 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001153/0.08934, allocations: 0.6944 MB / 451.1 MB, free: 7.688 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.818e-05/0.08946, allocations: 3.938 kB / 451.1 MB, free: 7.684 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001933/0.08968, allocations: 47.8 kB / 451.2 MB, free: 7.637 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.552e-05/0.08978, allocations: 51.8 kB / 451.2 MB, free: 7.586 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004887/0.09028, allocations: 103.8 kB / 451.3 MB, free: 7.484 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002384/0.09053, allocations: 171.5 kB / 451.5 MB, free: 7.316 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.09064, allocations: 17.45 kB / 451.5 MB, free: 7.301 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.127e-05/0.09073, allocations: 67.75 kB / 451.6 MB, free: 7.234 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001382/0.09088, allocations: 103.7 kB / 451.7 MB, free: 7.133 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.361e-05/0.09091, allocations: 12 kB / 451.7 MB, free: 7.121 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001273/0.09104, allocations: 79.92 kB / 451.8 MB, free: 7.043 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.183e-05/0.09111, allocations: 35.84 kB / 451.8 MB, free: 7.008 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.298e-05/0.0912, allocations: 75.53 kB / 451.9 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002316/0.09144, allocations: 191.7 kB / 452.1 MB, free: 6.746 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.09145, allocations: 0 / 452.1 MB, free: 6.746 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.09146, allocations: 3.984 kB / 452.1 MB, free: 6.742 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.09147, allocations: 0 / 452.1 MB, free: 6.742 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.0007027/0.09217, allocations: 0.5176 MB / 452.6 MB, free: 6.164 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.09222, allocations: 15.89 kB / 452.6 MB, free: 6.148 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.241e-05/0.09228, allocations: 16.75 kB / 452.6 MB, free: 6.133 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002157/0.0925, allocations: 227.9 kB / 452.8 MB, free: 5.871 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.09253, allocations: 8.312 kB / 452.8 MB, free: 5.863 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.094e-05/0.09256, allocations: 12.38 kB / 452.9 MB, free: 5.852 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003299/0.0929, allocations: 168.5 kB / 453 MB, free: 5.672 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.988e-06/0.09292, allocations: 3.984 kB / 453 MB, free: 5.668 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.743e-05/0.09294, allocations: 4 kB / 453 MB, free: 5.664 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.698e-06/0.09295, allocations: 0 / 453 MB, free: 5.664 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002137/0.09317, allocations: 103.9 kB / 453.1 MB, free: 5.562 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000547/0.09373, allocations: 0.5282 MB / 453.7 MB, free: 4.977 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002842/0.09402, allocations: 146.3 kB / 453.8 MB, free: 4.824 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001824/0.09421, allocations: 108.8 kB / 453.9 MB, free: 4.715 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.09424, allocations: 3.984 kB / 453.9 MB, free: 4.711 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003347/0.09458, allocations: 181 kB / 454.1 MB, free: 4.516 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.593e-06/0.09459, allocations: 0 / 454.1 MB, free: 4.516 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007785/0.09538, allocations: 430.9 kB / 454.5 MB, free: 4.082 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.152e-05/0.09544, allocations: 89.09 kB / 454.6 MB, free: 3.977 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001617/0.09561, allocations: 190.8 kB / 454.8 MB, free: 3.777 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.09564, allocations: 33.69 kB / 454.8 MB, free: 3.738 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.627e-05/0.09571, allocations: 116.4 kB / 454.9 MB, free: 3.621 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.298e-05/0.09575, allocations: 35.61 kB / 455 MB, free: 3.586 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.347e-05/0.09582, allocations: 45.7 kB / 455 MB, free: 3.535 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.544e-05/0.09592, allocations: 334.8 kB / 455.3 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001657/0.09609, allocations: 79.95 kB / 455.4 MB, free: 3.121 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001758/0.09628, allocations: 120 kB / 455.5 MB, free: 2.988 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008851/0.09717, allocations: 494 kB / 456 MB, free: 2.469 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.09718, allocations: 0 / 456 MB, free: 2.469 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004992/0.09769, allocations: 330.9 kB / 456.3 MB, free: 2.133 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.27e-05/0.09773, allocations: 33.7 kB / 456.4 MB, free: 2.094 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.09774, allocations: 0 / 456.4 MB, free: 2.094 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.09777, allocations: 7.984 kB / 456.4 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001404/0.09791, allocations: 31.92 kB / 456.4 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.09793, allocations: 4 kB / 456.4 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001224/0.09805, allocations: 16.02 kB / 456.4 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.09808, allocations: 19.94 kB / 456.4 MB, free: 2.016 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.0001934/0.09828, allocations: 179.4 kB / 456.6 MB, free: 1.824 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.322e-05/0.09832, allocations: 23.81 kB / 456.6 MB, free: 1.801 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.437e-05/0.09836, allocations: 17.86 kB / 456.7 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.09837, allocations: 4 kB / 456.7 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.09838, allocations: 0 / 456.7 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.09839, allocations: 0 / 456.7 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008408/0.09924, allocations: 0.6922 MB / 457.4 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.09925, allocations: 0 / 457.4 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.9e-05/0.09931, allocations: 4 kB / 457.4 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.09932, allocations: 7.938 kB / 457.4 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.179e-05/0.09934, allocations: 7.984 kB / 457.4 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.09935, allocations: 3.938 kB / 457.4 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.09936, allocations: 4 kB / 457.4 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008055/0.1002, allocations: 0.5741 MB / 458 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.144e-05/0.1002, allocations: 92.89 kB / 458 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.649e-05/0.1003, allocations: 8 kB / 458.1 MB, free: 300 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001544/0.1004, allocations: 23.97 kB / 458.1 MB, free: 276 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.435e-05/0.1005, allocations: 4 kB / 458.1 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.806e-05/0.1005, allocations: 15.98 kB / 458.1 MB, free: 256 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001014/0.1006, allocations: 152 kB / 458.2 MB, free: 104 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1006, allocations: 0 / 458.2 MB, free: 104 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002943/0.1009, allocations: 52 kB / 458.3 MB, free: 52 kB / 334.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.0001787/0.1011, allocations: 135.2 kB / 458.4 MB, free: 15.9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004837/0.1016, allocations: 303.1 kB / 458.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1016, allocations: 0 / 458.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002352/0.1019, allocations: 191.3 kB / 458.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000424/0.1023, allocations: 39.89 kB / 459 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006909/0.103, allocations: 408.2 kB / 459.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002531/0.1033, allocations: 0.724 MB / 460.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.223e-05/0.1033, allocations: 8.641 kB / 460.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.805e-05/0.1033, allocations: 15.44 kB / 460.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1033, allocations: 0 / 460.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of Templates: time 0.005095/0.1084, allocations: 2.265 MB / 462.4 MB, free: 11.9 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 -lv LOG_STATS > ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe 2>&1)