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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.003516/0.003517, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.395/2.395, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001269/0.001269, allocations: 83.05 kB / 270.8 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5794/0.5794, allocations: 48.76 MB / 367.9 MB, free: 47.39 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003787/0.0003787, allocations: 8 kB / 438.7 MB, free: 10.87 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1629/0.1633, allocations: 60.24 MB / 499 MB, free: 14.5 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5429/0.7063, allocations: 86.77 MB / 0.572 GB, free: 11.82 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003077/0.7067, allocations: 79.95 kB / 0.5721 GB, free: 11.74 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009991/0.7167, allocations: 3.794 MB / 0.5758 GB, free: 8.012 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.7168, allocations: 0 / 0.5758 GB, free: 8.012 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.307e-05/0.7168, allocations: 0 / 0.5758 GB, free: 8.012 MB / 394.7 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.0006087/0.7174, allocations: 0.5126 MB / 0.5763 GB, free: 7.441 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/0.7175, allocations: 12.03 kB / 0.5763 GB, free: 7.43 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.697e-05/0.7175, allocations: 42.55 kB / 0.5764 GB, free: 7.379 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.83e-05/0.7176, allocations: 19.81 kB / 0.5764 GB, free: 7.359 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002742/0.7178, allocations: 227.2 kB / 0.5766 GB, free: 7.098 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.604e-05/0.7179, allocations: 4 kB / 0.5766 GB, free: 7.094 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.444e-05/0.7179, allocations: 17.19 kB / 0.5766 GB, free: 7.078 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003235/0.7182, allocations: 180.2 kB / 0.5768 GB, free: 6.887 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.7183, allocations: 352 / 0.5768 GB, free: 6.887 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.425e-05/0.7183, allocations: 16.81 kB / 0.5768 GB, free: 6.871 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.7183, allocations: 0 / 0.5768 GB, free: 6.871 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002082/0.7185, allocations: 110.1 kB / 0.5769 GB, free: 6.766 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005925/0.7191, allocations: 0.5633 MB / 0.5775 GB, free: 6.145 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000286/0.7194, allocations: 166.5 kB / 0.5776 GB, free: 5.973 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.325e-05/0.7195, allocations: 0 / 0.5776 GB, free: 5.973 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002857/0.7197, allocations: 201 kB / 0.5778 GB, free: 5.758 MB / 394.7 MB Notification: Performance of pre-optimization done (n=17): time 1.403e-06/0.7198, allocations: 4 kB / 0.5778 GB, free: 5.754 MB / 394.7 MB Notification: Performance of matching and sorting (n=17): time 0.0008513/0.7206, allocations: 0.5663 MB / 0.5784 GB, free: 5.16 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.284e-05/0.7207, allocations: 77.11 kB / 0.5784 GB, free: 5.066 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001301/0.7208, allocations: 185.6 kB / 0.5786 GB, free: 4.875 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.037e-05/0.7208, allocations: 33.7 kB / 0.5786 GB, free: 4.836 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.378e-05/0.7209, allocations: 120.4 kB / 0.5788 GB, free: 4.711 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.34e-05/0.7209, allocations: 39.67 kB / 0.5788 GB, free: 4.672 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.739e-06/0.721, allocations: 4 kB / 0.5788 GB, free: 4.668 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.296e-05/0.721, allocations: 326.9 kB / 0.5791 GB, free: 4.34 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/0.7212, allocations: 99.88 kB / 0.5792 GB, free: 4.242 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001683/0.7214, allocations: 144.1 kB / 0.5793 GB, free: 4.086 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001827/0.7216, allocations: 133.6 kB / 0.5795 GB, free: 3.949 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.7216, allocations: 4 kB / 0.5795 GB, free: 3.945 MB / 394.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000501/0.7221, allocations: 373.7 kB / 0.5798 GB, free: 3.57 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.346e-05/0.7221, allocations: 37.69 kB / 0.5799 GB, free: 3.527 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.595e-06/0.7222, allocations: 2.75 kB / 0.5799 GB, free: 3.527 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.7222, allocations: 0 / 0.5799 GB, free: 3.527 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/0.7223, allocations: 40.05 kB / 0.5799 GB, free: 3.488 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.7223, allocations: 0 / 0.5799 GB, free: 3.488 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001294/0.7225, allocations: 34.45 kB / 0.5799 GB, free: 3.457 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.272e-05/0.7225, allocations: 11.98 kB / 0.58 GB, free: 3.445 MB / 394.7 MB Warning: Assuming fixed start value for the following 1 variables: digitalPI.e_int:DISCRETE(start = digitalPI.CSstart * digitalPI.Ti / digitalPI.Kp 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.0001842/0.7227, allocations: 185.6 kB / 0.5801 GB, free: 3.25 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.901e-05/0.7227, allocations: 27.77 kB / 0.5802 GB, free: 3.223 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.273e-05/0.7228, allocations: 17.88 kB / 0.5802 GB, free: 3.211 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.7228, allocations: 0 / 0.5802 GB, free: 3.211 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.7228, allocations: 0 / 0.5802 GB, free: 3.211 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.7228, allocations: 3.984 kB / 0.5802 GB, free: 3.207 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008585/0.7237, allocations: 0.7586 MB / 0.5809 GB, free: 2.387 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.7237, allocations: 0 / 0.5809 GB, free: 2.387 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.087e-05/0.7238, allocations: 7.938 kB / 0.5809 GB, free: 2.379 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.7238, allocations: 3.984 kB / 0.5809 GB, free: 2.375 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.317e-05/0.7238, allocations: 8 kB / 0.5809 GB, free: 2.367 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.7238, allocations: 3.984 kB / 0.5809 GB, free: 2.363 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.7238, allocations: 0 / 0.5809 GB, free: 2.363 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008258/0.7246, allocations: 0.6464 MB / 0.5816 GB, free: 1.695 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.109e-05/0.7247, allocations: 92.88 kB / 0.5817 GB, free: 1.586 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.132e-05/0.7247, allocations: 11.98 kB / 0.5817 GB, free: 1.574 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001472/0.7249, allocations: 18.73 kB / 0.5817 GB, free: 1.559 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.621e-05/0.725, allocations: 12.05 kB / 0.5817 GB, free: 1.547 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.644e-05/0.725, allocations: 12 kB / 0.5817 GB, free: 1.535 MB / 394.7 MB Notification: Performance of sorting global known variables: time 9.265e-05/0.7251, allocations: 150.4 kB / 0.5819 GB, free: 1.391 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.323e-06/0.7251, allocations: 0 / 0.5819 GB, free: 1.391 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003397/0.7254, allocations: 75.8 kB / 0.5819 GB, free: 1.316 MB / 394.7 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.001007/0.7265, allocations: 1.165 MB / 0.5831 GB, free: 124 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005404/0.727, allocations: 323.2 kB / 0.5834 GB, free: 15.79 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.727, allocations: 0 / 0.5834 GB, free: 15.79 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002595/0.7273, allocations: 199.2 kB / 0.5836 GB, free: 15.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002978/0.7276, allocations: 28.8 kB / 0.5836 GB, free: 15.55 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002289/0.7299, allocations: 1.877 MB / 0.5854 GB, free: 13.62 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003382/0.7302, allocations: 0.7321 MB / 0.5861 GB, free: 12.86 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.617e-05/0.7303, allocations: 8.641 kB / 0.5862 GB, free: 12.85 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.665e-05/0.7304, allocations: 47.42 kB / 0.5862 GB, free: 12.8 MB / 410.7 MB Notification: Performance of SimCode: time 3.977e-06/0.7304, allocations: 0 / 0.5862 GB, free: 12.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02197/0.7524, allocations: 3.797 MB / 0.5899 GB, free: 9.109 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001877/0.7526, allocations: 163.6 kB / 0.5901 GB, free: 8.871 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.176/2.928, allocations: 0 / 0.5901 GB, free: 8.871 MB / 410.7 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)