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.001895/0.001895, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002268/0.002268, allocations: 214.5 kB / 23.75 MB, free: 4.668 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.536/1.536, allocations: 230.6 MB / 257.5 MB, free: 7.996 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.1541/0.1541, allocations: 26.82 MB / 340.7 MB, free: 8.195 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.002485/0.002485, allocations: 75.81 kB / 476.8 MB, free: 3.66 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3172/0.3197, allocations: 60.47 MB / 0.5247 GB, free: 9.547 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.00279/0.3225, allocations: 1.686 MB / 0.5264 GB, free: 8.383 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.3236, allocations: 0.6868 MB / 0.527 GB, free: 7.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000101/0.3237, allocations: 5.094 kB / 0.527 GB, free: 7.906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002021/0.3239, allocations: 54.97 kB / 0.5271 GB, free: 7.891 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001007/0.324, allocations: 62.41 kB / 0.5271 GB, free: 7.867 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004711/0.3245, allocations: 117.7 kB / 0.5273 GB, free: 7.816 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002272/0.3247, allocations: 160.5 kB / 0.5274 GB, free: 7.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.412e-05/0.3248, allocations: 13.03 kB / 0.5274 GB, free: 7.742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.451e-05/0.3249, allocations: 76.55 kB / 0.5275 GB, free: 7.711 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002086/0.3251, allocations: 104 kB / 0.5276 GB, free: 7.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.624e-05/0.3251, allocations: 9.875 kB / 0.5276 GB, free: 7.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001404/0.3253, allocations: 87.81 kB / 0.5277 GB, free: 7.656 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.321e-05/0.3253, allocations: 39.86 kB / 0.5277 GB, free: 7.633 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.041e-05/0.3254, allocations: 67.06 kB / 0.5278 GB, free: 7.586 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002673/0.3257, allocations: 196.4 kB / 0.528 GB, free: 7.508 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3257, allocations: 1.094 kB / 0.528 GB, free: 7.508 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3257, allocations: 0 / 0.528 GB, free: 7.508 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.3257, allocations: 0 / 0.528 GB, free: 7.508 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.0006204/0.3263, allocations: 463.1 kB / 0.5284 GB, free: 7.098 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.3263, allocations: 8.781 kB / 0.5284 GB, free: 7.098 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.707e-05/0.3264, allocations: 44.31 kB / 0.5285 GB, free: 7.051 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.831e-05/0.3264, allocations: 18.52 kB / 0.5285 GB, free: 7.043 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002651/0.3267, allocations: 171.4 kB / 0.5286 GB, free: 6.883 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/0.3267, allocations: 4.703 kB / 0.5287 GB, free: 6.883 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.066e-05/0.3267, allocations: 11.98 kB / 0.5287 GB, free: 6.879 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003407/0.3271, allocations: 170.4 kB / 0.5288 GB, free: 6.789 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.3271, allocations: 1.672 kB / 0.5288 GB, free: 6.789 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/0.3271, allocations: 1.812 kB / 0.5288 GB, free: 6.789 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.3271, allocations: 1.969 kB / 0.5288 GB, free: 6.789 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002215/0.3273, allocations: 99.2 kB / 0.5289 GB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005368/0.3279, allocations: 0.5139 MB / 0.5294 GB, free: 6.297 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003016/0.3282, allocations: 126.7 kB / 0.5295 GB, free: 6.246 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000176/0.3283, allocations: 86.48 kB / 0.5296 GB, free: 6.219 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.115e-05/0.3284, allocations: 5.797 kB / 0.5296 GB, free: 6.215 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003133/0.3287, allocations: 178.1 kB / 0.5298 GB, free: 6.113 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.583e-06/0.3287, allocations: 1.156 kB / 0.5298 GB, free: 6.113 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0009885/0.3297, allocations: 428.8 kB / 0.5302 GB, free: 5.953 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.597e-05/0.3297, allocations: 81.67 kB / 0.5303 GB, free: 5.859 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002064/0.3299, allocations: 205.8 kB / 0.5305 GB, free: 5.723 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.3299, allocations: 28.2 kB / 0.5305 GB, free: 5.691 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.212e-05/0.33, allocations: 115.8 kB / 0.5306 GB, free: 5.586 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.735e-05/0.33, allocations: 45.3 kB / 0.5307 GB, free: 5.551 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.536e-05/0.3301, allocations: 41.66 kB / 0.5307 GB, free: 5.523 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.091e-05/0.3302, allocations: 338.3 kB / 0.531 GB, free: 5.195 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002127/0.3304, allocations: 76.83 kB / 0.5311 GB, free: 5.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001787/0.3306, allocations: 125.7 kB / 0.5312 GB, free: 5.109 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008845/0.3315, allocations: 494.5 kB / 0.5317 GB, free: 4.844 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.3315, allocations: 1.031 kB / 0.5317 GB, free: 4.844 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005351/0.332, allocations: 323 kB / 0.532 GB, free: 4.707 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.828e-05/0.332, allocations: 40.33 kB / 0.532 GB, free: 4.672 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.332, allocations: 1.156 kB / 0.532 GB, free: 4.672 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.3321, allocations: 3.25 kB / 0.5321 GB, free: 4.672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001538/0.3322, allocations: 30.56 kB / 0.5321 GB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.3322, allocations: 2.547 kB / 0.5321 GB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001419/0.3324, allocations: 33.34 kB / 0.5321 GB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.903e-05/0.3324, allocations: 6.844 kB / 0.5321 GB, free: 4.648 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.0001974/0.3326, allocations: 192.5 kB / 0.5323 GB, free: 4.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.608e-05/0.3326, allocations: 18.2 kB / 0.5323 GB, free: 4.473 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.057e-05/0.3327, allocations: 18.06 kB / 0.5323 GB, free: 4.457 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.3327, allocations: 1.156 kB / 0.5323 GB, free: 4.457 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.3327, allocations: 1.062 kB / 0.5323 GB, free: 4.457 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.3327, allocations: 4.734 kB / 0.5323 GB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009016/0.3336, allocations: 0.6701 MB / 0.533 GB, free: 4.035 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.3336, allocations: 0 / 0.533 GB, free: 4.035 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.515e-05/0.3336, allocations: 14.55 kB / 0.533 GB, free: 4.027 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.3336, allocations: 3.938 kB / 0.533 GB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.99e-05/0.3337, allocations: 5.344 kB / 0.533 GB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.3337, allocations: 1.828 kB / 0.533 GB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3337, allocations: 0 / 0.533 GB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008259/0.3345, allocations: 0.5686 MB / 0.5336 GB, free: 3.742 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.804e-05/0.3345, allocations: 22.14 kB / 0.5336 GB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.95e-05/0.3346, allocations: 8.719 kB / 0.5336 GB, free: 3.723 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001558/0.3347, allocations: 14.88 kB / 0.5336 GB, free: 3.723 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.126e-05/0.3348, allocations: 7.297 kB / 0.5336 GB, free: 3.723 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.05e-05/0.3348, allocations: 12.47 kB / 0.5336 GB, free: 3.719 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001212/0.3349, allocations: 148.2 kB / 0.5338 GB, free: 3.625 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3349, allocations: 0 / 0.5338 GB, free: 3.625 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003626/0.3353, allocations: 56.72 kB / 0.5338 GB, free: 3.617 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.001115/0.3364, allocations: 1.147 MB / 0.535 GB, free: 2.789 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005616/0.337, allocations: 267.5 kB / 0.5352 GB, free: 2.672 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.337, allocations: 0 / 0.5352 GB, free: 2.672 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002344/0.3372, allocations: 168 kB / 0.5354 GB, free: 2.574 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004032/0.3376, allocations: 34.64 kB / 0.5354 GB, free: 2.562 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002879/0.3405, allocations: 2.456 MB / 0.5378 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001507/0.3406, allocations: 0.7273 MB / 0.5385 GB, free: 184 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.699e-05/0.3407, allocations: 13.88 kB / 0.5385 GB, free: 180 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.674e-05/0.3408, allocations: 44.83 kB / 0.5386 GB, free: 144 kB / 382.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3408, allocations: 0 / 0.5386 GB, free: 144 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0372/0.378, allocations: 4.497 MB / 0.543 GB, free: 14.44 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/12.69, allocations: 7.922 kB / 0.543 GB, free: 14.43 MB / 398.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file ThermoPower_4.0.0-dev_ThermoPower.Examples.HRB.Simulators.TestPI_res.csv --start-time 0 --stop-time 120 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.048 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: 15.601281329989433] Failed to read output from testmodel.py, exit status != 0: 12.808531148009934 12.839768927 12.508672502 Calling exit ...