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.001706/0.001706, allocations: 110.2 kB / 17.06 MB, free: 5.973 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.001849/0.001849, allocations: 197.3 kB / 18.01 MB, free: 5.051 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.346/1.346, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2806/0.2806, allocations: 48.85 MB / 320.1 MB, free: 11 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.002118/0.002118, allocations: 80.44 kB / 450 MB, free: 9.051 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09901/0.1011, allocations: 59.15 MB / 0.4972 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.002746/0.1039, allocations: 1.654 MB / 0.4989 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001149/0.1051, allocations: 0.702 MB / 0.4995 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.279e-05/0.1052, allocations: 0 / 0.4995 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002016/0.1054, allocations: 63.8 kB / 0.4996 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.887e-05/0.1055, allocations: 55.67 kB / 0.4997 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004675/0.106, allocations: 119.7 kB / 0.4998 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002227/0.1062, allocations: 163.6 kB / 0.4999 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.1064, allocations: 33.34 kB / 0.5 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.668e-05/0.1064, allocations: 71.75 kB / 0.5 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001648/0.1066, allocations: 103.6 kB / 0.5001 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.591e-05/0.1067, allocations: 8 kB / 0.5001 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000142/0.1068, allocations: 87.86 kB / 0.5002 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.645e-05/0.1069, allocations: 31.91 kB / 0.5002 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.637e-05/0.107, allocations: 63.61 kB / 0.5003 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002765/0.1073, allocations: 195.2 kB / 0.5005 GB, free: 10.4 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.695e-06/0.1073, allocations: 3.984 kB / 0.5005 GB, free: 10.4 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1073, allocations: 3.938 kB / 0.5005 GB, free: 10.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.1073, allocations: 0 / 0.5005 GB, free: 10.39 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.0007206/0.108, allocations: 0.5175 MB / 0.501 GB, free: 9.816 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.1081, allocations: 11.89 kB / 0.501 GB, free: 9.805 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.953e-05/0.1081, allocations: 42.73 kB / 0.5011 GB, free: 9.754 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.942e-05/0.1082, allocations: 20.8 kB / 0.5011 GB, free: 9.734 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003185/0.1085, allocations: 232 kB / 0.5013 GB, free: 9.469 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.771e-05/0.1085, allocations: 8.375 kB / 0.5013 GB, free: 9.461 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.677e-05/0.1085, allocations: 8.375 kB / 0.5013 GB, free: 9.453 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003412/0.1089, allocations: 168.2 kB / 0.5015 GB, free: 9.273 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.1089, allocations: 0 / 0.5015 GB, free: 9.273 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.266e-05/0.1089, allocations: 15.98 kB / 0.5015 GB, free: 9.258 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.109, allocations: 0 / 0.5015 GB, free: 9.258 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002215/0.1092, allocations: 91.94 kB / 0.5016 GB, free: 9.168 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006217/0.1098, allocations: 0.536 MB / 0.5021 GB, free: 8.574 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003104/0.1101, allocations: 142.5 kB / 0.5022 GB, free: 8.426 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001932/0.1103, allocations: 104.8 kB / 0.5023 GB, free: 8.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.572e-05/0.1104, allocations: 0 / 0.5023 GB, free: 8.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003457/0.1107, allocations: 192.9 kB / 0.5025 GB, free: 8.113 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.613e-06/0.1107, allocations: 0 / 0.5025 GB, free: 8.113 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008233/0.1116, allocations: 419.2 kB / 0.5029 GB, free: 7.691 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.089e-05/0.1116, allocations: 89.09 kB / 0.503 GB, free: 7.586 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001867/0.1118, allocations: 198.6 kB / 0.5032 GB, free: 7.379 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.449e-05/0.1119, allocations: 29.7 kB / 0.5032 GB, free: 7.344 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.605e-05/0.112, allocations: 128.4 kB / 0.5033 GB, free: 7.215 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.906e-05/0.112, allocations: 39.69 kB / 0.5034 GB, free: 7.176 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.848e-05/0.1121, allocations: 37.7 kB / 0.5034 GB, free: 7.133 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.1122, allocations: 342.7 kB / 0.5037 GB, free: 6.789 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001793/0.1124, allocations: 79.95 kB / 0.5038 GB, free: 6.711 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002058/0.1126, allocations: 120.2 kB / 0.5039 GB, free: 6.578 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009258/0.1136, allocations: 478.8 kB / 0.5044 GB, free: 6.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.1136, allocations: 0 / 0.5044 GB, free: 6.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005513/0.1141, allocations: 335.5 kB / 0.5047 GB, free: 5.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.459e-05/0.1142, allocations: 45.55 kB / 0.5048 GB, free: 5.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.1142, allocations: 0 / 0.5048 GB, free: 5.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.1142, allocations: 4 kB / 0.5048 GB, free: 5.676 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.1144, allocations: 36.08 kB / 0.5048 GB, free: 5.641 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.1144, allocations: 7.938 kB / 0.5048 GB, free: 5.633 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001238/0.1145, allocations: 23.86 kB / 0.5048 GB, free: 5.609 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.656e-05/0.1145, allocations: 8 kB / 0.5048 GB, free: 5.602 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.0002153/0.1148, allocations: 184.3 kB / 0.505 GB, free: 5.406 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.297e-05/0.1148, allocations: 19.91 kB / 0.505 GB, free: 5.387 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.826e-05/0.1148, allocations: 17.86 kB / 0.505 GB, free: 5.367 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-06/0.1148, allocations: 8 kB / 0.5051 GB, free: 5.359 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1149, allocations: 0 / 0.5051 GB, free: 5.359 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.1149, allocations: 3.938 kB / 0.5051 GB, free: 5.355 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009459/0.1158, allocations: 0.6834 MB / 0.5057 GB, free: 4.609 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1158, allocations: 0 / 0.5057 GB, free: 4.609 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.761e-05/0.1159, allocations: 4 kB / 0.5057 GB, free: 4.605 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.1159, allocations: 3.938 kB / 0.5057 GB, free: 4.602 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.204e-05/0.1159, allocations: 15.98 kB / 0.5057 GB, free: 4.586 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.1159, allocations: 4 kB / 0.5058 GB, free: 4.582 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1159, allocations: 0 / 0.5058 GB, free: 4.582 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008904/0.1168, allocations: 0.5672 MB / 0.5063 GB, free: 3.992 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.568e-05/0.1169, allocations: 105 kB / 0.5064 GB, free: 3.871 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.66e-05/0.117, allocations: 4 kB / 0.5064 GB, free: 3.867 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/0.1171, allocations: 15.97 kB / 0.5064 GB, free: 3.852 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.399e-05/0.1172, allocations: 8 kB / 0.5064 GB, free: 3.844 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.432e-05/0.1172, allocations: 11.98 kB / 0.5064 GB, free: 3.832 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000126/0.1173, allocations: 147 kB / 0.5066 GB, free: 3.688 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1173, allocations: 0 / 0.5066 GB, free: 3.688 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003111/0.1176, allocations: 55.89 kB / 0.5066 GB, free: 3.633 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.001246/0.1189, allocations: 1.143 MB / 0.5078 GB, free: 2.457 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005379/0.1195, allocations: 311 kB / 0.5081 GB, free: 2.141 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.1195, allocations: 0 / 0.5081 GB, free: 2.141 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002684/0.1197, allocations: 191.3 kB / 0.5082 GB, free: 1.941 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003631/0.1201, allocations: 36.16 kB / 0.5083 GB, free: 1.906 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00308/0.1232, allocations: 2.45 MB / 0.5107 GB, free: 15.35 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003325/0.1236, allocations: 0.7279 MB / 0.5114 GB, free: 14.59 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.647e-05/0.1236, allocations: 8.641 kB / 0.5114 GB, free: 14.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.272e-05/0.1237, allocations: 47.42 kB / 0.5114 GB, free: 14.54 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1237, allocations: 0 / 0.5114 GB, free: 14.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.047/2.171, allocations: 4.26 MB / 0.5156 GB, free: 10.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.37/15.54, allocations: 18.05 kB / 0.5156 GB, free: 10.21 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)