Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.48/1.48, allocations: 251.9 MB / 266.9 MB, free: 11.01 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001059/0.001059, allocations: 183.7 kB / 326.5 MB, free: 2.25 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.649/1.649, allocations: 205.4 MB / 0.5775 GB, free: 20.57 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009895/0.0009895, allocations: 84.91 kB / 0.6821 GB, free: 13.36 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003496/0.0003496, allocations: 8.656 kB / 0.7962 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2413/0.2417, allocations: 106.3 MB / 0.9001 GB, free: 64.47 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1755/0.4172, allocations: 132.3 MB / 1.029 GB, free: 11.98 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002681/0.4176, allocations: 75.97 kB / 1.029 GB, free: 11.91 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003467/0.4211, allocations: 1.199 MB / 1.031 GB, free: 10.7 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.025e-06/0.4211, allocations: 4 kB / 1.031 GB, free: 10.7 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.426e-06/0.4211, allocations: 0 / 1.031 GB, free: 10.7 MB / 0.6823 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.0005539/0.4217, allocations: 392.8 kB / 1.031 GB, free: 10.26 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.4217, allocations: 12.03 kB / 1.031 GB, free: 10.25 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.68e-05/0.4217, allocations: 0 / 1.031 GB, free: 10.25 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001335/0.4219, allocations: 170.9 kB / 1.031 GB, free: 10.04 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.936e-05/0.4219, allocations: 7.984 kB / 1.031 GB, free: 10.03 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.339e-05/0.4219, allocations: 4 kB / 1.031 GB, free: 10.03 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001266/0.4221, allocations: 53.62 kB / 1.031 GB, free: 9.969 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.4221, allocations: 0 / 1.031 GB, free: 9.969 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.4221, allocations: 0 / 1.031 GB, free: 9.969 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.4221, allocations: 0 / 1.031 GB, free: 9.969 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.678e-05/0.4222, allocations: 23.98 kB / 1.031 GB, free: 9.945 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004082/0.4226, allocations: 264.9 kB / 1.031 GB, free: 9.637 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 7.984e-05/0.4227, allocations: 42.56 kB / 1.031 GB, free: 9.586 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.866e-05/0.4227, allocations: 4 kB / 1.031 GB, free: 9.582 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001626/0.4229, allocations: 101.2 kB / 1.032 GB, free: 9.465 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.4229, allocations: 3.938 kB / 1.032 GB, free: 9.461 MB / 0.6823 GB Notification: Performance of matching and sorting (n=9): time 0.0003244/0.4232, allocations: 228.3 kB / 1.032 GB, free: 9.207 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.134e-05/0.4233, allocations: 81.11 kB / 1.032 GB, free: 9.109 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.544e-05/0.4234, allocations: 105 kB / 1.032 GB, free: 9 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.4234, allocations: 33.7 kB / 1.032 GB, free: 8.961 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 4.847e-05/0.4235, allocations: 80.14 kB / 1.032 GB, free: 8.879 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.39e-05/0.4235, allocations: 23.73 kB / 1.032 GB, free: 8.855 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.489e-06/0.4235, allocations: 0 / 1.032 GB, free: 8.855 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001213/0.4236, allocations: 322.8 kB / 1.032 GB, free: 8.531 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.23e-05/0.4237, allocations: 16 kB / 1.032 GB, free: 8.516 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.559e-05/0.4237, allocations: 42.5 kB / 1.032 GB, free: 8.465 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.036e-05/0.4238, allocations: 45.7 kB / 1.032 GB, free: 8.414 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4238, allocations: 3.938 kB / 1.033 GB, free: 8.41 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001524/0.424, allocations: 123.6 kB / 1.033 GB, free: 8.277 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 3.401e-05/0.424, allocations: 36.2 kB / 1.033 GB, free: 8.238 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.424, allocations: 3.984 kB / 1.033 GB, free: 8.234 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.424, allocations: 4 kB / 1.033 GB, free: 8.23 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.4e-05/0.4241, allocations: 4 kB / 1.033 GB, free: 8.227 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.4241, allocations: 8.062 kB / 1.033 GB, free: 8.219 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.579e-05/0.4242, allocations: 8.812 kB / 1.033 GB, free: 8.211 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.237e-06/0.4242, allocations: 4 kB / 1.033 GB, free: 8.207 MB / 0.6823 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 0.0001063/0.4243, allocations: 149.3 kB / 1.033 GB, free: 8.047 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.394e-05/0.4243, allocations: 4 kB / 1.033 GB, free: 8.043 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.019e-05/0.4244, allocations: 12.36 kB / 1.033 GB, free: 8.031 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.4244, allocations: 0 / 1.033 GB, free: 8.031 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.4244, allocations: 4 kB / 1.033 GB, free: 8.027 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.4244, allocations: 4 kB / 1.033 GB, free: 8.023 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003845/0.4248, allocations: 400.4 kB / 1.033 GB, free: 7.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.4248, allocations: 0 / 1.033 GB, free: 7.57 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.488e-06/0.4248, allocations: 7.938 kB / 1.033 GB, free: 7.562 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.4248, allocations: 3.938 kB / 1.033 GB, free: 7.559 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.809e-06/0.4248, allocations: 64 / 1.033 GB, free: 7.559 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.4248, allocations: 8 kB / 1.033 GB, free: 7.551 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.4248, allocations: 3.984 kB / 1.033 GB, free: 7.547 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002191/0.4251, allocations: 229.2 kB / 1.033 GB, free: 7.301 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.432e-05/0.4251, allocations: 88.95 kB / 1.034 GB, free: 7.195 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.922e-05/0.4251, allocations: 0 / 1.034 GB, free: 7.195 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.4253, allocations: 11.98 kB / 1.034 GB, free: 7.184 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.153e-05/0.4253, allocations: 4 kB / 1.034 GB, free: 7.18 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.4253, allocations: 11.98 kB / 1.034 GB, free: 7.168 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.58e-05/0.4254, allocations: 83.28 kB / 1.034 GB, free: 7.086 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.61e-07/0.4254, allocations: 4 kB / 1.034 GB, free: 7.082 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002207/0.4256, allocations: 19.95 kB / 1.034 GB, free: 7.062 MB / 0.6823 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.0001071/0.4257, allocations: 95.25 kB / 1.034 GB, free: 6.961 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0001737/0.4259, allocations: 123.2 kB / 1.034 GB, free: 6.828 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.322e-06/0.4259, allocations: 0 / 1.034 GB, free: 6.828 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 8.711e-05/0.426, allocations: 91.39 kB / 1.034 GB, free: 6.727 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001923/0.4262, allocations: 9.844 kB / 1.034 GB, free: 6.719 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003127/0.4265, allocations: 171.1 kB / 1.034 GB, free: 6.52 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002309/0.4268, allocations: 0.6887 MB / 1.035 GB, free: 5.805 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 2.424e-05/0.4268, allocations: 0 / 1.035 GB, free: 5.805 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.549e-05/0.4268, allocations: 15.42 kB / 1.035 GB, free: 5.789 MB / 0.6823 GB Notification: Performance of SimCode: time 5.51e-07/0.4268, allocations: 4 kB / 1.035 GB, free: 5.785 MB / 0.6823 GB Notification: Performance of Templates: time 0.002682/0.4295, allocations: 0.7324 MB / 1.036 GB, free: 5.059 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches