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.00079/0.00079, allocations: 89.38 kB / 16.65 MB, free: 6.535 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.0008528/0.0008528, allocations: 174 kB / 17.56 MB, free: 6.184 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.116/1.116, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.225/0.225, allocations: 48.77 MB / 320.8 MB, free: 11.12 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.0004475/0.0004475, allocations: 13.33 kB / 391.9 MB, free: 50.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07281/0.07326, allocations: 60.26 MB / 452.2 MB, free: 9.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.001478/0.07478, allocations: 1.371 MB / 453.5 MB, free: 7.699 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009427/0.07574, allocations: 0.7023 MB / 454.2 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.867e-05/0.07581, allocations: 3.938 kB / 454.3 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001415/0.07595, allocations: 39.88 kB / 454.3 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.814e-05/0.07604, allocations: 59.8 kB / 454.3 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003234/0.07637, allocations: 95.83 kB / 454.4 MB, free: 6.793 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001529/0.07653, allocations: 151.5 kB / 454.6 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.877e-05/0.07662, allocations: 17.73 kB / 454.6 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.158e-05/0.0767, allocations: 59.77 kB / 454.7 MB, free: 6.566 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001207/0.07683, allocations: 95.64 kB / 454.8 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.096e-05/0.07685, allocations: 8 kB / 454.8 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001081/0.07697, allocations: 83.84 kB / 454.8 MB, free: 6.383 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.488e-05/0.07703, allocations: 27.86 kB / 454.9 MB, free: 6.355 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.497e-05/0.07711, allocations: 89.3 kB / 455 MB, free: 6.262 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001924/0.07731, allocations: 183.3 kB / 455.1 MB, free: 6.082 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.07732, allocations: 0 / 455.1 MB, free: 6.082 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.07733, allocations: 0 / 455.1 MB, free: 6.082 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.537e-06/0.07733, allocations: 0 / 455.1 MB, free: 6.082 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.0005507/0.07789, allocations: 0.4944 MB / 455.6 MB, free: 5.527 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.2e-05/0.07793, allocations: 8.031 kB / 455.6 MB, free: 5.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.113e-05/0.07798, allocations: 42.73 kB / 455.7 MB, free: 5.469 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.714e-05/0.07802, allocations: 16.75 kB / 455.7 MB, free: 5.453 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001977/0.07822, allocations: 231.7 kB / 455.9 MB, free: 5.188 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.07824, allocations: 4.375 kB / 455.9 MB, free: 5.184 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.333e-05/0.07827, allocations: 12.38 kB / 455.9 MB, free: 5.172 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003164/0.0786, allocations: 190.5 kB / 456.1 MB, free: 4.973 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.761e-06/0.07861, allocations: 0 / 456.1 MB, free: 4.973 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.07863, allocations: 0 / 456.1 MB, free: 4.973 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.07865, allocations: 4 kB / 456.1 MB, free: 4.969 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000201/0.07885, allocations: 99.94 kB / 456.2 MB, free: 4.871 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004974/0.07936, allocations: 0.5398 MB / 456.8 MB, free: 4.273 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002903/0.07966, allocations: 158.5 kB / 456.9 MB, free: 4.109 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001882/0.07986, allocations: 112.8 kB / 457 MB, free: 3.996 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.279e-05/0.07988, allocations: 0 / 457 MB, free: 3.996 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003146/0.0802, allocations: 197 kB / 457.2 MB, free: 3.785 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.312e-06/0.08021, allocations: 0 / 457.2 MB, free: 3.785 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007635/0.08098, allocations: 443.1 kB / 457.7 MB, free: 3.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.08103, allocations: 85.09 kB / 457.7 MB, free: 3.238 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001566/0.0812, allocations: 202.7 kB / 457.9 MB, free: 3.027 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.08123, allocations: 33.7 kB / 458 MB, free: 2.988 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.812e-05/0.0813, allocations: 120.5 kB / 458.1 MB, free: 2.867 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.468e-05/0.08134, allocations: 43.38 kB / 458.1 MB, free: 2.824 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.522e-05/0.08138, allocations: 25.72 kB / 458.2 MB, free: 2.793 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.737e-05/0.08148, allocations: 334.8 kB / 458.5 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001792/0.08167, allocations: 91.89 kB / 458.6 MB, free: 2.367 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001852/0.08186, allocations: 128.2 kB / 458.7 MB, free: 2.227 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000872/0.08274, allocations: 0.5058 MB / 459.2 MB, free: 1.684 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.08275, allocations: 3.938 kB / 459.2 MB, free: 1.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005077/0.08327, allocations: 346.9 kB / 459.6 MB, free: 1.328 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.012e-05/0.0833, allocations: 33.7 kB / 459.6 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.08332, allocations: 3.984 kB / 459.6 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.235e-06/0.08333, allocations: 3.938 kB / 459.6 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.08347, allocations: 36.11 kB / 459.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.08348, allocations: 0 / 459.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001211/0.08361, allocations: 31.83 kB / 459.7 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.08363, allocations: 7.938 kB / 459.7 MB, free: 1.207 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.0001635/0.0838, allocations: 183.5 kB / 459.8 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.616e-05/0.08383, allocations: 15.81 kB / 459.9 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.886e-05/0.08387, allocations: 25.86 kB / 459.9 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.08387, allocations: 0 / 459.9 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.08388, allocations: 0 / 459.9 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.08389, allocations: 3.938 kB / 459.9 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008135/0.08471, allocations: 0.7057 MB / 460.6 MB, free: 212 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.08472, allocations: 0 / 460.6 MB, free: 212 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.163e-05/0.08477, allocations: 11.94 kB / 460.6 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.684e-06/0.08478, allocations: 0 / 460.6 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.925e-05/0.0848, allocations: 11.92 kB / 460.6 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.08481, allocations: 0 / 460.6 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.08481, allocations: 0 / 460.6 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008357/0.08565, allocations: 0.6023 MB / 461.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.425e-05/0.08571, allocations: 96.8 kB / 461.3 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.188e-05/0.08575, allocations: 7.938 kB / 461.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001528/0.0859, allocations: 23.97 kB / 461.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.672e-05/0.08594, allocations: 4.062 kB / 461.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.342e-05/0.08597, allocations: 19.98 kB / 461.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.877e-05/0.08607, allocations: 156 kB / 461.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08608, allocations: 0 / 461.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002664/0.08635, allocations: 52 kB / 461.6 MB, free: 15.18 MB / 350.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.001104/0.08746, allocations: 1.176 MB / 462.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000471/0.08794, allocations: 315.9 kB / 463.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.08795, allocations: 0 / 463.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000243/0.0882, allocations: 195.6 kB / 463.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003203/0.08853, allocations: 36.31 kB / 463.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002648/0.09119, allocations: 2.539 MB / 465.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000239/0.09144, allocations: 0.7243 MB / 466.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.255e-05/0.09149, allocations: 8.656 kB / 466.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.59e-05/0.09155, allocations: 43.42 kB / 466.6 MB, free: 9.965 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.09156, allocations: 0 / 466.6 MB, free: 9.965 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01232/0.1039, allocations: 3.889 MB / 470.5 MB, free: 6.066 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001874/0.1041, allocations: 188.5 kB / 470.7 MB, free: 5.809 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.818/1.922, allocations: 7.875 kB / 470.7 MB, free: 5.801 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)