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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 92.81 kB / 16.3 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001523/0.001523, allocations: 183.4 kB / 17.19 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.21/2.21, allocations: 205.4 MB / 223.3 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.305/0.305, allocations: 48.78 MB / 320.4 MB, free: 11.31 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008105/0.0008106, allocations: 17.69 kB / 391.2 MB, free: 50.19 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1214, allocations: 60.27 MB / 451.5 MB, free: 9.488 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.002908/0.1243, allocations: 1.337 MB / 452.8 MB, free: 8.133 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001821/0.1262, allocations: 0.6481 MB / 453.5 MB, free: 7.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.1263, allocations: 3.938 kB / 453.5 MB, free: 7.473 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001575/0.1265, allocations: 39.88 kB / 453.5 MB, free: 7.434 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001944/0.1267, allocations: 59.89 kB / 453.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005926/0.1273, allocations: 87.78 kB / 453.7 MB, free: 7.289 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002979/0.1276, allocations: 103.7 kB / 453.8 MB, free: 7.188 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.1278, allocations: 17.72 kB / 453.8 MB, free: 7.168 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001607/0.128, allocations: 59.81 kB / 453.8 MB, free: 7.109 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002488/0.1282, allocations: 75.72 kB / 453.9 MB, free: 7.035 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.321e-05/0.1283, allocations: 8 kB / 453.9 MB, free: 7.027 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000205/0.1285, allocations: 63.94 kB / 454 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.983e-05/0.1286, allocations: 31.91 kB / 454 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.1288, allocations: 65.55 kB / 454.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002884/0.1291, allocations: 123.7 kB / 454.2 MB, free: 6.742 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.135e-06/0.1291, allocations: 0 / 454.2 MB, free: 6.742 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.098e-06/0.1291, allocations: 4 kB / 454.2 MB, free: 6.738 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.1291, allocations: 3.938 kB / 454.2 MB, free: 6.734 MB / 334.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.000995/0.1301, allocations: 0.4981 MB / 454.7 MB, free: 6.176 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.1302, allocations: 8.031 kB / 454.7 MB, free: 6.168 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.301e-05/0.1303, allocations: 42.55 kB / 454.8 MB, free: 6.117 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.046e-05/0.1304, allocations: 15.81 kB / 454.8 MB, free: 6.102 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003586/0.1307, allocations: 226.5 kB / 455 MB, free: 5.84 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.455e-05/0.1308, allocations: 4 kB / 455 MB, free: 5.836 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.337e-05/0.1308, allocations: 8 kB / 455 MB, free: 5.828 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006088/0.1315, allocations: 180.1 kB / 455.2 MB, free: 5.637 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.1315, allocations: 0 / 455.2 MB, free: 5.637 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.188e-05/0.1315, allocations: 4 kB / 455.2 MB, free: 5.633 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.1316, allocations: 0 / 455.2 MB, free: 5.633 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004608/0.132, allocations: 111.9 kB / 455.3 MB, free: 5.523 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000935/0.133, allocations: 0.5282 MB / 455.8 MB, free: 4.938 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005769/0.1336, allocations: 158.4 kB / 456 MB, free: 4.773 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.1336, allocations: 0 / 456 MB, free: 4.773 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006072/0.1342, allocations: 193.1 kB / 456.2 MB, free: 4.566 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 3.196e-06/0.1343, allocations: 0 / 456.2 MB, free: 4.566 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.00166/0.1359, allocations: 0.5228 MB / 456.7 MB, free: 4.016 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.479e-05/0.136, allocations: 89.05 kB / 456.8 MB, free: 3.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003011/0.1364, allocations: 198.6 kB / 457 MB, free: 3.703 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.684e-05/0.1364, allocations: 33.7 kB / 457 MB, free: 3.664 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.1366, allocations: 116.4 kB / 457.1 MB, free: 3.547 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.051e-05/0.1366, allocations: 39.58 kB / 457.2 MB, free: 3.508 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.906e-05/0.1367, allocations: 8 kB / 457.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.1369, allocations: 330.8 kB / 457.5 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003692/0.1372, allocations: 95.94 kB / 457.6 MB, free: 3.074 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004033/0.1377, allocations: 116.2 kB / 457.7 MB, free: 2.945 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004241/0.1381, allocations: 125.6 kB / 457.8 MB, free: 2.816 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.278e-05/0.1381, allocations: 4 kB / 457.8 MB, free: 2.812 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.00107/0.1392, allocations: 338.9 kB / 458.2 MB, free: 2.469 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.885e-05/0.1393, allocations: 41.69 kB / 458.2 MB, free: 2.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.1393, allocations: 0 / 458.2 MB, free: 2.422 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.1394, allocations: 128 / 458.2 MB, free: 2.422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002937/0.1397, allocations: 39.92 kB / 458.2 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.495e-05/0.1397, allocations: 3.984 kB / 458.2 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002732/0.14, allocations: 31.83 kB / 458.3 MB, free: 2.348 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.138e-05/0.14, allocations: 4 kB / 458.3 MB, free: 2.344 MB / 334.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 ($PRE.digitalPI.firstTrigger,digitalPI.firstTrigger,$whenCondition1,digitalPI.sampleTrigger,$whenCondition2,digitalPI.e,$PRE.digitalPI.e_int,digitalPI.e_int,digitalPI.e_int_wind,digitalPI.CSwind,digitalPI.CS,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003415/0.1404, allocations: 203.3 kB / 458.5 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.626e-05/0.1405, allocations: 15.81 kB / 458.5 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.493e-05/0.1405, allocations: 17.88 kB / 458.5 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1406, allocations: 0 / 458.5 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.1406, allocations: 0 / 458.5 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.1406, allocations: 3.984 kB / 458.5 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001653/0.1423, allocations: 0.706 MB / 459.2 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.277e-06/0.1423, allocations: 0 / 459.2 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.535e-05/0.1424, allocations: 15.92 kB / 459.2 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.1424, allocations: 0 / 459.2 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.909e-05/0.1425, allocations: 12 kB / 459.2 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.1425, allocations: 4 kB / 459.2 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1425, allocations: 0 / 459.2 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001708/0.1442, allocations: 0.5944 MB / 459.8 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.752e-05/0.1443, allocations: 92.95 kB / 459.9 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.849e-05/0.1444, allocations: 7.984 kB / 459.9 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003094/0.1447, allocations: 24.05 kB / 460 MB, free: 0.543 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.046e-05/0.1448, allocations: 11.98 kB / 460 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.866e-05/0.1449, allocations: 8 kB / 460 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002127/0.1451, allocations: 152 kB / 460.1 MB, free: 384 kB / 334.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.1451, allocations: 0 / 460.1 MB, free: 384 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006268/0.1458, allocations: 59.94 kB / 460.2 MB, free: 324 kB / 334.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002221/0.148, allocations: 1.163 MB / 461.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009887/0.149, allocations: 320.9 kB / 461.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.1491, allocations: 0 / 461.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005166/0.1496, allocations: 199.3 kB / 461.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004922/0.1501, allocations: 32.3 kB / 461.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003925/0.1541, allocations: 1.87 MB / 463.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004424/0.1546, allocations: 0.732 MB / 464.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.899e-05/0.1547, allocations: 12.64 kB / 464.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.1548, allocations: 39.42 kB / 464.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of SimCode: time 1.472e-06/0.1548, allocations: 0 / 464.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02569/0.1805, allocations: 3.801 MB / 468.3 MB, free: 8.004 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000307/0.1809, allocations: 163.1 kB / 468.5 MB, free: 7.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.646/2.827, allocations: 64 / 468.5 MB, free: 7.77 MB / 350.1 MB (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/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI.fmu > ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe 2>&1) Environment - environmentSimulation: