Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_4.0.0-dev_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.001557/0.001557, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001539/0.001539, allocations: 213.9 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.371/1.371, allocations: 230.6 MB / 257.5 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo): time 0.1537/0.1537, allocations: 26.82 MB / 340.7 MB, free: 8.207 MB / 270.1 MB " [Timeout remaining time 180] Using package ThermoPower with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: "" <> buildModelFMU(ThermoPower.Examples.HRB.Simulators.TestPI,fileNamePrefix="ThermoPower_4_0_0-dev_ThermoPower_Examples_HRB_Simulators_TestPI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Examples.HRB.Simulators.TestPI,fileNamePrefix="ThermoPower_4_0_0-dev_ThermoPower_Examples_HRB_Simulators_TestPI",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermoPower requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002118/0.002118, allocations: 71.83 kB / 476.8 MB, free: 3.684 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3098, allocations: 60.47 MB / 0.5247 GB, free: 9.562 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.002415/0.3122, allocations: 1.687 MB / 0.5264 GB, free: 8.395 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001059/0.3133, allocations: 0.6961 MB / 0.527 GB, free: 7.914 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.36e-05/0.3134, allocations: 5.094 kB / 0.527 GB, free: 7.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001998/0.3136, allocations: 49.27 kB / 0.5271 GB, free: 7.898 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.981e-05/0.3137, allocations: 61.25 kB / 0.5271 GB, free: 7.879 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00042/0.3141, allocations: 117.5 kB / 0.5273 GB, free: 7.824 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002108/0.3143, allocations: 160.2 kB / 0.5274 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.838e-05/0.3144, allocations: 15.47 kB / 0.5274 GB, free: 7.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.538e-05/0.3145, allocations: 76.47 kB / 0.5275 GB, free: 7.719 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001787/0.3147, allocations: 103.8 kB / 0.5276 GB, free: 7.688 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.661e-05/0.3147, allocations: 14.28 kB / 0.5276 GB, free: 7.684 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001377/0.3148, allocations: 82.47 kB / 0.5277 GB, free: 7.664 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.648e-05/0.3149, allocations: 37.31 kB / 0.5277 GB, free: 7.645 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.581e-05/0.315, allocations: 63.17 kB / 0.5278 GB, free: 7.602 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002544/0.3152, allocations: 196.6 kB / 0.528 GB, free: 7.523 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3152, allocations: 0 / 0.528 GB, free: 7.523 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3152, allocations: 1 kB / 0.528 GB, free: 7.523 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.3152, allocations: 4 kB / 0.528 GB, free: 7.52 MB / 382.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.0006425/0.3159, allocations: 462.2 kB / 0.5284 GB, free: 7.109 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.3159, allocations: 9.469 kB / 0.5284 GB, free: 7.109 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.386e-05/0.3159, allocations: 41.03 kB / 0.5285 GB, free: 7.066 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.365e-05/0.316, allocations: 18.83 kB / 0.5285 GB, free: 7.059 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002359/0.3162, allocations: 166.4 kB / 0.5286 GB, free: 6.902 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.568e-05/0.3162, allocations: 9.234 kB / 0.5286 GB, free: 6.898 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.369e-05/0.3163, allocations: 12.27 kB / 0.5287 GB, free: 6.895 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003248/0.3166, allocations: 171.5 kB / 0.5288 GB, free: 6.805 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.3166, allocations: 0 / 0.5288 GB, free: 6.805 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.3166, allocations: 2.406 kB / 0.5288 GB, free: 6.805 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.3166, allocations: 2.688 kB / 0.5288 GB, free: 6.805 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00022/0.3168, allocations: 105.5 kB / 0.5289 GB, free: 6.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005085/0.3173, allocations: 0.5065 MB / 0.5294 GB, free: 6.312 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002818/0.3176, allocations: 138.5 kB / 0.5296 GB, free: 6.25 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000172/0.3178, allocations: 87.41 kB / 0.5296 GB, free: 6.223 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.471e-05/0.3178, allocations: 1.219 kB / 0.5296 GB, free: 6.223 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002952/0.3181, allocations: 175.1 kB / 0.5298 GB, free: 6.121 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.343e-06/0.3181, allocations: 4 kB / 0.5298 GB, free: 6.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0009213/0.319, allocations: 424 kB / 0.5302 GB, free: 5.965 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.099e-05/0.3191, allocations: 86.31 kB / 0.5303 GB, free: 5.867 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001968/0.3193, allocations: 206.1 kB / 0.5305 GB, free: 5.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.561e-05/0.3193, allocations: 27.55 kB / 0.5305 GB, free: 5.699 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.708e-05/0.3193, allocations: 120.3 kB / 0.5306 GB, free: 5.59 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.654e-05/0.3194, allocations: 41.5 kB / 0.5307 GB, free: 5.559 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.931e-05/0.3195, allocations: 40.77 kB / 0.5307 GB, free: 5.531 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.64e-05/0.3195, allocations: 334.3 kB / 0.531 GB, free: 5.207 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002004/0.3197, allocations: 77.28 kB / 0.5311 GB, free: 5.191 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001849/0.3199, allocations: 129.3 kB / 0.5312 GB, free: 5.117 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000831/0.3207, allocations: 486.3 kB / 0.5317 GB, free: 4.863 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.3207, allocations: 1 kB / 0.5317 GB, free: 4.863 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004762/0.3212, allocations: 330.7 kB / 0.532 GB, free: 4.719 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.232e-05/0.3212, allocations: 36.16 kB / 0.532 GB, free: 4.688 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.3212, allocations: 1.75 kB / 0.532 GB, free: 4.688 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.3213, allocations: 2.469 kB / 0.532 GB, free: 4.688 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001383/0.3214, allocations: 30.45 kB / 0.5321 GB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.882e-06/0.3214, allocations: 6.266 kB / 0.5321 GB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001198/0.3215, allocations: 34.69 kB / 0.5321 GB, free: 4.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/0.3215, allocations: 6.188 kB / 0.5321 GB, free: 4.66 MB / 382.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.0001595/0.3217, allocations: 187.6 kB / 0.5323 GB, free: 4.496 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.919e-05/0.3217, allocations: 19.86 kB / 0.5323 GB, free: 4.488 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.391e-05/0.3218, allocations: 17.02 kB / 0.5323 GB, free: 4.473 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-06/0.3218, allocations: 2.219 kB / 0.5323 GB, free: 4.473 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3218, allocations: 0 / 0.5323 GB, free: 4.473 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.3218, allocations: 8.828 kB / 0.5323 GB, free: 4.465 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007742/0.3225, allocations: 0.6641 MB / 0.533 GB, free: 4.051 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.3226, allocations: 4 kB / 0.533 GB, free: 4.047 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.779e-05/0.3226, allocations: 5.25 kB / 0.533 GB, free: 4.047 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-06/0.3226, allocations: 5.156 kB / 0.533 GB, free: 4.043 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.022e-05/0.3226, allocations: 5.859 kB / 0.533 GB, free: 4.043 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.3226, allocations: 0 / 0.533 GB, free: 4.043 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3226, allocations: 5.781 kB / 0.533 GB, free: 4.039 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007637/0.3234, allocations: 0.5747 MB / 0.5336 GB, free: 3.754 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.521e-05/0.3234, allocations: 21.77 kB / 0.5336 GB, free: 3.738 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.53e-05/0.3234, allocations: 7.766 kB / 0.5336 GB, free: 3.734 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.3236, allocations: 24.05 kB / 0.5336 GB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.165e-05/0.3236, allocations: 11.52 kB / 0.5336 GB, free: 3.723 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.61e-05/0.3237, allocations: 11.89 kB / 0.5337 GB, free: 3.719 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.536e-05/0.3238, allocations: 144.1 kB / 0.5338 GB, free: 3.629 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3238, allocations: 1.188 kB / 0.5338 GB, free: 3.629 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002954/0.3241, allocations: 54.72 kB / 0.5338 GB, free: 3.621 MB / 382.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.0009638/0.325, allocations: 1.143 MB / 0.535 GB, free: 2.793 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004532/0.3255, allocations: 270.9 kB / 0.5352 GB, free: 2.672 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3255, allocations: 1.406 kB / 0.5352 GB, free: 2.672 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002092/0.3257, allocations: 159.7 kB / 0.5354 GB, free: 2.582 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003536/0.326, allocations: 37.92 kB / 0.5354 GB, free: 2.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002472/0.3285, allocations: 2.463 MB / 0.5378 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001409/0.3286, allocations: 0.7239 MB / 0.5385 GB, free: 192 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.064e-05/0.3287, allocations: 9.219 kB / 0.5385 GB, free: 192 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.681e-05/0.3287, allocations: 49.75 kB / 0.5386 GB, free: 152 kB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3287, allocations: 0 / 0.5386 GB, free: 152 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03062/0.3594, allocations: 4.488 MB / 0.543 GB, free: 14.45 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.43, allocations: 0 / 0.543 GB, free: 14.45 MB / 398.1 MB " [Timeout remaining time 648] (rm -f ThermoPower_4.0.0-dev_ThermoPower.Examples.HRB.Simulators.TestPI.pipe ; mkfifo ThermoPower_4.0.0-dev_ThermoPower.Examples.HRB.Simulators.TestPI.pipe ; head -c 1048576 < ThermoPower_4.0.0-dev_ThermoPower.Examples.HRB.Simulators.TestPI.pipe >> ../files/ThermoPower_4.0.0-dev_ThermoPower.Examples.HRB.Simulators.TestPI.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_4_0_0-dev_ThermoPower_Examples_HRB_Simulators_TestPI_fmu --startTime=0 --stopTime=120 --stepSize=0.048 --timeout=50 --tolerance=1e-06 ThermoPower_4_0_0-dev_ThermoPower_Examples_HRB_Simulators_TestPI.fmu > ThermoPower_4.0.0-dev_ThermoPower.Examples.HRB.Simulators.TestPI.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.987516722059809] Failed to read output from testmodel.py, exit status != 0: 11.535379593027756 11.558933795 11.238852967 Calling exit ...