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.001215/0.001215, allocations: 79.69 kB / 20.67 MB, free: 3.891 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.000901/0.000901, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 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 0.8281/0.8281, allocations: 158.6 MB / 185.7 MB, free: 3.023 MB / 170.7 MB " [Timeout remaining time 179] 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.1774/0.1774, allocations: 36.35 MB / 274.3 MB, free: 10.9 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: "" <> buildModelFMU(ThermoPower.Examples.HRB.Simulators.TestPI,fileNamePrefix="ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Examples.HRB.Simulators.TestPI,fileNamePrefix="ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.933e-06/1.933e-06, allocations: 0 / 414.3 MB, free: 6.098 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.745e-05/1.939e-05, allocations: 6.219 kB / 414.3 MB, free: 6.09 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.002773/0.002793, allocations: 1.628 MB / 416 MB, free: 4.449 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001184/0.003976, allocations: 0.6665 MB / 416.6 MB, free: 3.773 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.853e-05/0.004065, allocations: 3.938 kB / 416.6 MB, free: 3.77 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002363/0.004301, allocations: 43.81 kB / 416.7 MB, free: 3.727 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 9.989e-05/0.004401, allocations: 67.67 kB / 416.7 MB, free: 3.66 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005098/0.004911, allocations: 123.6 kB / 416.9 MB, free: 3.539 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002439/0.005155, allocations: 167.5 kB / 417 MB, free: 3.375 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001084/0.005263, allocations: 17.62 kB / 417 MB, free: 3.355 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001213/0.005385, allocations: 91.78 kB / 417.1 MB, free: 3.266 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001714/0.005556, allocations: 87.81 kB / 417.2 MB, free: 3.18 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.688e-05/0.005583, allocations: 12 kB / 417.2 MB, free: 3.168 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001283/0.005711, allocations: 83.92 kB / 417.3 MB, free: 3.086 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.839e-05/0.005779, allocations: 31.84 kB / 417.3 MB, free: 3.055 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 6.812e-05/0.005848, allocations: 43.84 kB / 417.4 MB, free: 3.012 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003085/0.006156, allocations: 211.4 kB / 417.6 MB, free: 2.805 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.006158, allocations: 0 / 417.6 MB, free: 2.805 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.006159, allocations: 0 / 417.6 MB, free: 2.805 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.006164, allocations: 0 / 417.6 MB, free: 2.805 MB / 346.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.0007117/0.006875, allocations: 460.7 kB / 418 MB, free: 2.312 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.006917, allocations: 8.031 kB / 418 MB, free: 2.305 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.62e-05/0.006963, allocations: 46.73 kB / 418.1 MB, free: 2.25 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.303e-05/0.007016, allocations: 16.84 kB / 418.1 MB, free: 2.234 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002625/0.007278, allocations: 177.3 kB / 418.3 MB, free: 2.035 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.006e-05/0.007299, allocations: 8.375 kB / 418.3 MB, free: 2.027 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.853e-05/0.007327, allocations: 8.375 kB / 418.3 MB, free: 2.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000352/0.007679, allocations: 206.3 kB / 418.5 MB, free: 1.797 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.007689, allocations: 192 / 418.5 MB, free: 1.797 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.007706, allocations: 4.125 kB / 418.5 MB, free: 1.793 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.007719, allocations: 8 kB / 418.5 MB, free: 1.785 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002182/0.007937, allocations: 129.6 kB / 418.6 MB, free: 1.652 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005843/0.008521, allocations: 484.1 kB / 419.1 MB, free: 1.129 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002915/0.008813, allocations: 164.1 kB / 419.3 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001816/0.008994, allocations: 122.5 kB / 419.4 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.009015, allocations: 0 / 419.4 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003186/0.009334, allocations: 222.7 kB / 419.6 MB, free: 0.582 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.703e-06/0.009335, allocations: 0 / 419.6 MB, free: 0.582 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0007384/0.01007, allocations: 486.5 kB / 420.1 MB, free: 84 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.472e-05/0.01014, allocations: 96.97 kB / 420.2 MB, free: 15.97 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.01026, allocations: 190.8 kB / 420.4 MB, free: 15.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.01028, allocations: 33.7 kB / 420.4 MB, free: 15.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.899e-05/0.01034, allocations: 120.4 kB / 420.5 MB, free: 15.61 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.704e-05/0.01037, allocations: 35.8 kB / 420.6 MB, free: 15.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.052e-05/0.01042, allocations: 41.7 kB / 420.6 MB, free: 15.52 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.266e-05/0.0105, allocations: 338.8 kB / 420.9 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/0.01061, allocations: 109.7 kB / 421 MB, free: 15.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001293/0.01074, allocations: 153.8 kB / 421.2 MB, free: 14.9 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005769/0.01132, allocations: 493.8 kB / 421.7 MB, free: 14.38 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.01132, allocations: 0 / 421.7 MB, free: 14.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003366/0.01166, allocations: 368.7 kB / 422 MB, free: 14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.999e-05/0.01169, allocations: 41.69 kB / 422.1 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.01169, allocations: 4 kB / 422.1 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.0117, allocations: 0 / 422.1 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.213e-05/0.01179, allocations: 31.92 kB / 422.1 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.01179, allocations: 0 / 422.1 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.002e-05/0.01186, allocations: 27.88 kB / 422.1 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/0.01187, allocations: 4 kB / 422.1 MB, free: 13.89 MB / 362.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.0001581/0.01203, allocations: 199.4 kB / 422.3 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.969e-05/0.01205, allocations: 23.84 kB / 422.3 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.621e-05/0.01208, allocations: 17.81 kB / 422.4 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.01208, allocations: 0 / 422.4 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.01208, allocations: 0 / 422.4 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.01209, allocations: 0 / 422.4 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005843/0.01267, allocations: 0.6792 MB / 423 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.01267, allocations: 4 kB / 423 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.589e-05/0.01271, allocations: 4 kB / 423.1 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.01271, allocations: 0 / 423.1 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/0.01272, allocations: 11.92 kB / 423.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.01273, allocations: 4 kB / 423.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.01273, allocations: 3.938 kB / 423.1 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005655/0.01329, allocations: 0.6447 MB / 423.7 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.682e-05/0.01331, allocations: 16 kB / 423.7 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.502e-05/0.01334, allocations: 12 kB / 423.7 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.412e-05/0.01341, allocations: 15.92 kB / 423.8 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4e-05/0.01345, allocations: 11.98 kB / 423.8 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.256e-05/0.01347, allocations: 11.98 kB / 423.8 MB, free: 12.12 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.017e-05/0.01355, allocations: 148.2 kB / 423.9 MB, free: 11.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01355, allocations: 0 / 423.9 MB, free: 11.98 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001925/0.01375, allocations: 55.94 kB / 424 MB, free: 11.93 MB / 362.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.0007989/0.01454, allocations: 1.222 MB / 425.2 MB, free: 10.66 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003351/0.01488, allocations: 330.6 kB / 425.5 MB, free: 10.31 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.01488, allocations: 320 / 425.5 MB, free: 10.31 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001442/0.01503, allocations: 197 kB / 425.7 MB, free: 10.1 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002377/0.01526, allocations: 35.91 kB / 425.8 MB, free: 10.06 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002025/0.01729, allocations: 2.629 MB / 428.4 MB, free: 7.289 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.523e-05/0.01736, allocations: 111.4 kB / 428.5 MB, free: 7.16 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.569e-05/0.0174, allocations: 12.64 kB / 428.5 MB, free: 7.148 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.329e-05/0.01745, allocations: 48.48 kB / 428.6 MB, free: 7.102 MB / 362.7 MB Notification: Performance of SimCode: time 7.21e-07/0.01745, allocations: 0 / 428.6 MB, free: 7.102 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01754/0.035, allocations: 5.171 MB / 433.7 MB, free: 1.871 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.281/7.316, allocations: 11.84 kB / 433.7 MB, free: 1.859 MB / 362.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file ThermoPower_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_ThermoPower_Examples_HRB_Simulators_TestPI.fmu > ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.2625682214275] Failed to read output from testmodel.py, exit status != 0: 7.397319274954498 7.40486684 7.397116701 Calling exit ...