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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.35/1.35, allocations: 158.6 MB / 186.1 MB, free: 2.902 MB / 170.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo): time 0.2925/0.2925, allocations: 36.35 MB / 274.7 MB, free: 10.7 MB / 266.7 MB " [Timeout remaining time 180] Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermoPower.Examples.HRB.Simulators.TestPI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI") translateModel(ThermoPower.Examples.HRB.Simulators.TestPI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 353 MB, free: 3.812 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.985e-05/2.126e-05, allocations: 5.688 kB / 353 MB, free: 3.809 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.002074/0.002096, allocations: 1.643 MB / 354.7 MB, free: 2.145 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009105/0.003006, allocations: 0.6552 MB / 355.3 MB, free: 1.48 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.232e-05/0.003069, allocations: 4 kB / 355.3 MB, free: 1.477 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001703/0.003239, allocations: 51.73 kB / 355.4 MB, free: 1.426 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.554e-05/0.003314, allocations: 67.72 kB / 355.5 MB, free: 1.359 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003823/0.003697, allocations: 123.5 kB / 355.6 MB, free: 1.238 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001603/0.003857, allocations: 159.6 kB / 355.7 MB, free: 1.082 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.168e-05/0.003929, allocations: 13.62 kB / 355.7 MB, free: 1.062 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.939e-05/0.004028, allocations: 91.78 kB / 355.8 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001275/0.004156, allocations: 91.81 kB / 355.9 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.372e-05/0.004179, allocations: 8 kB / 355.9 MB, free: 0.875 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001007/0.00428, allocations: 83.92 kB / 356 MB, free: 0.793 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.072e-05/0.004331, allocations: 43.78 kB / 356.1 MB, free: 0.75 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.566e-05/0.004386, allocations: 39.84 kB / 356.1 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000219/0.004605, allocations: 215.4 kB / 356.3 MB, free: 0.5 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.904e-06/0.004607, allocations: 0 / 356.3 MB, free: 0.5 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.004608, allocations: 0 / 356.3 MB, free: 0.5 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.626e-06/0.004612, allocations: 0 / 356.3 MB, free: 0.5 MB / 282.7 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.0005483/0.00516, allocations: 456.7 kB / 356.8 MB, free: 12 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.703e-05/0.005187, allocations: 8.031 kB / 356.8 MB, free: 4 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001027/0.00529, allocations: 24.89 kB / 356.8 MB, free: 15.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003093/0.005599, allocations: 185.1 kB / 357 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.277e-05/0.005622, allocations: 8.375 kB / 357 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.556e-05/0.005658, allocations: 8.375 kB / 357 MB, free: 15.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004191/0.006077, allocations: 202.4 kB / 357.2 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-06/0.006085, allocations: 192 / 357.2 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.688e-05/0.006102, allocations: 384 / 357.2 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.006112, allocations: 7.938 kB / 357.2 MB, free: 15.53 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002721/0.006384, allocations: 125.6 kB / 357.3 MB, free: 15.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006759/0.00706, allocations: 472.5 kB / 357.8 MB, free: 14.9 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003705/0.007431, allocations: 156.1 kB / 357.9 MB, free: 14.73 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000242/0.007673, allocations: 122.5 kB / 358 MB, free: 14.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.257e-05/0.007695, allocations: 12 kB / 358.1 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003906/0.008086, allocations: 214.6 kB / 358.3 MB, free: 14.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.443e-06/0.008087, allocations: 0 / 358.3 MB, free: 14.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.001047/0.009135, allocations: 493.5 kB / 358.7 MB, free: 13.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.634e-05/0.009211, allocations: 89.09 kB / 358.8 MB, free: 13.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002457/0.009457, allocations: 198.8 kB / 359 MB, free: 13.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.765e-05/0.009484, allocations: 25.7 kB / 359.1 MB, free: 13.51 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.009589, allocations: 120.4 kB / 359.2 MB, free: 13.39 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.105e-05/0.00964, allocations: 39.84 kB / 359.2 MB, free: 13.35 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.343e-05/0.009723, allocations: 41.7 kB / 359.3 MB, free: 13.3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001891/0.009912, allocations: 330.9 kB / 359.6 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002323/0.01014, allocations: 121.4 kB / 359.7 MB, free: 12.85 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002768/0.01042, allocations: 153.9 kB / 359.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/0.0115, allocations: 490.7 kB / 360.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.01151, allocations: 4 kB / 360.3 MB, free: 12.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007054/0.01221, allocations: 375.2 kB / 360.7 MB, free: 11.77 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.785e-05/0.01226, allocations: 41.73 kB / 360.7 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/0.01227, allocations: 11.98 kB / 360.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.677e-05/0.0123, allocations: 0 / 360.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000151/0.01245, allocations: 23.98 kB / 360.8 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.176e-06/0.01246, allocations: 7.938 kB / 360.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001471/0.01261, allocations: 23.94 kB / 360.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.678e-05/0.01262, allocations: 4 kB / 360.8 MB, free: 11.65 MB / 298.7 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.0002367/0.01286, allocations: 193.5 kB / 361 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.483e-05/0.01291, allocations: 23.89 kB / 361 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.943e-05/0.01295, allocations: 21.81 kB / 361 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.01296, allocations: 0 / 361 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.01296, allocations: 0 / 361 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.01296, allocations: 7.938 kB / 361 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001097/0.01406, allocations: 0.6418 MB / 361.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.01406, allocations: 3.984 kB / 361.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.574e-05/0.01412, allocations: 16 kB / 361.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.01412, allocations: 0 / 361.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.28e-05/0.01414, allocations: 4 kB / 361.7 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.01415, allocations: 0 / 361.7 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.01415, allocations: 0 / 361.7 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001144/0.01529, allocations: 0.6511 MB / 362.4 MB, free: 10 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.954e-05/0.01533, allocations: 27.81 kB / 362.4 MB, free: 9.973 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.224e-05/0.01537, allocations: 12.06 kB / 362.4 MB, free: 9.961 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.01554, allocations: 11.98 kB / 362.4 MB, free: 9.949 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.777e-05/0.01559, allocations: 11.98 kB / 362.4 MB, free: 9.938 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.261e-05/0.01562, allocations: 15.92 kB / 362.4 MB, free: 9.922 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001579/0.01578, allocations: 152 kB / 362.6 MB, free: 9.773 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01578, allocations: 0 / 362.6 MB, free: 9.773 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003349/0.01612, allocations: 48 kB / 362.6 MB, free: 9.727 MB / 298.7 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.0002332/0.01635, allocations: 135.1 kB / 362.8 MB, free: 9.586 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006307/0.01698, allocations: 342.5 kB / 363.1 MB, free: 9.227 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.01698, allocations: 0 / 363.1 MB, free: 9.227 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003191/0.0173, allocations: 185 kB / 363.3 MB, free: 9.027 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003893/0.01769, allocations: 40.75 kB / 363.3 MB, free: 8.992 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008301/0.01852, allocations: 401.9 kB / 363.7 MB, free: 8.57 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001323/0.01865, allocations: 115.4 kB / 363.8 MB, free: 8.438 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.184e-05/0.01869, allocations: 8.641 kB / 363.8 MB, free: 8.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.743e-05/0.01873, allocations: 16.5 kB / 363.9 MB, free: 8.414 MB / 298.7 MB Notification: Performance of SimCode: time 4e-07/0.01873, allocations: 4 kB / 363.9 MB, free: 8.41 MB / 298.7 MB Notification: Performance of Templates: time 0.006655/0.02539, allocations: 2.474 MB / 366.3 MB, free: 5.941 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.552673591999337]