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.8339/0.8339, allocations: 141.8 MB / 149.3 MB, free: 9.219 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.001054/0.001054, allocations: 188.8 kB / 182.2 MB, free: 9.441 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.335/1.335, allocations: 221.5 MB / 436.4 MB, free: 13.3 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.0009387/0.0009386, allocations: 95.83 kB / 0.5074 GB, free: 10.13 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001772/0.001772, allocations: 276.6 kB / 0.5889 GB, free: 54.68 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.741e-05/1.763e-05, allocations: 0 / 0.6766 GB, free: 12.76 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4087/0.4087, allocations: 82.77 MB / 0.7574 GB, free: 31.94 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1391/0.5478, allocations: 108.5 MB / 0.8634 GB, free: 3.324 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002685/0.5482, allocations: 71.95 kB / 0.8634 GB, free: 3.254 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.003907/0.5521, allocations: 1.224 MB / 0.8646 GB, free: 2.027 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.794e-06/0.5521, allocations: 0 / 0.8646 GB, free: 2.027 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.027e-06/0.5522, allocations: 0 / 0.8646 GB, free: 2.027 MB / 0.5261 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.000487/0.5527, allocations: 380.1 kB / 0.865 GB, free: 1.605 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.5527, allocations: 12.03 kB / 0.865 GB, free: 1.594 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.575e-05/0.5528, allocations: 4 kB / 0.865 GB, free: 1.59 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001572/0.5529, allocations: 163.1 kB / 0.8652 GB, free: 1.391 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.607e-05/0.553, allocations: 11.95 kB / 0.8652 GB, free: 1.379 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.439e-05/0.553, allocations: 0 / 0.8652 GB, free: 1.379 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.709e-05/0.5531, allocations: 20 kB / 0.8652 GB, free: 1.359 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.073e-05/0.5532, allocations: 45.62 kB / 0.8653 GB, free: 1.309 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.5532, allocations: 3.984 kB / 0.8653 GB, free: 1.305 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.709e-05/0.5532, allocations: 0 / 0.8653 GB, free: 1.305 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.5532, allocations: 4 kB / 0.8653 GB, free: 1.301 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004081/0.5536, allocations: 249.3 kB / 0.8655 GB, free: 1.02 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 7.79e-05/0.5537, allocations: 38.58 kB / 0.8655 GB, free: 0.9727 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.043e-05/0.5538, allocations: 20.98 kB / 0.8656 GB, free: 0.9492 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.579e-05/0.5538, allocations: 0 / 0.8656 GB, free: 0.9492 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001735/0.554, allocations: 101.1 kB / 0.8657 GB, free: 0.832 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=9): time 1.684e-06/0.554, allocations: 4 kB / 0.8657 GB, free: 0.8281 MB / 0.5261 GB Notification: Performance of matching and sorting (n=9): time 0.000233/0.5543, allocations: 81.69 kB / 0.8657 GB, free: 0.7422 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.993e-05/0.5543, allocations: 77.11 kB / 0.8658 GB, free: 0.6484 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.5544, allocations: 108.8 kB / 0.8659 GB, free: 0.5352 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.5545, allocations: 29.7 kB / 0.8659 GB, free: 0.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 4.704e-05/0.5545, allocations: 88.08 kB / 0.866 GB, free: 420 kB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.214e-05/0.5545, allocations: 19.8 kB / 0.866 GB, free: 400 kB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.378e-06/0.5546, allocations: 0 / 0.866 GB, free: 400 kB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.5547, allocations: 322.8 kB / 0.8663 GB, free: 68 kB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.958e-05/0.5547, allocations: 15.94 kB / 0.8664 GB, free: 52 kB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.727e-05/0.5548, allocations: 30.56 kB / 0.8664 GB, free: 12 kB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.487e-05/0.5548, allocations: 20.03 kB / 0.8664 GB, free: 15.99 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.5548, allocations: 0 / 0.8664 GB, free: 15.99 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001484/0.555, allocations: 89.44 kB / 0.8665 GB, free: 15.9 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 4.382e-05/0.555, allocations: 37.75 kB / 0.8665 GB, free: 15.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.5551, allocations: 4 kB / 0.8665 GB, free: 15.85 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.5551, allocations: 7.984 kB / 0.8665 GB, free: 15.84 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.635e-05/0.5551, allocations: 0 / 0.8665 GB, free: 15.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.5551, allocations: 4 kB / 0.8665 GB, free: 15.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.934e-05/0.5552, allocations: 7.938 kB / 0.8666 GB, free: 15.83 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-06/0.5552, allocations: 4 kB / 0.8666 GB, free: 15.83 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 () * 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 0.0001209/0.5554, allocations: 144 kB / 0.8667 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001412/0.5555, allocations: 93.69 kB / 0.8668 GB, free: 15.58 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.348e-05/0.5555, allocations: 11.91 kB / 0.8668 GB, free: 15.57 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.115e-05/0.5556, allocations: 12.61 kB / 0.8668 GB, free: 15.55 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.5556, allocations: 0 / 0.8668 GB, free: 15.55 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.5556, allocations: 0 / 0.8668 GB, free: 15.55 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.5556, allocations: 7.938 kB / 0.8668 GB, free: 15.54 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003546/0.556, allocations: 335.1 kB / 0.8671 GB, free: 15.17 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.556, allocations: 0 / 0.8671 GB, free: 15.17 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.939e-06/0.556, allocations: 3.938 kB / 0.8671 GB, free: 15.17 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.556, allocations: 0 / 0.8671 GB, free: 15.17 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/0.556, allocations: 8 kB / 0.8671 GB, free: 15.16 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.556, allocations: 0 / 0.8671 GB, free: 15.16 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.556, allocations: 0 / 0.8671 GB, free: 15.16 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001957/0.5562, allocations: 195.4 kB / 0.8673 GB, free: 14.95 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.117e-05/0.5563, allocations: 81.11 kB / 0.8674 GB, free: 14.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.114e-05/0.5563, allocations: 0 / 0.8674 GB, free: 14.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.5564, allocations: 11.98 kB / 0.8674 GB, free: 14.84 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.844e-05/0.5565, allocations: 19.98 kB / 0.8674 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.773e-05/0.5565, allocations: 8 kB / 0.8675 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 4.075e-05/0.5566, allocations: 86.95 kB / 0.8675 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5566, allocations: 3.938 kB / 0.8675 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.000244/0.5568, allocations: 16 kB / 0.8676 GB, free: 14.71 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) * 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.0005212/0.5573, allocations: 0.7353 MB / 0.8683 GB, free: 13.96 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001918/0.5575, allocations: 107.4 kB / 0.8684 GB, free: 13.84 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.5576, allocations: 0 / 0.8684 GB, free: 13.84 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 8.464e-05/0.5576, allocations: 87.34 kB / 0.8685 GB, free: 13.74 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002553/0.5579, allocations: 11.98 kB / 0.8685 GB, free: 13.73 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004692/0.5584, allocations: 117.5 kB / 0.8686 GB, free: 13.58 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003307/0.5587, allocations: 0.6925 MB / 0.8693 GB, free: 12.86 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.44e-05/0.5588, allocations: 11.77 kB / 0.8693 GB, free: 12.85 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.687e-05/0.5588, allocations: 19.44 kB / 0.8693 GB, free: 12.83 MB / 0.5417 GB Notification: Performance of SimCode: time 2.6e-07/0.5588, allocations: 0 / 0.8693 GB, free: 12.83 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02135/0.5802, allocations: 1.294 MB / 0.8706 GB, free: 11.55 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001931/0.5804, allocations: 143.4 kB / 0.8707 GB, free: 11.37 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.501/2.081, allocations: 3.938 kB / 0.8707 GB, free: 11.36 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)