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.001252/0.001252, allocations: 106.4 kB / 17.06 MB, free: 6.027 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.001039/0.00104, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.321/1.321, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2557/0.2557, allocations: 48.85 MB / 320.1 MB, free: 11.02 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.00176/0.00176, allocations: 71.91 kB / 450 MB, free: 9.078 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1131, allocations: 59.15 MB / 0.4972 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.003348/0.1165, allocations: 1.658 MB / 0.4988 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001396/0.1179, allocations: 0.7097 MB / 0.4995 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000122/0.1181, allocations: 4 kB / 0.4995 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002225/0.1183, allocations: 47.81 kB / 0.4996 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001281/0.1185, allocations: 59.67 kB / 0.4996 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005444/0.119, allocations: 115.7 kB / 0.4998 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002437/0.1193, allocations: 159.6 kB / 0.4999 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.1194, allocations: 37.3 kB / 0.4999 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.773e-05/0.1195, allocations: 67.81 kB / 0.5 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001602/0.1197, allocations: 95.66 kB / 0.5001 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.756e-05/0.1197, allocations: 12 kB / 0.5001 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001362/0.1199, allocations: 87.86 kB / 0.5002 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.678e-05/0.1199, allocations: 31.89 kB / 0.5002 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.426e-05/0.12, allocations: 71.59 kB / 0.5003 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002765/0.1203, allocations: 195.4 kB / 0.5005 GB, free: 10.43 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.1203, allocations: 0 / 0.5005 GB, free: 10.43 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.1203, allocations: 7.875 kB / 0.5005 GB, free: 10.42 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.417e-05/0.1204, allocations: 4 kB / 0.5005 GB, free: 10.42 MB / 398.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.0008495/0.1212, allocations: 0.5098 MB / 0.501 GB, free: 9.848 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.1213, allocations: 15.89 kB / 0.501 GB, free: 9.832 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.373e-05/0.1213, allocations: 38.75 kB / 0.501 GB, free: 9.785 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.242e-05/0.1214, allocations: 24.67 kB / 0.5011 GB, free: 9.762 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000327/0.1217, allocations: 227.9 kB / 0.5013 GB, free: 9.5 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.024e-05/0.1217, allocations: 8.375 kB / 0.5013 GB, free: 9.492 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.119e-05/0.1218, allocations: 8.375 kB / 0.5013 GB, free: 9.484 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003377/0.1221, allocations: 172.2 kB / 0.5015 GB, free: 9.301 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.1221, allocations: 0 / 0.5015 GB, free: 9.301 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/0.1222, allocations: 8 kB / 0.5015 GB, free: 9.293 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.1222, allocations: 4 kB / 0.5015 GB, free: 9.289 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002105/0.1224, allocations: 91.94 kB / 0.5016 GB, free: 9.199 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006274/0.123, allocations: 0.532 MB / 0.5021 GB, free: 8.609 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002965/0.1233, allocations: 146.5 kB / 0.5022 GB, free: 8.457 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001805/0.1235, allocations: 96.81 kB / 0.5023 GB, free: 8.359 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.231e-05/0.1236, allocations: 4 kB / 0.5023 GB, free: 8.355 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003276/0.1239, allocations: 196.8 kB / 0.5025 GB, free: 8.145 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 2.084e-06/0.1239, allocations: 0 / 0.5025 GB, free: 8.145 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007973/0.1247, allocations: 419 kB / 0.5029 GB, free: 7.723 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.406e-05/0.1248, allocations: 85.11 kB / 0.503 GB, free: 7.621 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001816/0.125, allocations: 202.6 kB / 0.5032 GB, free: 7.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.802e-05/0.125, allocations: 33.7 kB / 0.5032 GB, free: 7.371 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.696e-05/0.1251, allocations: 116.4 kB / 0.5033 GB, free: 7.254 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.801e-05/0.1252, allocations: 47.44 kB / 0.5034 GB, free: 7.207 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.63e-05/0.1252, allocations: 41.64 kB / 0.5034 GB, free: 7.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.1254, allocations: 330.8 kB / 0.5037 GB, free: 6.828 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001684/0.1255, allocations: 79.95 kB / 0.5038 GB, free: 6.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001845/0.1257, allocations: 124.2 kB / 0.5039 GB, free: 6.613 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009411/0.1267, allocations: 486.7 kB / 0.5044 GB, free: 6.098 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.1267, allocations: 0 / 0.5044 GB, free: 6.098 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005346/0.1272, allocations: 319.5 kB / 0.5047 GB, free: 5.773 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.504e-05/0.1273, allocations: 45.59 kB / 0.5047 GB, free: 5.723 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.1273, allocations: 4 kB / 0.5047 GB, free: 5.719 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.1273, allocations: 0 / 0.5047 GB, free: 5.719 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/0.1275, allocations: 32.11 kB / 0.5048 GB, free: 5.688 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.1275, allocations: 3.938 kB / 0.5048 GB, free: 5.684 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001443/0.1277, allocations: 31.77 kB / 0.5048 GB, free: 5.652 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.758e-05/0.1277, allocations: 4 kB / 0.5048 GB, free: 5.648 MB / 398.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.0002498/0.1279, allocations: 188.1 kB / 0.505 GB, free: 5.449 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.866e-05/0.128, allocations: 19.75 kB / 0.505 GB, free: 5.43 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.952e-05/0.128, allocations: 21.88 kB / 0.505 GB, free: 5.406 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.1281, allocations: 0 / 0.505 GB, free: 5.406 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.1281, allocations: 0 / 0.505 GB, free: 5.406 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.1281, allocations: 7.922 kB / 0.505 GB, free: 5.398 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000954/0.129, allocations: 0.6834 MB / 0.5057 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.1291, allocations: 4 kB / 0.5057 GB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.369e-05/0.1291, allocations: 4 kB / 0.5057 GB, free: 4.645 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.461e-05/0.1291, allocations: 11.92 kB / 0.5057 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/0.1292, allocations: 8 kB / 0.5057 GB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.1292, allocations: 0 / 0.5057 GB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.1292, allocations: 0 / 0.5057 GB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008471/0.13, allocations: 0.571 MB / 0.5063 GB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.761e-05/0.1301, allocations: 104.9 kB / 0.5064 GB, free: 3.91 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.457e-05/0.1302, allocations: 7.984 kB / 0.5064 GB, free: 3.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001524/0.1303, allocations: 15.98 kB / 0.5064 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.594e-05/0.1304, allocations: 11.98 kB / 0.5064 GB, free: 3.875 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.631e-05/0.1304, allocations: 4 kB / 0.5064 GB, free: 3.871 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000112/0.1305, allocations: 147 kB / 0.5066 GB, free: 3.727 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1305, allocations: 0 / 0.5066 GB, free: 3.727 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000323/0.1309, allocations: 55.98 kB / 0.5066 GB, free: 3.672 MB / 398.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.00121/0.1321, allocations: 1.147 MB / 0.5077 GB, free: 2.492 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000509/0.1326, allocations: 303.2 kB / 0.508 GB, free: 2.184 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1326, allocations: 0 / 0.508 GB, free: 2.184 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002529/0.1329, allocations: 191.3 kB / 0.5082 GB, free: 1.984 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000413/0.1333, allocations: 28.23 kB / 0.5082 GB, free: 1.957 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003053/0.1364, allocations: 2.447 MB / 0.5106 GB, free: 15.4 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002947/0.1367, allocations: 0.7278 MB / 0.5113 GB, free: 14.65 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.859e-05/0.1368, allocations: 8.656 kB / 0.5113 GB, free: 14.64 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.219e-05/0.1368, allocations: 43.42 kB / 0.5114 GB, free: 14.6 MB / 414.1 MB Notification: Performance of SimCode: time 1.022e-06/0.1369, allocations: 0 / 0.5114 GB, free: 14.6 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04035/0.1772, allocations: 4.361 MB / 0.5156 GB, free: 10.18 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.441/8.618, allocations: 14.11 kB / 0.5157 GB, free: 10.17 MB / 414.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/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)