Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.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.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay",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.7704/0.7704, allocations: 143.4 MB / 158.3 MB, free: 5.758 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.001133/0.001134, allocations: 169.2 kB / 191.5 MB, free: 5.77 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.438/1.438, allocations: 223.1 MB / 447.7 MB, free: 4.832 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.0009015/0.0009016, allocations: 95.7 kB / 0.5187 GB, free: 1.184 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00181/0.00181, allocations: 276.2 kB / 0.6005 GB, free: 48.78 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004202/0.0004202, allocations: 21.64 kB / 0.6929 GB, free: 59.67 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1561/0.1565, allocations: 82.79 MB / 0.7738 GB, free: 13.79 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1933/0.3499, allocations: 109.2 MB / 0.8804 GB, free: 456 kB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002245/0.3502, allocations: 75.95 kB / 0.8805 GB, free: 380 kB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.2988/0.649, allocations: 1.227 MB / 0.8817 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.134e-06/0.6491, allocations: 0.5938 kB / 0.8817 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.763e-06/0.6491, allocations: 6.156 kB / 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004381/0.6495, allocations: 399 kB / 0.8821 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.6496, allocations: 8.344 kB / 0.8821 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.751e-05/0.6496, allocations: 33.5 kB / 0.8821 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.992e-05/0.6496, allocations: 6.625 kB / 0.8821 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.7e-05/0.6497, allocations: 177.1 kB / 0.8823 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/0.6498, allocations: 3.562 kB / 0.8823 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.176e-05/0.6498, allocations: 4.25 kB / 0.8823 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000107/0.6499, allocations: 51.14 kB / 0.8823 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.6499, allocations: 0 / 0.8823 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-06/0.6499, allocations: 2.906 kB / 0.8823 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.6499, allocations: 0 / 0.8823 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.328e-05/0.65, allocations: 19.25 kB / 0.8824 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003267/0.6503, allocations: 276.7 kB / 0.8826 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 7.181e-05/0.6504, allocations: 43.05 kB / 0.8827 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.829e-05/0.6504, allocations: 0 / 0.8827 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001329/0.6506, allocations: 101.2 kB / 0.8828 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=9): time 1.262e-06/0.6506, allocations: 0 / 0.8828 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of matching and sorting (n=9): time 0.000264/0.6508, allocations: 224.3 kB / 0.883 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/0.6509, allocations: 87.14 kB / 0.8831 GB, free: 108 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.36e-05/0.6509, allocations: 99.89 kB / 0.8832 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.087e-05/0.651, allocations: 28.95 kB / 0.8832 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.03e-05/0.651, allocations: 83.86 kB / 0.8833 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.544e-05/0.651, allocations: 17.28 kB / 0.8833 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.09e-06/0.651, allocations: 3 kB / 0.8833 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 5.132e-05/0.6511, allocations: 320.6 kB / 0.8836 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.758e-05/0.6511, allocations: 14.44 kB / 0.8836 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.801e-05/0.6512, allocations: 45.84 kB / 0.8836 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.028e-05/0.6512, allocations: 46.23 kB / 0.8837 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.6512, allocations: 0 / 0.8837 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001251/0.6513, allocations: 124.3 kB / 0.8838 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.6514, allocations: 36.05 kB / 0.8838 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.6514, allocations: 0 / 0.8838 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.6514, allocations: 2.766 kB / 0.8838 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.142e-05/0.6515, allocations: 14.33 kB / 0.8839 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.6515, allocations: 0 / 0.8839 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.463e-05/0.6515, allocations: 14.36 kB / 0.8839 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.6516, allocations: 2.844 kB / 0.8839 GB, free: 107.3 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.del.firstTrigger,del.firstTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.sampleTrigger,del.ySample,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * 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 7.145e-05/0.6516, allocations: 154.6 kB / 0.884 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.327e-05/0.6516, allocations: 6.844 kB / 0.884 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.521e-05/0.6517, allocations: 11.03 kB / 0.884 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.6517, allocations: 3.281 kB / 0.884 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.768e-06/0.6517, allocations: 4 kB / 0.884 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.6517, allocations: 0 / 0.884 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002753/0.652, allocations: 397.7 kB / 0.8844 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.652, allocations: 0 / 0.8844 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.727e-06/0.652, allocations: 3.594 kB / 0.8844 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.652, allocations: 0 / 0.8844 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/0.652, allocations: 2.844 kB / 0.8844 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.652, allocations: 7.359 kB / 0.8844 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.652, allocations: 0 / 0.8844 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001491/0.6522, allocations: 238.4 kB / 0.8847 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 1.884e-05/0.6522, allocations: 77.66 kB / 0.8847 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.904e-05/0.6522, allocations: 6.422 kB / 0.8847 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.6524, allocations: 7.875 kB / 0.8848 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.641e-05/0.6524, allocations: 9.141 kB / 0.8848 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.6524, allocations: 3.094 kB / 0.8848 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 2.93e-05/0.6525, allocations: 105.9 kB / 0.8849 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6525, allocations: 0 / 0.8849 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002142/0.6527, allocations: 13.66 kB / 0.8849 GB, free: 106.4 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: 9 (del.sampleTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.firstTrigger,del.ySample,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 3 (del.ySample,del.y,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.0003133/0.653, allocations: 0.7694 MB / 0.8856 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001604/0.6532, allocations: 114.7 kB / 0.8857 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.6532, allocations: 4.062 kB / 0.8857 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 7.003e-05/0.6533, allocations: 95.23 kB / 0.8858 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002/0.6535, allocations: 12.72 kB / 0.8858 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007494/0.6542, allocations: 0.7814 MB / 0.8866 GB, free: 104.9 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001372/0.6544, allocations: 0.6888 MB / 0.8873 GB, free: 104.2 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.13e-05/0.6544, allocations: 8.016 kB / 0.8873 GB, free: 104.2 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.563e-05/0.6545, allocations: 24.27 kB / 0.8873 GB, free: 104.2 MB / 0.5417 GB Notification: Performance of SimCode: time 4.41e-07/0.6545, allocations: 0 / 0.8873 GB, free: 104.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01027/0.6647, allocations: 1.593 MB / 0.8889 GB, free: 104.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001188/0.6649, allocations: 187.7 kB / 0.889 GB, free: 103.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.485/2.15, allocations: 7.938 kB / 0.8891 GB, free: 103.8 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay.fmu > BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)