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.001129/0.001129, allocations: 101.1 kB / 16.5 MB, free: 6.207 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.001095/0.001095, allocations: 198.2 kB / 17.43 MB, free: 5.844 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.209/1.209, allocations: 205.1 MB / 223.3 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.2314/0.2314, allocations: 48.83 MB / 319.5 MB, free: 11.29 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.001268/0.001268, allocations: 65.16 kB / 389.5 MB, free: 48.96 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07683/0.07811, allocations: 59.16 MB / 448.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.002404/0.08055, allocations: 1.706 MB / 450.3 MB, free: 8.426 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009644/0.08153, allocations: 0.7178 MB / 451 MB, free: 7.699 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.377e-05/0.0816, allocations: 7.875 kB / 451.1 MB, free: 7.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001734/0.08179, allocations: 39.88 kB / 451.1 MB, free: 7.652 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.46e-05/0.08187, allocations: 59.8 kB / 451.2 MB, free: 7.594 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003246/0.0822, allocations: 91.83 kB / 451.2 MB, free: 7.504 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001606/0.08237, allocations: 151.6 kB / 451.4 MB, free: 7.355 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.52e-05/0.08247, allocations: 21.72 kB / 451.4 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.746e-05/0.08255, allocations: 59.77 kB / 451.5 MB, free: 7.277 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001327/0.08269, allocations: 91.7 kB / 451.6 MB, free: 7.188 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.411e-05/0.08272, allocations: 8 kB / 451.6 MB, free: 7.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001201/0.08284, allocations: 87.78 kB / 451.7 MB, free: 7.094 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.194e-05/0.08291, allocations: 35.91 kB / 451.7 MB, free: 7.059 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.081e-05/0.083, allocations: 63.61 kB / 451.7 MB, free: 6.996 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001987/0.0832, allocations: 175.4 kB / 451.9 MB, free: 6.824 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.08322, allocations: 0 / 451.9 MB, free: 6.824 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.08322, allocations: 0 / 451.9 MB, free: 6.824 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.867e-06/0.08323, allocations: 0 / 451.9 MB, free: 6.824 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.0006518/0.08389, allocations: 0.5176 MB / 452.4 MB, free: 6.246 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.08393, allocations: 16.03 kB / 452.5 MB, free: 6.23 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.838e-05/0.08398, allocations: 42.73 kB / 452.5 MB, free: 6.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.309e-05/0.08403, allocations: 24.69 kB / 452.5 MB, free: 6.156 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002015/0.08423, allocations: 231.7 kB / 452.7 MB, free: 5.891 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.08425, allocations: 8.375 kB / 452.8 MB, free: 5.883 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.517e-05/0.08428, allocations: 8.359 kB / 452.8 MB, free: 5.875 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003013/0.08459, allocations: 170.5 kB / 452.9 MB, free: 5.695 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.0846, allocations: 0 / 452.9 MB, free: 5.695 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.83e-05/0.08463, allocations: 8 kB / 452.9 MB, free: 5.688 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.08464, allocations: 3.938 kB / 452.9 MB, free: 5.684 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001964/0.08484, allocations: 91.94 kB / 453 MB, free: 5.594 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005152/0.08536, allocations: 0.5398 MB / 453.6 MB, free: 4.996 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002733/0.08564, allocations: 142.5 kB / 453.7 MB, free: 4.848 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000182/0.08584, allocations: 100.8 kB / 453.8 MB, free: 4.746 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.719e-05/0.08586, allocations: 7.984 kB / 453.8 MB, free: 4.738 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002985/0.08617, allocations: 177 kB / 454 MB, free: 4.547 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.533e-06/0.08618, allocations: 4 kB / 454 MB, free: 4.543 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007305/0.08691, allocations: 430.9 kB / 454.4 MB, free: 4.109 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.444e-05/0.08697, allocations: 81.11 kB / 454.5 MB, free: 4.012 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000152/0.08712, allocations: 198.8 kB / 454.7 MB, free: 3.805 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/0.08715, allocations: 25.7 kB / 454.7 MB, free: 3.773 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.558e-05/0.08722, allocations: 116.5 kB / 454.8 MB, free: 3.656 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.653e-05/0.08726, allocations: 51.38 kB / 454.9 MB, free: 3.605 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.061e-05/0.08733, allocations: 41.7 kB / 454.9 MB, free: 3.559 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.08743, allocations: 330.9 kB / 455.2 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001609/0.0876, allocations: 87.88 kB / 455.3 MB, free: 3.141 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.08778, allocations: 124 kB / 455.4 MB, free: 3.004 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008091/0.0886, allocations: 489.9 kB / 455.9 MB, free: 2.488 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.08861, allocations: 0 / 455.9 MB, free: 2.488 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004656/0.08908, allocations: 311 kB / 456.2 MB, free: 2.172 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.514e-05/0.08912, allocations: 45.75 kB / 456.3 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.08913, allocations: 4 kB / 456.3 MB, free: 2.117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/0.08915, allocations: 4 kB / 456.3 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.08928, allocations: 27.97 kB / 456.3 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.034e-06/0.08929, allocations: 4 kB / 456.3 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001131/0.08941, allocations: 23.83 kB / 456.3 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.56e-05/0.08943, allocations: 8 kB / 456.3 MB, free: 2.051 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 (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.0001676/0.08961, allocations: 191.4 kB / 456.5 MB, free: 1.848 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.01e-05/0.08964, allocations: 19.81 kB / 456.5 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.908e-05/0.08968, allocations: 17.86 kB / 456.6 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.08969, allocations: 4 kB / 456.6 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.08969, allocations: 0 / 456.6 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.0897, allocations: 3.938 kB / 456.6 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007928/0.0905, allocations: 0.6959 MB / 457.3 MB, free: 1.051 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.09051, allocations: 0 / 457.3 MB, free: 1.051 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.705e-05/0.09057, allocations: 8 kB / 457.3 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.09058, allocations: 4 kB / 457.3 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.981e-05/0.0906, allocations: 7.938 kB / 457.3 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.09061, allocations: 4 kB / 457.3 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.09061, allocations: 0 / 457.3 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007572/0.09138, allocations: 0.5743 MB / 457.9 MB, free: 444 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.466e-05/0.09143, allocations: 96.88 kB / 458 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.482e-05/0.09147, allocations: 7.938 kB / 458 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001414/0.09162, allocations: 11.98 kB / 458 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.567e-05/0.09166, allocations: 15.92 kB / 458 MB, free: 292 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.42e-05/0.09169, allocations: 8 kB / 458 MB, free: 284 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000102/0.0918, allocations: 160 kB / 458.2 MB, free: 124 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.0918, allocations: 3.938 kB / 458.2 MB, free: 120 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002727/0.09208, allocations: 56 kB / 458.2 MB, free: 64 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 (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.001039/0.09313, allocations: 1.128 MB / 459.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004356/0.09357, allocations: 303.1 kB / 459.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.09359, allocations: 4 kB / 459.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000241/0.09383, allocations: 191.6 kB / 459.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003287/0.09417, allocations: 39.97 kB / 459.9 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002544/0.09672, allocations: 2.473 MB / 462.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002305/0.09697, allocations: 0.7243 MB / 463.1 MB, free: 11.01 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.879e-05/0.09701, allocations: 12.64 kB / 463.1 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.844e-05/0.09707, allocations: 43.42 kB / 463.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.09708, allocations: 0 / 463.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0128/0.1099, allocations: 3.973 MB / 467.1 MB, free: 6.945 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001896/0.1101, allocations: 185.3 kB / 467.3 MB, free: 6.691 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.633/1.743, allocations: 0 / 467.3 MB, free: 6.691 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/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)