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.0007698/0.0007699, allocations: 92.83 kB / 16.65 MB, free: 6.586 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.0008159/0.000816, allocations: 181.9 kB / 17.56 MB, free: 6.203 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.281/1.281, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.269/0.269, allocations: 48.79 MB / 320.8 MB, free: 11.11 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.0007946/0.0007946, allocations: 13.8 kB / 391.8 MB, free: 50.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1109, allocations: 60.26 MB / 452.1 MB, free: 9.176 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.001692/0.1126, allocations: 1.371 MB / 453.4 MB, free: 7.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001147/0.1138, allocations: 0.7062 MB / 454.1 MB, free: 7.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.69e-05/0.1139, allocations: 3.938 kB / 454.2 MB, free: 7.066 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000177/0.1141, allocations: 39.88 kB / 454.2 MB, free: 7.027 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.051e-05/0.1142, allocations: 55.8 kB / 454.2 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004136/0.1146, allocations: 95.83 kB / 454.3 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000185/0.1148, allocations: 147.5 kB / 454.5 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001023/0.1149, allocations: 21.39 kB / 454.5 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.735e-05/0.115, allocations: 63.75 kB / 454.6 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001403/0.1151, allocations: 87.7 kB / 454.7 MB, free: 6.562 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.189e-05/0.1152, allocations: 4 kB / 454.7 MB, free: 6.559 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001347/0.1153, allocations: 83.86 kB / 454.7 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.49e-05/0.1154, allocations: 35.86 kB / 454.8 MB, free: 6.441 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.852e-05/0.1155, allocations: 89.28 kB / 454.9 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002344/0.1157, allocations: 187.6 kB / 455 MB, free: 6.164 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1157, allocations: 0 / 455 MB, free: 6.164 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1157, allocations: 0 / 455 MB, free: 6.164 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.429e-06/0.1158, allocations: 0 / 455 MB, free: 6.164 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.0007374/0.1165, allocations: 0.4944 MB / 455.5 MB, free: 5.609 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.1165, allocations: 8.031 kB / 455.5 MB, free: 5.602 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.178e-05/0.1166, allocations: 16.75 kB / 455.6 MB, free: 5.586 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002409/0.1168, allocations: 231.7 kB / 455.8 MB, free: 5.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.347e-05/0.1169, allocations: 8.375 kB / 455.8 MB, free: 5.312 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.854e-05/0.1169, allocations: 8.359 kB / 455.8 MB, free: 5.305 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003496/0.1173, allocations: 180.5 kB / 456 MB, free: 5.113 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.1173, allocations: 3.938 kB / 456 MB, free: 5.109 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.1173, allocations: 0 / 456 MB, free: 5.109 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.1173, allocations: 4 kB / 456 MB, free: 5.105 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002321/0.1176, allocations: 103.9 kB / 456.1 MB, free: 5.004 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005897/0.1182, allocations: 0.5359 MB / 456.6 MB, free: 4.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003264/0.1185, allocations: 150.5 kB / 456.8 MB, free: 4.254 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002134/0.1187, allocations: 116.8 kB / 456.9 MB, free: 4.137 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.863e-05/0.1188, allocations: 0 / 456.9 MB, free: 4.137 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003659/0.1191, allocations: 201 kB / 457.1 MB, free: 3.922 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 2.855e-06/0.1191, allocations: 7.984 kB / 457.1 MB, free: 3.914 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008576/0.12, allocations: 443.1 kB / 457.5 MB, free: 3.469 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.012e-05/0.1201, allocations: 85.11 kB / 457.6 MB, free: 3.367 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001834/0.1203, allocations: 198.7 kB / 457.8 MB, free: 3.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.584e-05/0.1203, allocations: 33.7 kB / 457.8 MB, free: 3.121 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.208e-05/0.1204, allocations: 116.4 kB / 457.9 MB, free: 3.004 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.523e-05/0.1204, allocations: 35.59 kB / 458 MB, free: 2.969 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.43e-05/0.1205, allocations: 29.7 kB / 458 MB, free: 2.934 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.1206, allocations: 334.8 kB / 458.3 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002236/0.1208, allocations: 91.94 kB / 458.4 MB, free: 2.508 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002066/0.1211, allocations: 132 kB / 458.6 MB, free: 2.363 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009716/0.122, allocations: 0.5135 MB / 459.1 MB, free: 1.812 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.1221, allocations: 4 kB / 459.1 MB, free: 1.809 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005935/0.1227, allocations: 346.9 kB / 459.4 MB, free: 1.457 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.968e-05/0.1227, allocations: 37.69 kB / 459.5 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.1227, allocations: 3.938 kB / 459.5 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.1227, allocations: 0 / 459.5 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001518/0.1229, allocations: 35.98 kB / 459.5 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.1229, allocations: 0 / 459.5 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001506/0.1231, allocations: 27.95 kB / 459.5 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.231e-05/0.1231, allocations: 19.92 kB / 459.5 MB, free: 1.328 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.000201/0.1233, allocations: 179.4 kB / 459.7 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.798e-05/0.1234, allocations: 19.81 kB / 459.7 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.572e-05/0.1234, allocations: 17.88 kB / 459.7 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.1234, allocations: 0 / 459.7 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.1234, allocations: 3.984 kB / 459.8 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.1234, allocations: 0 / 459.8 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000941/0.1244, allocations: 0.7018 MB / 460.5 MB, free: 348 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1244, allocations: 8 kB / 460.5 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.179e-05/0.1245, allocations: 7.984 kB / 460.5 MB, free: 332 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.1245, allocations: 0 / 460.5 MB, free: 332 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.1245, allocations: 7.938 kB / 460.5 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.077e-06/0.1245, allocations: 3.938 kB / 460.5 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1245, allocations: 0 / 460.5 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009606/0.1255, allocations: 0.5984 MB / 461.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.631e-05/0.1255, allocations: 100.9 kB / 461.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.138e-05/0.1256, allocations: 8 kB / 461.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001592/0.1258, allocations: 19.92 kB / 461.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.784e-05/0.1258, allocations: 7.984 kB / 461.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.823e-05/0.1258, allocations: 12 kB / 461.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001283/0.126, allocations: 156 kB / 461.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.126, allocations: 0 / 461.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003212/0.1263, allocations: 59.91 kB / 461.4 MB, free: 15.32 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.0001963/0.1265, allocations: 131.2 kB / 461.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005571/0.1271, allocations: 319.7 kB / 461.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1271, allocations: 0 / 461.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002796/0.1274, allocations: 199.3 kB / 462.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003848/0.1278, allocations: 36.53 kB / 462.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007629/0.1286, allocations: 406 kB / 462.5 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/0.1289, allocations: 0.7243 MB / 463.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.805e-05/0.129, allocations: 16.58 kB / 463.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.326e-05/0.129, allocations: 19.44 kB / 463.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.129, allocations: 0 / 463.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of Templates: time 0.005425/0.1344, allocations: 2.113 MB / 465.4 MB, free: 11.3 MB / 350.1 MB make -j1 -f ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: