Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay") translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.22/2.22, allocations: 387.4 MB / 394.9 MB, free: 13.36 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009673/0.0009674, allocations: 192.8 kB / 487.4 MB, free: 5.055 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.514/1.514, allocations: 221.5 MB / 0.7824 GB, free: 0.9258 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008374/0.0008375, allocations: 98.08 kB / 0.9219 GB, free: 2.164 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.427e-05/1.481e-05, allocations: 0 / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.2781, allocations: 142.4 MB / 1.206 GB, free: 43.96 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8983/1.177, allocations: 149.1 MB / 1.352 GB, free: 18.45 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002279/1.177, allocations: 71.86 kB / 1.352 GB, free: 18.45 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003878/1.181, allocations: 1.224 MB / 1.353 GB, free: 34.08 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.222e-06/1.181, allocations: 0 / 1.353 GB, free: 34.08 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.342e-06/1.181, allocations: 4 kB / 1.353 GB, free: 34.07 MB / 0.8386 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.0003913/1.181, allocations: 378.2 kB / 1.353 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/1.181, allocations: 11.91 kB / 1.353 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.422e-05/1.181, allocations: 0 / 1.353 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.733e-05/1.181, allocations: 169 kB / 1.353 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/1.181, allocations: 0 / 1.353 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.568e-05/1.181, allocations: 3.594 kB / 1.353 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.302e-05/1.181, allocations: 23.34 kB / 1.353 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.675e-05/1.182, allocations: 45.34 kB / 1.353 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/1.182, allocations: 3.938 kB / 1.353 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/1.182, allocations: 3.875 kB / 1.353 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/1.182, allocations: 0 / 1.353 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003449/1.182, allocations: 254.6 kB / 1.354 GB, free: 33.22 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.784e-05/1.182, allocations: 39.22 kB / 1.354 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.703e-05/1.182, allocations: 16.39 kB / 1.354 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.059e-05/1.182, allocations: 4.578 kB / 1.354 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001354/1.182, allocations: 99.7 kB / 1.354 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=9): time 1.403e-06/1.182, allocations: 0 / 1.354 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9): time 0.000189/1.182, allocations: 78.75 kB / 1.354 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.519e-05/1.182, allocations: 82 kB / 1.354 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.427e-05/1.183, allocations: 115.5 kB / 1.354 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.117e-05/1.183, allocations: 26.31 kB / 1.354 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.508e-05/1.183, allocations: 84.5 kB / 1.354 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.659e-05/1.183, allocations: 16.84 kB / 1.354 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.368e-06/1.183, allocations: 0 / 1.354 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001136/1.183, allocations: 324.6 kB / 1.354 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.406e-05/1.183, allocations: 18.97 kB / 1.355 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.505e-05/1.183, allocations: 39.59 kB / 1.355 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.135e-05/1.183, allocations: 13.39 kB / 1.355 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/1.183, allocations: 0 / 1.355 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001075/1.183, allocations: 84.03 kB / 1.355 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/1.183, allocations: 34.88 kB / 1.355 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/1.183, allocations: 1.312 kB / 1.355 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/1.183, allocations: 3.844 kB / 1.355 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.145e-05/1.183, allocations: 1.359 kB / 1.355 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/1.183, allocations: 7.938 kB / 1.355 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.16e-05/1.183, allocations: 10.06 kB / 1.355 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.825e-06/1.183, allocations: 6.906 kB / 1.355 GB, free: 32.33 MB / 0.8386 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 8.221e-05/1.183, allocations: 145.5 kB / 1.355 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.354e-05/1.183, allocations: 7.859 kB / 1.355 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.624e-05/1.183, allocations: 8.812 kB / 1.355 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/1.183, allocations: 0.6562 kB / 1.355 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/1.183, allocations: 1.281 kB / 1.355 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.87e-06/1.183, allocations: 8.734 kB / 1.355 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002734/1.184, allocations: 347.7 kB / 1.355 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/1.184, allocations: 0 / 1.355 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.255e-06/1.184, allocations: 0.6562 kB / 1.355 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/1.184, allocations: 0 / 1.355 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/1.184, allocations: 4.5 kB / 1.355 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/1.184, allocations: 1.531 kB / 1.355 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/1.184, allocations: 0 / 1.355 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001569/1.184, allocations: 198 kB / 1.355 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.22e-05/1.184, allocations: 85.69 kB / 1.355 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.169e-05/1.184, allocations: 1.078 kB / 1.355 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.77e-05/1.184, allocations: 10.12 kB / 1.355 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.318e-05/1.184, allocations: 10.39 kB / 1.355 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.403e-05/1.184, allocations: 4.641 kB / 1.355 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.029e-05/1.184, allocations: 88.06 kB / 1.356 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.21e-07/1.184, allocations: 4 kB / 1.356 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000217/1.184, allocations: 12.75 kB / 1.356 GB, free: 31.58 MB / 0.8386 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 9.447e-05/1.184, allocations: 103.3 kB / 1.356 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001347/1.185, allocations: 107.8 kB / 1.356 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/1.185, allocations: 0 / 1.356 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.544e-05/1.185, allocations: 88.86 kB / 1.356 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002086/1.185, allocations: 10.41 kB / 1.356 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002124/1.185, allocations: 102.8 kB / 1.356 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003058/1.185, allocations: 0.6875 MB / 1.357 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.553e-05/1.185, allocations: 5.203 kB / 1.357 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.352e-05/1.186, allocations: 11.38 kB / 1.357 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/1.186, allocations: 7.781 kB / 1.357 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of Templates: time 0.002551/1.188, allocations: 0.701 MB / 1.357 GB, free: 30.49 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","../files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches