Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.OffTimer,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_OffTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.OffTimer,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_OffTimer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8361/0.8361, allocations: 143.3 MB / 158.3 MB, free: 5.777 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001481/0.001481, allocations: 181 kB / 191.5 MB, free: 5.754 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 223.2 MB / 447.7 MB, free: 4.836 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009825/0.0009826, allocations: 88.22 kB / 0.5187 GB, free: 1.195 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001992/0.001992, allocations: 266.9 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004259/0.0004259, allocations: 13.56 kB / 0.6929 GB, free: 59.68 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1637/0.1642, allocations: 82.79 MB / 0.7738 GB, free: 13.76 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1574/0.3216, allocations: 109.3 MB / 0.8805 GB, free: 344 kB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002137/0.3219, allocations: 75.95 kB / 0.8806 GB, free: 268 kB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.3418/0.6637, allocations: 1.135 MB / 0.8817 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.134e-06/0.6637, allocations: 5.469 kB / 0.8817 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.674e-06/0.6637, allocations: 0 / 0.8817 GB, free: 109.3 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003906/0.6641, allocations: 363.1 kB / 0.882 GB, free: 109 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.6642, allocations: 10.88 kB / 0.882 GB, free: 109 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.039e-05/0.6642, allocations: 30.56 kB / 0.8821 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.164e-05/0.6642, allocations: 9 kB / 0.8821 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.195e-05/0.6643, allocations: 174.1 kB / 0.8822 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.6644, allocations: 2.875 kB / 0.8822 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.658e-05/0.6644, allocations: 7.656 kB / 0.8822 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001083/0.6645, allocations: 57.2 kB / 0.8823 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.6645, allocations: 3.719 kB / 0.8823 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.6645, allocations: 3.625 kB / 0.8823 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.6645, allocations: 0.625 kB / 0.8823 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.99e-05/0.6646, allocations: 26.36 kB / 0.8823 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004271/0.665, allocations: 304.8 kB / 0.8826 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 9.165e-05/0.6651, allocations: 56.97 kB / 0.8827 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.153e-05/0.6652, allocations: 2.625 kB / 0.8827 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001775/0.6653, allocations: 75.97 kB / 0.8828 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=9): time 1.543e-06/0.6654, allocations: 0 / 0.8828 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=9): time 0.0002176/0.6656, allocations: 100.2 kB / 0.8828 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.155e-05/0.6656, allocations: 55.41 kB / 0.8829 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.744e-05/0.6657, allocations: 100.8 kB / 0.883 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.217e-05/0.6657, allocations: 29.05 kB / 0.883 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.654e-05/0.6657, allocations: 88.2 kB / 0.8831 GB, free: 108 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.272e-05/0.6658, allocations: 16.89 kB / 0.8831 GB, free: 108 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.769e-06/0.6658, allocations: 2.438 kB / 0.8831 GB, free: 108 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 4.908e-05/0.6658, allocations: 324.3 kB / 0.8834 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.268e-05/0.6659, allocations: 19.77 kB / 0.8835 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.306e-05/0.6659, allocations: 45.69 kB / 0.8835 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.145e-05/0.666, allocations: 22.3 kB / 0.8835 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.666, allocations: 0 / 0.8835 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001235/0.6661, allocations: 98.89 kB / 0.8836 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.6661, allocations: 5.469 kB / 0.8836 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.6661, allocations: 1.312 kB / 0.8836 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.6662, allocations: 5.188 kB / 0.8836 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.309e-05/0.6662, allocations: 13.31 kB / 0.8836 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.6663, allocations: 6.125 kB / 0.8836 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.703e-05/0.6663, allocations: 11.3 kB / 0.8837 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.825e-06/0.6663, allocations: 6.031 kB / 0.8837 GB, free: 107.6 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition3,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,not1.y,$PRE.offTim1.entryTime,offTim1.entryTime,$PRE.offTim2.entryTime,offTim2.entryTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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 6.759e-05/0.6664, allocations: 124.2 kB / 0.8838 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.094e-05/0.6664, allocations: 6.812 kB / 0.8838 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.366e-05/0.6665, allocations: 10.5 kB / 0.8838 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.6665, allocations: 4 kB / 0.8838 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.6665, allocations: 0 / 0.8838 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.6665, allocations: 2.938 kB / 0.8838 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003037/0.6668, allocations: 357.3 kB / 0.8841 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.6668, allocations: 0.75 kB / 0.8841 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.487e-05/0.6669, allocations: 6.141 kB / 0.8842 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.6669, allocations: 3.938 kB / 0.8842 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.808e-06/0.6669, allocations: 10.72 kB / 0.8842 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.6669, allocations: 0 / 0.8842 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.6669, allocations: 0.75 kB / 0.8842 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001212/0.667, allocations: 181.5 kB / 0.8843 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 2.983e-05/0.667, allocations: 83.78 kB / 0.8844 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.655e-05/0.6671, allocations: 7.406 kB / 0.8844 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.437e-05/0.6672, allocations: 5.188 kB / 0.8844 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.706e-05/0.6672, allocations: 20.48 kB / 0.8844 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.184e-06/0.6672, allocations: 6.781 kB / 0.8845 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 2.516e-05/0.6673, allocations: 78.66 kB / 0.8845 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6673, allocations: 0 / 0.8845 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002167/0.6675, allocations: 14.28 kB / 0.8845 GB, free: 106.9 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (not1.y,$whenCondition3,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,offTim1.entryTime,offTim2.entryTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0003027/0.6678, allocations: 0.7215 MB / 0.8852 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001158/0.6679, allocations: 49.48 kB / 0.8853 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.6679, allocations: 0 / 0.8853 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 4.953e-05/0.668, allocations: 32.77 kB / 0.8853 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001955/0.6682, allocations: 8.438 kB / 0.8853 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000787/0.669, allocations: 0.9419 MB / 0.8863 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001297/0.6691, allocations: 0.6861 MB / 0.8869 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 2.681e-05/0.6692, allocations: 6.531 kB / 0.8869 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.235e-05/0.6692, allocations: 15.94 kB / 0.8869 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of SimCode: time 5.61e-07/0.6692, allocations: 0 / 0.8869 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01177/0.681, allocations: 1.473 MB / 0.8884 GB, free: 104.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001333/0.6812, allocations: 184.1 kB / 0.8886 GB, free: 104.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.691/2.372, allocations: 3.938 kB / 0.8886 GB, free: 104.2 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Continuous_Examples_OffTimer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_OffTimer.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.pipe 2>&1)