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.001923/0.001923, allocations: 102.2 kB / 16.27 MB, free: 6 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.001781/0.001781, allocations: 191 kB / 17.2 MB, free: 5.609 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.419/1.419, allocations: 222.9 MB / 240.9 MB, free: 15.27 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.58/2.58, allocations: 437 MB / 0.711 GB, free: 4.52 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001898/0.001898, allocations: 76.59 kB / 0.8699 GB, free: 2.191 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.333/0.3349, allocations: 151.6 MB / 1.018 GB, free: 10.64 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.003139/0.3381, allocations: 1.433 MB / 1.019 GB, free: 9.199 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0007961/0.3389, allocations: 440.4 kB / 1.02 GB, free: 8.766 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.923e-05/0.339, allocations: 0 / 1.02 GB, free: 8.766 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 5.109e-05/0.3391, allocations: 3.938 kB / 1.02 GB, free: 8.762 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 9.35e-05/0.3392, allocations: 11.91 kB / 1.02 GB, free: 8.75 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001589/0.3393, allocations: 19.92 kB / 1.02 GB, free: 8.73 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001164/0.3395, allocations: 47.86 kB / 1.02 GB, free: 8.684 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.792e-05/0.3396, allocations: 11.98 kB / 1.02 GB, free: 8.672 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 5.966e-05/0.3396, allocations: 19.92 kB / 1.02 GB, free: 8.652 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 8.433e-05/0.3397, allocations: 27.84 kB / 1.02 GB, free: 8.625 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.061e-05/0.3398, allocations: 4 kB / 1.02 GB, free: 8.621 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.26e-05/0.3398, allocations: 4 kB / 1.02 GB, free: 8.617 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.518e-05/0.3398, allocations: 7.938 kB / 1.02 GB, free: 8.609 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 5.649e-05/0.3399, allocations: 19.92 kB / 1.02 GB, free: 8.59 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001697/0.34, allocations: 47.83 kB / 1.02 GB, free: 8.543 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.3401, allocations: 3.984 kB / 1.02 GB, free: 8.539 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.744e-06/0.3401, allocations: 4 kB / 1.02 GB, free: 8.535 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.929e-06/0.3401, allocations: 0 / 1.02 GB, free: 8.535 MB / 0.795 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.0006687/0.3407, allocations: 385.4 kB / 1.02 GB, free: 8.105 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.3408, allocations: 12.92 kB / 1.02 GB, free: 8.094 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.798e-05/0.3408, allocations: 4.844 kB / 1.02 GB, free: 8.09 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001599/0.341, allocations: 168.3 kB / 1.021 GB, free: 7.887 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.476e-05/0.341, allocations: 4.375 kB / 1.021 GB, free: 7.883 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.108e-05/0.341, allocations: 4.375 kB / 1.021 GB, free: 7.879 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001359/0.3412, allocations: 57.98 kB / 1.021 GB, free: 7.816 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.405e-06/0.3412, allocations: 3.938 kB / 1.021 GB, free: 7.812 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.3412, allocations: 4 kB / 1.021 GB, free: 7.809 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.3412, allocations: 0 / 1.021 GB, free: 7.809 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.443e-05/0.3413, allocations: 15.98 kB / 1.021 GB, free: 7.793 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004531/0.3417, allocations: 272.8 kB / 1.021 GB, free: 7.477 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 9.458e-05/0.3419, allocations: 46.56 kB / 1.021 GB, free: 7.422 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.76e-05/0.3419, allocations: 16.98 kB / 1.021 GB, free: 7.402 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.252e-05/0.3419, allocations: 0 / 1.021 GB, free: 7.402 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001998/0.3421, allocations: 117 kB / 1.021 GB, free: 7.27 MB / 0.795 GB Notification: Performance of pre-optimization done (n=9): time 1.252e-06/0.3421, allocations: 0 / 1.021 GB, free: 7.27 MB / 0.795 GB Notification: Performance of matching and sorting (n=9): time 0.000296/0.3424, allocations: 139.3 kB / 1.021 GB, free: 7.121 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.727e-05/0.3425, allocations: 81.11 kB / 1.021 GB, free: 7.023 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.838e-05/0.3426, allocations: 117.8 kB / 1.021 GB, free: 6.898 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/0.3426, allocations: 25.7 kB / 1.021 GB, free: 6.867 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.61e-05/0.3427, allocations: 88.14 kB / 1.022 GB, free: 6.777 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.033e-05/0.3427, allocations: 11.81 kB / 1.022 GB, free: 6.766 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.083e-05/0.3428, allocations: 29.7 kB / 1.022 GB, free: 6.73 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.3429, allocations: 314.8 kB / 1.022 GB, free: 6.414 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.854e-05/0.343, allocations: 19.98 kB / 1.022 GB, free: 6.395 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.018e-05/0.343, allocations: 42.5 kB / 1.022 GB, free: 6.344 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001242/0.3432, allocations: 122.3 kB / 1.022 GB, free: 6.203 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3432, allocations: 0 / 1.022 GB, free: 6.203 MB / 0.795 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001692/0.3434, allocations: 127.2 kB / 1.022 GB, free: 6.066 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.628e-05/0.3434, allocations: 29.7 kB / 1.022 GB, free: 6.031 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.3434, allocations: 4 kB / 1.022 GB, free: 6.027 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.3434, allocations: 4.062 kB / 1.022 GB, free: 6.023 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.883e-05/0.3435, allocations: 4 kB / 1.022 GB, free: 6.02 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.3435, allocations: 3.938 kB / 1.022 GB, free: 6.016 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.182e-05/0.3436, allocations: 15.92 kB / 1.022 GB, free: 6 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.736e-06/0.3436, allocations: 4 kB / 1.022 GB, free: 5.996 MB / 0.795 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.0001531/0.3438, allocations: 149.9 kB / 1.022 GB, free: 5.836 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.066e-05/0.3438, allocations: 11.89 kB / 1.022 GB, free: 5.824 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.207e-05/0.3438, allocations: 8.375 kB / 1.022 GB, free: 5.812 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3438, allocations: 7.984 kB / 1.022 GB, free: 5.805 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.3438, allocations: 4 kB / 1.022 GB, free: 5.801 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.3439, allocations: 0 / 1.022 GB, free: 5.801 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004692/0.3443, allocations: 400.5 kB / 1.023 GB, free: 5.348 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.3443, allocations: 4 kB / 1.023 GB, free: 5.344 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.815e-06/0.3444, allocations: 0 / 1.023 GB, free: 5.344 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.3444, allocations: 0 / 1.023 GB, free: 5.344 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.3444, allocations: 3.984 kB / 1.023 GB, free: 5.34 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3444, allocations: 4 kB / 1.023 GB, free: 5.336 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3444, allocations: 0 / 1.023 GB, free: 5.336 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000246/0.3446, allocations: 237 kB / 1.023 GB, free: 5.082 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.54e-05/0.3447, allocations: 77.11 kB / 1.023 GB, free: 4.988 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.532e-05/0.3447, allocations: 8 kB / 1.023 GB, free: 4.98 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.3448, allocations: 7.984 kB / 1.023 GB, free: 4.973 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.78e-05/0.3449, allocations: 7.938 kB / 1.023 GB, free: 4.965 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.3449, allocations: 7.984 kB / 1.023 GB, free: 4.957 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.56e-05/0.345, allocations: 87.28 kB / 1.023 GB, free: 4.871 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.345, allocations: 0 / 1.023 GB, free: 4.871 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002361/0.3452, allocations: 20 kB / 1.023 GB, free: 4.852 MB / 0.795 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.0001298/0.3454, allocations: 107.2 kB / 1.023 GB, free: 4.738 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002031/0.3456, allocations: 119.3 kB / 1.023 GB, free: 4.609 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3456, allocations: 0 / 1.023 GB, free: 4.609 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001039/0.3457, allocations: 91.39 kB / 1.024 GB, free: 4.508 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002918/0.346, allocations: 16.11 kB / 1.024 GB, free: 4.492 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004003/0.3464, allocations: 179.2 kB / 1.024 GB, free: 4.281 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003543/0.3468, allocations: 0.6823 MB / 1.024 GB, free: 3.574 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.214e-05/0.3468, allocations: 15.44 kB / 1.024 GB, free: 3.562 MB / 0.795 GB Notification: Performance of SimCode: time 2.1e-07/0.3468, allocations: 0 / 1.024 GB, free: 3.562 MB / 0.795 GB Notification: Performance of Templates: time 0.00256/0.3494, allocations: 0.898 MB / 1.025 GB, free: 2.664 MB / 0.795 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