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/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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009944/0.009944, allocations: 99.11 kB / 15.73 MB, free: 6.008 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.002339/0.00234, allocations: 189.9 kB / 16.67 MB, free: 5.926 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.434/1.434, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.242/2.242, allocations: 390.2 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 59.91 kB / 0.9508 GB, free: 7.676 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.002/1.004, allocations: 140.4 MB / 1.088 GB, free: 5.777 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002744/1.006, allocations: 1.432 MB / 1.089 GB, free: 4.781 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007728/1.007, allocations: 427.2 kB / 1.09 GB, free: 4.488 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.759e-05/1.007, allocations: 0 / 1.09 GB, free: 4.488 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.23e-05/1.007, allocations: 6.078 kB / 1.09 GB, free: 4.484 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001021/1.007, allocations: 18.83 kB / 1.09 GB, free: 4.469 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000174/1.008, allocations: 20.08 kB / 1.09 GB, free: 4.457 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001346/1.008, allocations: 54.25 kB / 1.09 GB, free: 4.43 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/1.008, allocations: 5.828 kB / 1.09 GB, free: 4.43 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.198e-05/1.008, allocations: 18.19 kB / 1.09 GB, free: 4.422 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.446e-05/1.008, allocations: 23.41 kB / 1.09 GB, free: 4.41 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.992e-05/1.008, allocations: 3.344 kB / 1.09 GB, free: 4.41 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.325e-05/1.008, allocations: 4.531 kB / 1.09 GB, free: 4.41 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.007e-05/1.008, allocations: 14.84 kB / 1.09 GB, free: 4.398 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.96e-05/1.008, allocations: 24.86 kB / 1.09 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001341/1.008, allocations: 36.03 kB / 1.09 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/1.008, allocations: 0.7969 kB / 1.09 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.164e-06/1.008, allocations: 0 / 1.09 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.851e-06/1.008, allocations: 1 kB / 1.09 GB, free: 4.371 MB / 0.8575 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.000561/1.009, allocations: 395.7 kB / 1.09 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/1.009, allocations: 9.344 kB / 1.09 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.619e-05/1.009, allocations: 12.31 kB / 1.09 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001002/1.009, allocations: 172.6 kB / 1.09 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.821e-05/1.009, allocations: 6.734 kB / 1.09 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.407e-05/1.009, allocations: 3.75 kB / 1.09 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001342/1.009, allocations: 51.83 kB / 1.091 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/1.009, allocations: 0 / 1.091 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/1.009, allocations: 2.078 kB / 1.091 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.708e-06/1.009, allocations: 3.938 kB / 1.091 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.764e-05/1.009, allocations: 20.5 kB / 1.091 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003779/1.01, allocations: 280.9 kB / 1.091 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.906e-05/1.01, allocations: 40.03 kB / 1.091 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.328e-05/1.01, allocations: 28.02 kB / 1.091 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.977e-05/1.01, allocations: 0.6562 kB / 1.091 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001792/1.01, allocations: 101.3 kB / 1.091 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.513e-06/1.01, allocations: 4 kB / 1.091 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0002865/1.01, allocations: 144 kB / 1.091 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/1.01, allocations: 84.34 kB / 1.091 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.737e-05/1.01, allocations: 108 kB / 1.091 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.274e-05/1.011, allocations: 27.08 kB / 1.091 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.797e-05/1.011, allocations: 86.58 kB / 1.091 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.255e-05/1.011, allocations: 20.72 kB / 1.091 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.207e-05/1.011, allocations: 23.94 kB / 1.091 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.845e-05/1.011, allocations: 327.3 kB / 1.092 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.892e-05/1.011, allocations: 14.67 kB / 1.092 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.609e-05/1.011, allocations: 37.45 kB / 1.092 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.077e-05/1.011, allocations: 115.8 kB / 1.092 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/1.011, allocations: 0 / 1.092 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001535/1.011, allocations: 130.3 kB / 1.092 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.511e-05/1.011, allocations: 37.94 kB / 1.092 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/1.011, allocations: 2.016 kB / 1.092 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/1.011, allocations: 1.594 kB / 1.092 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.6e-05/1.011, allocations: 3.328 kB / 1.092 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/1.011, allocations: 2.141 kB / 1.092 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.791e-05/1.011, allocations: 5.25 kB / 1.092 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-06/1.011, allocations: 7.594 kB / 1.092 GB, free: 2.219 MB / 0.8575 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 8.788e-05/1.011, allocations: 153.9 kB / 1.092 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.922e-05/1.011, allocations: 12.33 kB / 1.092 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.894e-05/1.011, allocations: 10.25 kB / 1.092 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/1.011, allocations: 1.156 kB / 1.092 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/1.011, allocations: 0 / 1.092 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/1.011, allocations: 2.391 kB / 1.092 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003621/1.012, allocations: 403.1 kB / 1.093 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/1.012, allocations: 0 / 1.093 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.164e-05/1.012, allocations: 2.25 kB / 1.093 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/1.012, allocations: 0.9375 kB / 1.093 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.417e-05/1.012, allocations: 6.75 kB / 1.093 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/1.012, allocations: 0.7812 kB / 1.093 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/1.012, allocations: 0 / 1.093 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002421/1.012, allocations: 241.5 kB / 1.093 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.525e-05/1.012, allocations: 83.69 kB / 1.093 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.548e-05/1.012, allocations: 2.609 kB / 1.093 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/1.012, allocations: 7.719 kB / 1.093 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.586e-05/1.012, allocations: 21.84 kB / 1.093 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.812e-05/1.012, allocations: 4.094 kB / 1.093 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.697e-05/1.012, allocations: 87.8 kB / 1.093 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.91e-07/1.012, allocations: 0 / 1.093 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002344/1.013, allocations: 13.95 kB / 1.093 GB, free: 1.277 MB / 0.8575 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 8.766e-05/1.013, allocations: 102 kB / 1.093 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001977/1.013, allocations: 114.9 kB / 1.093 GB, free: 1.105 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/1.013, allocations: 4.125 kB / 1.093 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001039/1.013, allocations: 92.62 kB / 1.093 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003029/1.013, allocations: 15.33 kB / 1.093 GB, free: 1.02 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003655/1.014, allocations: 146.3 kB / 1.094 GB, free: 0.8906 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001512/1.014, allocations: 0.6848 MB / 1.094 GB, free: 200 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.357e-05/1.014, allocations: 4.609 kB / 1.094 GB, free: 200 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.645e-05/1.014, allocations: 16.42 kB / 1.094 GB, free: 192 kB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/1.014, allocations: 0 / 1.094 GB, free: 192 kB / 0.8575 GB Notification: Performance of Templates: time 0.003813/1.018, allocations: 0.8698 MB / 1.095 GB, free: 84 kB / 0.8575 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches