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.001147/0.001147, allocations: 87.11 kB / 16.31 MB, free: 6.461 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.001367/0.001367, allocations: 180.6 kB / 17.21 MB, free: 6.336 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.262/1.262, allocations: 205.4 MB / 223.4 MB, free: 13.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2542/0.2542, allocations: 48.78 MB / 320.4 MB, free: 11.22 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.0006795/0.0006795, allocations: 12.53 kB / 391.3 MB, free: 50.22 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1031, allocations: 60.27 MB / 451.5 MB, free: 9.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.001576/0.1047, allocations: 1.344 MB / 452.9 MB, free: 8.086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009554/0.1057, allocations: 0.6481 MB / 453.5 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.849e-05/0.1058, allocations: 0 / 453.5 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000148/0.106, allocations: 51.73 kB / 453.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.543e-05/0.1061, allocations: 55.8 kB / 453.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003604/0.1064, allocations: 83.84 kB / 453.7 MB, free: 7.242 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001692/0.1066, allocations: 139.6 kB / 453.8 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.754e-05/0.1067, allocations: 13.72 kB / 453.9 MB, free: 7.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.409e-05/0.1068, allocations: 67.75 kB / 453.9 MB, free: 7.023 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001308/0.1069, allocations: 83.7 kB / 454 MB, free: 6.941 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.866e-05/0.1069, allocations: 4 kB / 454 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001086/0.1071, allocations: 75.94 kB / 454.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.779e-05/0.1071, allocations: 27.91 kB / 454.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.1e-05/0.1072, allocations: 53.56 kB / 454.2 MB, free: 6.777 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000158/0.1073, allocations: 131.7 kB / 454.3 MB, free: 6.648 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.1073, allocations: 0 / 454.3 MB, free: 6.648 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.113e-06/0.1074, allocations: 0 / 454.3 MB, free: 6.648 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.1074, allocations: 0 / 454.3 MB, free: 6.648 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.0005532/0.1079, allocations: 0.4942 MB / 454.8 MB, free: 6.094 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.108, allocations: 12.03 kB / 454.8 MB, free: 6.082 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.775e-05/0.108, allocations: 38.55 kB / 454.8 MB, free: 6.035 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.851e-05/0.1081, allocations: 19.81 kB / 454.9 MB, free: 6.016 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002087/0.1083, allocations: 222.5 kB / 455.1 MB, free: 5.758 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.1083, allocations: 4 kB / 455.1 MB, free: 5.754 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.415e-05/0.1083, allocations: 19.94 kB / 455.1 MB, free: 5.734 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003027/0.1086, allocations: 176.1 kB / 455.3 MB, free: 5.547 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.721e-06/0.1087, allocations: 0 / 455.3 MB, free: 5.547 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.1087, allocations: 0 / 455.3 MB, free: 5.547 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.1087, allocations: 8 kB / 455.3 MB, free: 5.539 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001917/0.1089, allocations: 103.9 kB / 455.4 MB, free: 5.438 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005253/0.1094, allocations: 0.5398 MB / 455.9 MB, free: 4.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002726/0.1097, allocations: 158.5 kB / 456.1 MB, free: 4.676 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001821/0.1099, allocations: 104.8 kB / 456.2 MB, free: 4.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.561e-05/0.1099, allocations: 0 / 456.2 MB, free: 4.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003049/0.1102, allocations: 197.1 kB / 456.4 MB, free: 4.359 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.292e-06/0.1102, allocations: 0 / 456.4 MB, free: 4.359 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007272/0.111, allocations: 446.9 kB / 456.8 MB, free: 3.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.111, allocations: 81.11 kB / 456.9 MB, free: 3.812 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001597/0.1112, allocations: 202.6 kB / 457.1 MB, free: 3.602 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.1112, allocations: 33.7 kB / 457.1 MB, free: 3.562 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.964e-05/0.1113, allocations: 116.4 kB / 457.2 MB, free: 3.445 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.348e-05/0.1113, allocations: 39.53 kB / 457.3 MB, free: 3.406 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.126e-05/0.1114, allocations: 8 kB / 457.3 MB, free: 3.398 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.1115, allocations: 330.9 kB / 457.6 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001676/0.1116, allocations: 95.88 kB / 457.7 MB, free: 2.973 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00017/0.1118, allocations: 124.2 kB / 457.8 MB, free: 2.836 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001896/0.112, allocations: 124.4 kB / 457.9 MB, free: 2.711 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.112, allocations: 4 kB / 457.9 MB, free: 2.707 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000475/0.1125, allocations: 335 kB / 458.3 MB, free: 2.367 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.122e-05/0.1126, allocations: 41.69 kB / 458.3 MB, free: 2.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.1126, allocations: 0 / 458.3 MB, free: 2.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.057e-05/0.1126, allocations: 4 kB / 458.3 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.1127, allocations: 40.05 kB / 458.4 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.698e-06/0.1127, allocations: 0 / 458.4 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001109/0.1128, allocations: 27.89 kB / 458.4 MB, free: 2.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.664e-05/0.1129, allocations: 8 kB / 458.4 MB, free: 2.242 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.0001781/0.1131, allocations: 203.3 kB / 458.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.497e-05/0.1131, allocations: 15.81 kB / 458.6 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.705e-05/0.1131, allocations: 17.88 kB / 458.6 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.1131, allocations: 0 / 458.6 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.1131, allocations: 0 / 458.6 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.1131, allocations: 3.984 kB / 458.6 MB, free: 1.996 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008142/0.114, allocations: 0.7067 MB / 459.3 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.114, allocations: 0 / 459.3 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.624e-05/0.114, allocations: 11.98 kB / 459.3 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-06/0.114, allocations: 3.938 kB / 459.3 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.871e-05/0.1141, allocations: 8 kB / 459.4 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1141, allocations: 0 / 459.4 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1141, allocations: 4 kB / 459.4 MB, free: 1.199 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007776/0.1149, allocations: 0.5936 MB / 459.9 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.237e-05/0.1149, allocations: 96.88 kB / 460 MB, free: 484 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.452e-05/0.115, allocations: 8 kB / 460.1 MB, free: 476 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001385/0.1151, allocations: 24.05 kB / 460.1 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.424e-05/0.1152, allocations: 11.98 kB / 460.1 MB, free: 440 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.258e-05/0.1152, allocations: 8 kB / 460.1 MB, free: 432 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001011/0.1153, allocations: 155.9 kB / 460.2 MB, free: 276 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1153, allocations: 0 / 460.2 MB, free: 276 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002866/0.1156, allocations: 52 kB / 460.3 MB, free: 224 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.001075/0.1167, allocations: 1.171 MB / 461.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004555/0.1171, allocations: 315.3 kB / 461.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.1171, allocations: 0 / 461.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002343/0.1174, allocations: 195.3 kB / 462 MB, free: 14.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003162/0.1177, allocations: 37.84 kB / 462 MB, free: 14.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001763/0.1195, allocations: 1.297 MB / 463.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002457/0.1197, allocations: 0.7243 MB / 464 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.874e-05/0.1198, allocations: 8.641 kB / 464 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.77e-05/0.1199, allocations: 51.42 kB / 464.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1199, allocations: 0 / 464.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04655/0.1664, allocations: 3.814 MB / 467.9 MB, free: 8.469 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002083/0.1667, allocations: 171 kB / 468.1 MB, free: 8.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.125/2.292, allocations: 0 / 468.1 MB, free: 8.23 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: