Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_10_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_10_Buildings.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.001258/0.001258, allocations: 114.4 kB / 16.4 MB, free: 6.383 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.001125/0.001125, allocations: 194.6 kB / 17.33 MB, free: 5.844 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.343/1.343, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.477/2.477, allocations: 437.1 MB / 0.7112 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001837/0.001837, allocations: 63.89 kB / 1.019 GB, free: 9.461 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.002/1.004, allocations: 151.6 MB / 1.167 GB, free: 3.883 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002964/1.007, allocations: 1.428 MB / 1.169 GB, free: 2.445 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0007527/1.008, allocations: 434.9 kB / 1.169 GB, free: 2.016 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.635e-05/1.008, allocations: 0 / 1.169 GB, free: 2.016 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.814e-05/1.008, allocations: 7.938 kB / 1.169 GB, free: 2.008 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.052e-05/1.008, allocations: 11.92 kB / 1.169 GB, free: 1.996 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001682/1.009, allocations: 19.91 kB / 1.169 GB, free: 1.977 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001262/1.009, allocations: 51.86 kB / 1.169 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 9.841e-05/1.009, allocations: 11.98 kB / 1.169 GB, free: 1.914 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 6.01e-05/1.009, allocations: 19.94 kB / 1.169 GB, free: 1.895 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.002e-05/1.009, allocations: 19.91 kB / 1.169 GB, free: 1.875 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.842e-05/1.009, allocations: 7.938 kB / 1.169 GB, free: 1.867 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.27e-05/1.009, allocations: 8 kB / 1.169 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.539e-05/1.009, allocations: 7.938 kB / 1.169 GB, free: 1.852 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.407e-05/1.009, allocations: 23.91 kB / 1.169 GB, free: 1.828 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001234/1.009, allocations: 40.81 kB / 1.169 GB, free: 1.789 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/1.009, allocations: 0 / 1.169 GB, free: 1.789 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.814e-06/1.009, allocations: 0 / 1.169 GB, free: 1.789 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.491e-06/1.009, allocations: 0 / 1.169 GB, free: 1.789 MB / 0.8887 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.0006281/1.01, allocations: 400.5 kB / 1.17 GB, free: 1.348 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/1.01, allocations: 12.92 kB / 1.17 GB, free: 1.336 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.954e-05/1.01, allocations: 8.891 kB / 1.17 GB, free: 1.328 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001235/1.01, allocations: 164.4 kB / 1.17 GB, free: 1.129 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.727e-05/1.01, allocations: 12.34 kB / 1.17 GB, free: 1.117 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.747e-05/1.01, allocations: 4.375 kB / 1.17 GB, free: 1.113 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001242/1.01, allocations: 57.92 kB / 1.17 GB, free: 1.051 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/1.01, allocations: 0 / 1.17 GB, free: 1.051 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/1.01, allocations: 7.938 kB / 1.17 GB, free: 1.043 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/1.01, allocations: 0 / 1.17 GB, free: 1.043 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.239e-05/1.01, allocations: 15.98 kB / 1.17 GB, free: 1.027 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004002/1.011, allocations: 276.7 kB / 1.17 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 8.527e-05/1.011, allocations: 42.56 kB / 1.17 GB, free: 0.6562 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.619e-05/1.011, allocations: 24.92 kB / 1.17 GB, free: 0.6289 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.979e-05/1.011, allocations: 4 kB / 1.17 GB, free: 0.625 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002069/1.011, allocations: 101.1 kB / 1.17 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=9): time 1.462e-06/1.011, allocations: 0 / 1.17 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of matching and sorting (n=9): time 0.0002777/1.011, allocations: 139.3 kB / 1.17 GB, free: 368 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.471e-05/1.011, allocations: 89.17 kB / 1.171 GB, free: 260 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.985e-05/1.012, allocations: 105.8 kB / 1.171 GB, free: 144 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 2.405e-05/1.012, allocations: 33.7 kB / 1.171 GB, free: 104 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 4.154e-05/1.012, allocations: 80.14 kB / 1.171 GB, free: 20 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.929e-05/1.012, allocations: 15.91 kB / 1.171 GB, free: 4 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.084e-05/1.012, allocations: 25.75 kB / 1.171 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001026/1.012, allocations: 330.7 kB / 1.171 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.256e-05/1.012, allocations: 12 kB / 1.171 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.623e-05/1.012, allocations: 38.56 kB / 1.171 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.791e-05/1.012, allocations: 109.9 kB / 1.171 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/1.012, allocations: 3.938 kB / 1.171 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001471/1.012, allocations: 131.3 kB / 1.171 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.547e-05/1.012, allocations: 33.7 kB / 1.171 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.734e-05/1.012, allocations: 0 / 1.171 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/1.012, allocations: 0 / 1.171 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.746e-05/1.012, allocations: 7.938 kB / 1.171 GB, free: 15.26 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/1.012, allocations: 3.984 kB / 1.171 GB, free: 15.26 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.053e-05/1.012, allocations: 4 kB / 1.171 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.827e-06/1.012, allocations: 4 kB / 1.171 GB, free: 15.25 MB / 0.9044 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.000107/1.013, allocations: 159.9 kB / 1.172 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.052e-05/1.013, allocations: 7.953 kB / 1.172 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.677e-05/1.013, allocations: 8.375 kB / 1.172 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/1.013, allocations: 4 kB / 1.172 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/1.013, allocations: 3.938 kB / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/1.013, allocations: 0 / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003796/1.013, allocations: 400.1 kB / 1.172 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/1.013, allocations: 0 / 1.172 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.484e-06/1.013, allocations: 64 / 1.172 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/1.013, allocations: 11.98 kB / 1.172 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/1.013, allocations: 8 kB / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/1.013, allocations: 0 / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/1.013, allocations: 480 / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002131/1.013, allocations: 237 kB / 1.172 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.725e-05/1.013, allocations: 81.06 kB / 1.172 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.131e-05/1.013, allocations: 4 kB / 1.172 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/1.013, allocations: 15.98 kB / 1.172 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.375e-05/1.014, allocations: 15.91 kB / 1.172 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.897e-05/1.014, allocations: 4 kB / 1.172 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.685e-05/1.014, allocations: 87.34 kB / 1.172 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/1.014, allocations: 0 / 1.172 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002315/1.014, allocations: 16 kB / 1.172 GB, free: 14.09 MB / 0.9044 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.0001077/1.014, allocations: 107.2 kB / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001832/1.014, allocations: 111.4 kB / 1.173 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/1.014, allocations: 8.062 kB / 1.173 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 9.282e-05/1.014, allocations: 91.33 kB / 1.173 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000297/1.015, allocations: 22.38 kB / 1.173 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003633/1.015, allocations: 179 kB / 1.173 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002464/1.015, allocations: 0.6812 MB / 1.174 GB, free: 12.81 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.43e-05/1.015, allocations: 11.44 kB / 1.174 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/1.015, allocations: 4 kB / 1.174 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of Templates: time 0.002447/1.018, allocations: 0.8972 MB / 1.175 GB, free: 11.9 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches