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.001188/0.001188, allocations: 108.7 kB / 17.74 MB, free: 5.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.001139/0.001139, allocations: 194.9 kB / 18.68 MB, free: 4.41 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.172/1.172, allocations: 205.1 MB / 224.6 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2385/0.2385, allocations: 48.85 MB / 320.8 MB, free: 11.02 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.001317/0.001317, allocations: 67.91 kB / 451.2 MB, free: 8.578 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08567/0.087, allocations: 59.16 MB / 0.4984 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.002427/0.08945, allocations: 1.648 MB / 0.5 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.09049, allocations: 0.7175 MB / 0.5007 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.23e-05/0.09057, allocations: 0 / 0.5007 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001716/0.09075, allocations: 47.81 kB / 0.5007 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.431e-05/0.09083, allocations: 51.73 kB / 0.5008 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003917/0.09123, allocations: 123.7 kB / 0.5009 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001956/0.09144, allocations: 163.6 kB / 0.5011 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.372e-05/0.09154, allocations: 33.34 kB / 0.5011 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.063e-05/0.09163, allocations: 67.77 kB / 0.5012 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001535/0.09179, allocations: 103.6 kB / 0.5013 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.459e-05/0.09182, allocations: 8 kB / 0.5013 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001323/0.09196, allocations: 87.92 kB / 0.5014 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.897e-05/0.09202, allocations: 35.89 kB / 0.5014 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.344e-05/0.09211, allocations: 71.55 kB / 0.5015 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002277/0.09235, allocations: 187.4 kB / 0.5016 GB, free: 9.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.09236, allocations: 0 / 0.5016 GB, free: 9.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.09237, allocations: 3.938 kB / 0.5016 GB, free: 9.926 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.389e-06/0.09237, allocations: 0 / 0.5016 GB, free: 9.926 MB / 398.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.0006798/0.09306, allocations: 0.5176 MB / 0.5021 GB, free: 9.348 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.0931, allocations: 11.89 kB / 0.5022 GB, free: 9.336 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.961e-05/0.09316, allocations: 16.75 kB / 0.5022 GB, free: 9.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002523/0.09342, allocations: 231.9 kB / 0.5024 GB, free: 9.055 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.837e-05/0.09344, allocations: 12.31 kB / 0.5024 GB, free: 9.043 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.596e-05/0.09347, allocations: 4.375 kB / 0.5024 GB, free: 9.039 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003138/0.0938, allocations: 172.5 kB / 0.5026 GB, free: 8.855 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.09381, allocations: 0 / 0.5026 GB, free: 8.855 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.029e-05/0.09384, allocations: 11.94 kB / 0.5026 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.09385, allocations: 0 / 0.5026 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002069/0.09406, allocations: 91.94 kB / 0.5027 GB, free: 8.754 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005649/0.09463, allocations: 0.5359 MB / 0.5032 GB, free: 8.16 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002886/0.09493, allocations: 146.5 kB / 0.5033 GB, free: 8.008 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001769/0.09512, allocations: 104.8 kB / 0.5034 GB, free: 7.902 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/0.09515, allocations: 0 / 0.5034 GB, free: 7.902 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002836/0.09543, allocations: 181 kB / 0.5036 GB, free: 7.707 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.663e-06/0.09545, allocations: 3.938 kB / 0.5036 GB, free: 7.703 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.000765/0.09622, allocations: 430.9 kB / 0.504 GB, free: 7.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.659e-05/0.09627, allocations: 85.11 kB / 0.5041 GB, free: 7.168 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001611/0.09644, allocations: 202.6 kB / 0.5043 GB, free: 6.957 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.586e-05/0.09647, allocations: 25.7 kB / 0.5043 GB, free: 6.926 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.509e-05/0.09654, allocations: 120.4 kB / 0.5044 GB, free: 6.805 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.742e-05/0.09659, allocations: 47.44 kB / 0.5045 GB, free: 6.758 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.166e-05/0.09665, allocations: 41.7 kB / 0.5045 GB, free: 6.711 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.09678, allocations: 330.8 kB / 0.5048 GB, free: 6.379 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001639/0.09694, allocations: 83.94 kB / 0.5049 GB, free: 6.297 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001856/0.09714, allocations: 116.2 kB / 0.505 GB, free: 6.168 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008588/0.09801, allocations: 482.8 kB / 0.5055 GB, free: 5.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.09802, allocations: 0 / 0.5055 GB, free: 5.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004956/0.09852, allocations: 323.6 kB / 0.5058 GB, free: 5.328 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.974e-05/0.09857, allocations: 49.56 kB / 0.5058 GB, free: 5.273 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.09858, allocations: 0 / 0.5058 GB, free: 5.273 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.0986, allocations: 4 kB / 0.5058 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.09874, allocations: 23.98 kB / 0.5059 GB, free: 5.246 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.09875, allocations: 4 kB / 0.5059 GB, free: 5.242 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001206/0.09888, allocations: 19.89 kB / 0.5059 GB, free: 5.223 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.0989, allocations: 15.94 kB / 0.5059 GB, free: 5.207 MB / 398.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.0001769/0.09909, allocations: 199.3 kB / 0.5061 GB, free: 4.996 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.189e-05/0.09913, allocations: 19.81 kB / 0.5061 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.296e-05/0.09917, allocations: 13.88 kB / 0.5061 GB, free: 4.961 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.83e-06/0.09918, allocations: 3.984 kB / 0.5061 GB, free: 4.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.09918, allocations: 0 / 0.5061 GB, free: 4.957 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.956e-05/0.09924, allocations: 96.83 kB / 0.5062 GB, free: 4.844 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.224e-05/0.09928, allocations: 7.938 kB / 0.5062 GB, free: 4.836 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001227/0.09941, allocations: 19.98 kB / 0.5063 GB, free: 4.816 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.481e-05/0.09946, allocations: 15.92 kB / 0.5063 GB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006366/0.1001, allocations: 485.9 kB / 0.5067 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008101/0.1009, allocations: 0.6523 MB / 0.5074 GB, free: 3.625 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002009/0.1011, allocations: 131.9 kB / 0.5075 GB, free: 3.496 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001058/0.1012, allocations: 147 kB / 0.5076 GB, free: 3.352 MB / 398.1 MB Notification: Performance of Backend: time 2.21e-07/0.1013, allocations: 0 / 0.5076 GB, free: 3.352 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006121/0.1019, allocations: 309.6 kB / 0.5079 GB, free: 3.031 MB / 398.1 MB Notification: Performance of SimCode: time 0.0006755/0.1026, allocations: 0.8062 MB / 0.5087 GB, free: 2.168 MB / 398.1 MB Notification: Performance of Templates: time 0.00503/0.1076, allocations: 2.437 MB / 0.5111 GB, free: 15.73 MB / 414.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)