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.001233/0.001233, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001389/0.001389, allocations: 212.2 kB / 24.53 MB, free: 4.07 MB / 14.72 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.313/1.313, allocations: 207.6 MB / 235.3 MB, free: 9.992 MB / 190.1 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.2891/0.2891, allocations: 49.57 MB / 337.1 MB, free: 4.105 MB / 270.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Examples.HRB.Simulators.TestPI,fileNamePrefix="ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002092/0.002092, allocations: 70.72 kB / 477.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1145, allocations: 62.42 MB / 0.5269 GB, free: 14.33 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.003056/0.1176, allocations: 1.681 MB / 0.5285 GB, free: 12.63 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001343/0.1189, allocations: 0.7021 MB / 0.5292 GB, free: 11.92 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.411e-05/0.119, allocations: 7.938 kB / 0.5292 GB, free: 11.91 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002009/0.1192, allocations: 47.81 kB / 0.5293 GB, free: 11.87 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001135/0.1193, allocations: 63.73 kB / 0.5293 GB, free: 11.8 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004829/0.1198, allocations: 119.7 kB / 0.5294 GB, free: 11.69 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002533/0.1201, allocations: 163.5 kB / 0.5296 GB, free: 11.53 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.607e-05/0.1202, allocations: 21.55 kB / 0.5296 GB, free: 11.5 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001034/0.1203, allocations: 79.75 kB / 0.5297 GB, free: 11.43 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001822/0.1205, allocations: 99.69 kB / 0.5298 GB, free: 11.33 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.535e-05/0.1205, allocations: 12 kB / 0.5298 GB, free: 11.32 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001396/0.1206, allocations: 83.92 kB / 0.5299 GB, free: 11.23 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.36e-05/0.1207, allocations: 39.8 kB / 0.5299 GB, free: 11.2 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.1208, allocations: 67.58 kB / 0.53 GB, free: 11.13 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002985/0.1211, allocations: 195.2 kB / 0.5302 GB, free: 10.94 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1211, allocations: 0 / 0.5302 GB, free: 10.94 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1211, allocations: 0 / 0.5302 GB, free: 10.94 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.143e-05/0.1211, allocations: 0 / 0.5302 GB, free: 10.94 MB / 414.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.0008851/0.122, allocations: 456.8 kB / 0.5306 GB, free: 10.45 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.1221, allocations: 8.031 kB / 0.5306 GB, free: 10.44 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.595e-05/0.1221, allocations: 4.188 kB / 0.5306 GB, free: 10.44 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.372e-05/0.1221, allocations: 42.73 kB / 0.5307 GB, free: 10.39 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.331e-05/0.1222, allocations: 20.8 kB / 0.5307 GB, free: 10.37 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003437/0.1225, allocations: 182 kB / 0.5308 GB, free: 10.16 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.193e-05/0.1225, allocations: 8.375 kB / 0.5309 GB, free: 10.16 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.012e-05/0.1226, allocations: 4.375 kB / 0.5309 GB, free: 10.15 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003826/0.1229, allocations: 184 kB / 0.531 GB, free: 9.957 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.123, allocations: 4 kB / 0.531 GB, free: 9.953 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.799e-05/0.123, allocations: 4 kB / 0.531 GB, free: 9.949 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.233e-06/0.123, allocations: 4 kB / 0.531 GB, free: 9.945 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002337/0.1232, allocations: 95.94 kB / 0.5311 GB, free: 9.852 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006529/0.1239, allocations: 0.5039 MB / 0.5316 GB, free: 9.297 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003274/0.1242, allocations: 126.5 kB / 0.5317 GB, free: 9.164 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001921/0.1244, allocations: 92.8 kB / 0.5318 GB, free: 9.07 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.9e-05/0.1244, allocations: 0 / 0.5318 GB, free: 9.07 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003589/0.1248, allocations: 184.9 kB / 0.532 GB, free: 8.871 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 1.874e-06/0.1248, allocations: 4 kB / 0.532 GB, free: 8.867 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.0009185/0.1257, allocations: 419.8 kB / 0.5324 GB, free: 8.445 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.64e-05/0.1258, allocations: 89.05 kB / 0.5325 GB, free: 8.34 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002052/0.126, allocations: 198.8 kB / 0.5327 GB, free: 8.133 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/0.126, allocations: 29.7 kB / 0.5327 GB, free: 8.098 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.673e-05/0.1261, allocations: 120.4 kB / 0.5328 GB, free: 7.977 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.498e-05/0.1261, allocations: 43.81 kB / 0.5329 GB, free: 7.934 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.993e-05/0.1262, allocations: 45.7 kB / 0.5329 GB, free: 7.883 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.1264, allocations: 334.8 kB / 0.5332 GB, free: 7.547 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001828/0.1266, allocations: 79.95 kB / 0.5333 GB, free: 7.469 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002175/0.1268, allocations: 124.1 kB / 0.5334 GB, free: 7.332 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009846/0.1278, allocations: 478.8 kB / 0.5339 GB, free: 6.824 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1278, allocations: 0 / 0.5339 GB, free: 6.824 MB / 414.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006235/0.1284, allocations: 334.9 kB / 0.5342 GB, free: 6.484 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.732e-05/0.1284, allocations: 37.7 kB / 0.5342 GB, free: 6.441 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.1284, allocations: 4 kB / 0.5343 GB, free: 6.438 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.1285, allocations: 0 / 0.5343 GB, free: 6.438 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001488/0.1286, allocations: 31.97 kB / 0.5343 GB, free: 6.406 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.1286, allocations: 7.875 kB / 0.5343 GB, free: 6.398 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001293/0.1287, allocations: 19.92 kB / 0.5343 GB, free: 6.379 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.945e-05/0.1288, allocations: 8.094 kB / 0.5343 GB, free: 6.371 MB / 414.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.0002417/0.129, allocations: 191.5 kB / 0.5345 GB, free: 6.168 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.553e-05/0.129, allocations: 15.91 kB / 0.5345 GB, free: 6.152 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.49e-05/0.1291, allocations: 25.73 kB / 0.5345 GB, free: 6.121 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.746e-06/0.1291, allocations: 0 / 0.5345 GB, free: 6.121 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.1291, allocations: 3.938 kB / 0.5345 GB, free: 6.117 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.1291, allocations: 0 / 0.5345 GB, free: 6.117 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.1301, allocations: 0.667 MB / 0.5352 GB, free: 5.395 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1301, allocations: 0 / 0.5352 GB, free: 5.395 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.121e-05/0.1302, allocations: 4 kB / 0.5352 GB, free: 5.391 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.1302, allocations: 3.938 kB / 0.5352 GB, free: 5.387 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.278e-05/0.1302, allocations: 8 kB / 0.5352 GB, free: 5.379 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.1302, allocations: 0 / 0.5352 GB, free: 5.379 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1302, allocations: 0 / 0.5352 GB, free: 5.379 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009547/0.1312, allocations: 0.5789 MB / 0.5358 GB, free: 4.777 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.545e-05/0.1312, allocations: 23.88 kB / 0.5358 GB, free: 4.754 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.685e-05/0.1312, allocations: 7.938 kB / 0.5358 GB, free: 4.746 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001477/0.1314, allocations: 11.98 kB / 0.5358 GB, free: 4.734 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.167e-05/0.1314, allocations: 16.05 kB / 0.5358 GB, free: 4.719 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.243e-05/0.1315, allocations: 11.98 kB / 0.5358 GB, free: 4.707 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001415/0.1316, allocations: 148.2 kB / 0.536 GB, free: 4.562 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1316, allocations: 0 / 0.536 GB, free: 4.562 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003123/0.1319, allocations: 59.89 kB / 0.536 GB, free: 4.504 MB / 414.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.001341/0.1333, allocations: 1.143 MB / 0.5372 GB, free: 3.328 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005377/0.1338, allocations: 259.2 kB / 0.5374 GB, free: 3.062 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1338, allocations: 320 / 0.5374 GB, free: 3.062 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002702/0.1341, allocations: 171.2 kB / 0.5376 GB, free: 2.883 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003672/0.1344, allocations: 35.91 kB / 0.5376 GB, free: 2.848 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003322/0.1378, allocations: 2.461 MB / 0.54 GB, free: 280 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1864/0.3241, allocations: 0.7245 MB / 0.5407 GB, free: 22.7 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.848e-05/0.3242, allocations: 9.562 kB / 0.5407 GB, free: 22.7 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.37e-05/0.3243, allocations: 42.44 kB / 0.5408 GB, free: 22.7 MB / 414.1 MB Notification: Performance of SimCode: time 1.573e-06/0.3243, allocations: 0.7188 kB / 0.5408 GB, free: 22.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02758/0.3519, allocations: 4.529 MB / 0.5452 GB, free: 22.03 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.52, allocations: 11.31 kB / 0.5452 GB, free: 22.02 MB / 414.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI_fmu --startTime=0 --stopTime=120 --stepSize=0.048 --timeout=50 --tolerance=1e-06 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: 14.188238208997063] Failed to read output from testmodel.py, exit status != 0: 11.677698555053212 11.699110738 11.573807799999999 Calling exit ...