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/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 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay") translateModel(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 108 kB / 16.41 MB, free: 6.5 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.001061/0.001061, allocations: 188.1 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002383/0.002383, allocations: 284.8 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9624/0.9624, allocations: 169.3 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001825/0.001825, allocations: 96.23 kB / 0.6821 GB, free: 6.973 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5516/0.5535, allocations: 86.97 MB / 0.767 GB, free: 3.895 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.00332/0.5568, allocations: 1.414 MB / 0.7684 GB, free: 2.469 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009538/0.5578, allocations: 436.7 kB / 0.7688 GB, free: 2.039 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.136e-05/0.5579, allocations: 0 / 0.7688 GB, free: 2.039 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.72e-05/0.558, allocations: 3.938 kB / 0.7688 GB, free: 2.035 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001023/0.5581, allocations: 11.92 kB / 0.7688 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002047/0.5583, allocations: 19.91 kB / 0.7688 GB, free: 2.004 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001549/0.5585, allocations: 59.8 kB / 0.7689 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.5586, allocations: 7.938 kB / 0.7689 GB, free: 1.938 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 9.676e-05/0.5587, allocations: 27.86 kB / 0.7689 GB, free: 1.91 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 8.527e-05/0.5588, allocations: 19.91 kB / 0.7689 GB, free: 1.891 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.317e-05/0.5588, allocations: 4 kB / 0.7689 GB, free: 1.887 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 1.44e-05/0.5588, allocations: 4 kB / 0.769 GB, free: 1.883 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.901e-05/0.5589, allocations: 7.984 kB / 0.769 GB, free: 1.875 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 5.845e-05/0.5589, allocations: 23.88 kB / 0.769 GB, free: 1.852 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000137/0.5591, allocations: 39.55 kB / 0.769 GB, free: 1.816 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.5591, allocations: 0 / 0.769 GB, free: 1.816 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.405e-06/0.5591, allocations: 0 / 0.769 GB, free: 1.816 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.793e-06/0.5591, allocations: 0 / 0.769 GB, free: 1.816 MB / 0.5294 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.0007262/0.5598, allocations: 403.6 kB / 0.7694 GB, free: 1.371 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.5599, allocations: 8.031 kB / 0.7694 GB, free: 1.363 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.284e-05/0.56, allocations: 8.938 kB / 0.7694 GB, free: 1.355 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001831/0.5601, allocations: 176.2 kB / 0.7696 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.146e-05/0.5602, allocations: 8.359 kB / 0.7696 GB, free: 1.137 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.667e-05/0.5602, allocations: 4.375 kB / 0.7696 GB, free: 1.133 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001581/0.5604, allocations: 57.92 kB / 0.7697 GB, free: 1.07 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.5604, allocations: 0 / 0.7697 GB, free: 1.07 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.5604, allocations: 4 kB / 0.7697 GB, free: 1.066 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.5604, allocations: 0 / 0.7697 GB, free: 1.066 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.408e-05/0.5605, allocations: 19.98 kB / 0.7697 GB, free: 1.047 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005131/0.561, allocations: 268.8 kB / 0.7699 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001109/0.5611, allocations: 38.52 kB / 0.77 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.139e-05/0.5612, allocations: 24.97 kB / 0.77 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.5612, allocations: 4 kB / 0.77 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002315/0.5615, allocations: 93.09 kB / 0.7701 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=9): time 1.512e-06/0.5615, allocations: 0 / 0.7701 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of matching and sorting (n=9): time 0.0003305/0.5618, allocations: 147.3 kB / 0.7702 GB, free: 400 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.42e-05/0.5619, allocations: 89.09 kB / 0.7703 GB, free: 292 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.562, allocations: 105.8 kB / 0.7704 GB, free: 176 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.562, allocations: 33.98 kB / 0.7704 GB, free: 136 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.658e-05/0.5621, allocations: 80.14 kB / 0.7705 GB, free: 52 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 3.28e-05/0.5621, allocations: 15.81 kB / 0.7705 GB, free: 36 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.477e-05/0.5622, allocations: 29.64 kB / 0.7706 GB, free: 0 / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001576/0.5624, allocations: 322.8 kB / 0.7709 GB, free: 15.68 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.02e-05/0.5624, allocations: 23.92 kB / 0.7709 GB, free: 15.65 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.437e-05/0.5625, allocations: 42.5 kB / 0.7709 GB, free: 15.6 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001186/0.5626, allocations: 102 kB / 0.771 GB, free: 15.48 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/0.5626, allocations: 4 kB / 0.771 GB, free: 15.48 MB / 0.545 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001895/0.5628, allocations: 135.1 kB / 0.7712 GB, free: 15.33 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.152e-05/0.5629, allocations: 37.77 kB / 0.7712 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.383e-06/0.5629, allocations: 0 / 0.7712 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.5629, allocations: 0 / 0.7712 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.08e-05/0.563, allocations: 4 kB / 0.7712 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.565e-06/0.563, allocations: 400 / 0.7712 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.05e-05/0.5631, allocations: 7.984 kB / 0.7712 GB, free: 15.28 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.5631, allocations: 4 kB / 0.7712 GB, free: 15.27 MB / 0.545 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 (del.firstTrigger,$PRE.del.firstTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,del.ySample,del.sampleTrigger,del.y,$whenCondition3,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001341/0.5632, allocations: 150.7 kB / 0.7714 GB, free: 15.11 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.554e-05/0.5633, allocations: 15.91 kB / 0.7714 GB, free: 15.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.179e-05/0.5633, allocations: 12.3 kB / 0.7714 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.5633, allocations: 4 kB / 0.7714 GB, free: 15.08 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.5633, allocations: 0 / 0.7714 GB, free: 15.08 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.5633, allocations: 0 / 0.7714 GB, free: 15.08 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004598/0.5638, allocations: 404.1 kB / 0.7718 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.5638, allocations: 0 / 0.7718 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.293e-05/0.5638, allocations: 8 kB / 0.7718 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.5638, allocations: 0 / 0.7718 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.473e-05/0.5639, allocations: 8 kB / 0.7718 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.5639, allocations: 4 kB / 0.7718 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.5639, allocations: 0 / 0.7718 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002484/0.5641, allocations: 233.1 kB / 0.772 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.671e-05/0.5642, allocations: 81.11 kB / 0.7721 GB, free: 14.26 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.491e-05/0.5642, allocations: 11.88 kB / 0.7721 GB, free: 14.25 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.5643, allocations: 11.98 kB / 0.7721 GB, free: 14.23 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.596e-05/0.5644, allocations: 11.92 kB / 0.7721 GB, free: 14.22 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.001e-05/0.5644, allocations: 8 kB / 0.7721 GB, free: 14.21 MB / 0.545 GB Notification: Performance of sorting global known variables: time 6.33e-05/0.5645, allocations: 91.33 kB / 0.7722 GB, free: 14.12 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5645, allocations: 4 kB / 0.7722 GB, free: 14.12 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002424/0.5648, allocations: 12 kB / 0.7722 GB, free: 14.11 MB / 0.545 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 (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.0001233/0.5649, allocations: 101.9 kB / 0.7723 GB, free: 14 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002365/0.5651, allocations: 119.3 kB / 0.7725 GB, free: 13.88 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.5651, allocations: 0 / 0.7725 GB, free: 13.88 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001052/0.5652, allocations: 87.52 kB / 0.7725 GB, free: 13.78 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003183/0.5656, allocations: 22.73 kB / 0.7726 GB, free: 13.76 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004491/0.566, allocations: 183.2 kB / 0.7727 GB, free: 13.55 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004079/0.5665, allocations: 0.6807 MB / 0.7734 GB, free: 12.84 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.123e-05/0.5665, allocations: 11.44 kB / 0.7734 GB, free: 12.83 MB / 0.545 GB Notification: Performance of SimCode: time 3.41e-07/0.5665, allocations: 0 / 0.7734 GB, free: 12.83 MB / 0.545 GB Notification: Performance of Templates: time 0.003421/0.5699, allocations: 0.897 MB / 0.7743 GB, free: 11.93 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.makefile (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 & ./BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)