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.001486/0.001485, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.001596/0.001596, allocations: 188.9 kB / 17.34 MB, free: 5.695 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.339/1.339, allocations: 222.9 MB / 241 MB, free: 15.07 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.338/2.338, allocations: 437 MB / 0.7112 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001413, allocations: 59.91 kB / 1.019 GB, free: 9.426 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7433/0.7448, allocations: 151.6 MB / 1.167 GB, free: 3.863 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002585/0.7474, allocations: 1.435 MB / 1.169 GB, free: 2.422 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.000753/0.7482, allocations: 431 kB / 1.169 GB, free: 1.996 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.616e-05/0.7482, allocations: 4 kB / 1.169 GB, free: 1.992 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.636e-05/0.7483, allocations: 7.875 kB / 1.169 GB, free: 1.984 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.309e-05/0.7484, allocations: 11.91 kB / 1.169 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000151/0.7485, allocations: 19.92 kB / 1.169 GB, free: 1.953 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001126/0.7486, allocations: 51.84 kB / 1.169 GB, free: 1.902 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 8.915e-05/0.7487, allocations: 8 kB / 1.169 GB, free: 1.895 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 6.534e-05/0.7488, allocations: 23.86 kB / 1.169 GB, free: 1.871 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.675e-05/0.7489, allocations: 23.92 kB / 1.169 GB, free: 1.848 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.038e-05/0.7489, allocations: 11.98 kB / 1.169 GB, free: 1.836 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.11e-05/0.7489, allocations: 4 kB / 1.169 GB, free: 1.832 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.06e-05/0.7489, allocations: 3.938 kB / 1.169 GB, free: 1.828 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.471e-05/0.749, allocations: 23.92 kB / 1.169 GB, free: 1.805 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000103/0.7491, allocations: 35.89 kB / 1.169 GB, free: 1.77 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.7491, allocations: 3.938 kB / 1.169 GB, free: 1.766 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.353e-06/0.7491, allocations: 0 / 1.169 GB, free: 1.766 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.544e-06/0.7491, allocations: 0 / 1.169 GB, free: 1.766 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.0005818/0.7497, allocations: 393 kB / 1.17 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.7498, allocations: 12.92 kB / 1.17 GB, free: 1.32 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.835e-05/0.7498, allocations: 4.844 kB / 1.17 GB, free: 1.316 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.7499, allocations: 178.1 kB / 1.17 GB, free: 1.105 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.75, allocations: 4.375 kB / 1.17 GB, free: 1.102 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.473e-05/0.75, allocations: 8.312 kB / 1.17 GB, free: 1.094 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001138/0.7501, allocations: 50 kB / 1.17 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.743e-06/0.7501, allocations: 0 / 1.17 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.7501, allocations: 4 kB / 1.17 GB, free: 1.035 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.7501, allocations: 4 kB / 1.17 GB, free: 1.031 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.791e-05/0.7502, allocations: 23.97 kB / 1.17 GB, free: 1.008 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003722/0.7506, allocations: 272.7 kB / 1.17 GB, free: 0.6914 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 8.216e-05/0.7507, allocations: 46.5 kB / 1.17 GB, free: 0.6367 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.621e-05/0.7507, allocations: 20.98 kB / 1.17 GB, free: 0.6133 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.791e-05/0.7507, allocations: 0 / 1.17 GB, free: 0.6133 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001755/0.7509, allocations: 105.1 kB / 1.17 GB, free: 0.4922 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=9): time 1.663e-06/0.7509, allocations: 0 / 1.17 GB, free: 0.4922 MB / 0.8887 GB Notification: Performance of matching and sorting (n=9): time 0.0002795/0.7512, allocations: 143.3 kB / 1.17 GB, free: 348 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.371e-05/0.7513, allocations: 81.11 kB / 1.171 GB, free: 248 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.273e-05/0.7514, allocations: 110.2 kB / 1.171 GB, free: 128 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.624e-05/0.7514, allocations: 25.7 kB / 1.171 GB, free: 96 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 4.32e-05/0.7515, allocations: 88.14 kB / 1.171 GB, free: 4 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 4.187e-05/0.7515, allocations: 19.8 kB / 1.171 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.266e-05/0.7516, allocations: 25.72 kB / 1.171 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.7517, allocations: 322.8 kB / 1.171 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.388e-05/0.7517, allocations: 12 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.926e-05/0.7518, allocations: 46.44 kB / 1.171 GB, free: 15.56 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001073/0.7519, allocations: 118 kB / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.7519, allocations: 0 / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001695/0.7521, allocations: 127.2 kB / 1.171 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.791e-05/0.7521, allocations: 37.64 kB / 1.171 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.7521, allocations: 4 kB / 1.171 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.7521, allocations: 0 / 1.171 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.362e-05/0.7522, allocations: 11.92 kB / 1.171 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.7522, allocations: 0 / 1.171 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.075e-05/0.7523, allocations: 4 kB / 1.171 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.071e-05/0.7523, allocations: 8.125 kB / 1.171 GB, free: 15.22 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.0001236/0.7524, allocations: 155.5 kB / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.877e-05/0.7525, allocations: 7.906 kB / 1.172 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.101e-05/0.7525, allocations: 8.375 kB / 1.172 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.7525, allocations: 384 / 1.172 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.7525, allocations: 4 kB / 1.172 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.7525, allocations: 0 / 1.172 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003967/0.7529, allocations: 400 kB / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.7529, allocations: 4 kB / 1.172 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.125e-05/0.753, allocations: 7.984 kB / 1.172 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.753, allocations: 0 / 1.172 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.753, allocations: 3.984 kB / 1.172 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.753, allocations: 7.938 kB / 1.172 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.753, allocations: 0 / 1.172 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002161/0.7532, allocations: 233.1 kB / 1.172 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.747e-05/0.7533, allocations: 81.02 kB / 1.172 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.179e-05/0.7533, allocations: 4 kB / 1.172 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.7534, allocations: 11.98 kB / 1.172 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.169e-05/0.7535, allocations: 15.92 kB / 1.172 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.656e-05/0.7535, allocations: 4 kB / 1.172 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.29e-05/0.7535, allocations: 87.22 kB / 1.172 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/0.7536, allocations: 0 / 1.172 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002469/0.7538, allocations: 16 kB / 1.172 GB, free: 14.07 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.0001039/0.7539, allocations: 103.2 kB / 1.173 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001893/0.7541, allocations: 115.3 kB / 1.173 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.7541, allocations: 0 / 1.173 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 9.136e-05/0.7542, allocations: 91.39 kB / 1.173 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003009/0.7545, allocations: 19.92 kB / 1.173 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003607/0.7549, allocations: 175.2 kB / 1.173 GB, free: 13.51 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002292/0.7551, allocations: 0.6812 MB / 1.174 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.926e-05/0.7552, allocations: 15.56 kB / 1.174 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of SimCode: time 2.5e-07/0.7552, allocations: 3.938 kB / 1.174 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of Templates: time 0.002405/0.7576, allocations: 0.9065 MB / 1.175 GB, free: 11.88 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