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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.00121/0.00121, allocations: 114.5 kB / 16.37 MB, free: 6.012 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.001063/0.001063, allocations: 193.4 kB / 17.31 MB, free: 5.613 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.372/1.372, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.291/2.291, allocations: 390.3 MB / 0.6655 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001364, allocations: 67.23 kB / 0.814 GB, free: 32.57 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3375, allocations: 140.4 MB / 0.9511 GB, free: 8.074 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.003246/0.3408, allocations: 1.431 MB / 0.9525 GB, free: 6.637 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0008135/0.3416, allocations: 435 kB / 0.9529 GB, free: 6.207 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.61e-05/0.3417, allocations: 0 / 0.9529 GB, free: 6.207 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.514e-05/0.3417, allocations: 7.938 kB / 0.9529 GB, free: 6.199 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.208e-05/0.3418, allocations: 7.938 kB / 0.9529 GB, free: 6.191 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001787/0.342, allocations: 19.91 kB / 0.953 GB, free: 6.172 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001355/0.3422, allocations: 59.84 kB / 0.953 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001071/0.3423, allocations: 4 kB / 0.953 GB, free: 6.109 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.727e-05/0.3424, allocations: 23.86 kB / 0.953 GB, free: 6.086 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.113e-05/0.3424, allocations: 19.92 kB / 0.9531 GB, free: 6.066 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.048e-05/0.3425, allocations: 4 kB / 0.9531 GB, free: 6.062 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.523e-05/0.3425, allocations: 4 kB / 0.9531 GB, free: 6.059 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.152e-05/0.3425, allocations: 11.92 kB / 0.9531 GB, free: 6.047 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.447e-05/0.3426, allocations: 19.92 kB / 0.9531 GB, free: 6.027 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001169/0.3427, allocations: 39.83 kB / 0.9531 GB, free: 5.988 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3427, allocations: 4 kB / 0.9531 GB, free: 5.984 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.144e-06/0.3427, allocations: 0 / 0.9531 GB, free: 5.984 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.554e-06/0.3427, allocations: 0 / 0.9531 GB, free: 5.984 MB / 0.7325 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.0006933/0.3434, allocations: 393 kB / 0.9535 GB, free: 5.547 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.3435, allocations: 12.02 kB / 0.9535 GB, free: 5.535 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.28e-05/0.3435, allocations: 8.844 kB / 0.9535 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001464/0.3437, allocations: 172.3 kB / 0.9537 GB, free: 5.32 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.3437, allocations: 4.375 kB / 0.9537 GB, free: 5.316 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.972e-05/0.3437, allocations: 8.375 kB / 0.9537 GB, free: 5.309 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001312/0.3439, allocations: 57.97 kB / 0.9538 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.3439, allocations: 0 / 0.9538 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.3439, allocations: 0 / 0.9538 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.461e-06/0.3439, allocations: 0 / 0.9538 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.237e-05/0.344, allocations: 27.98 kB / 0.9538 GB, free: 5.219 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004519/0.3444, allocations: 268.8 kB / 0.9541 GB, free: 4.906 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 9.532e-05/0.3445, allocations: 46.52 kB / 0.9541 GB, free: 4.852 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.212e-05/0.3446, allocations: 24.97 kB / 0.9541 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.3446, allocations: 0 / 0.9541 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001608/0.3448, allocations: 97 kB / 0.9542 GB, free: 4.711 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=9): time 1.333e-06/0.3448, allocations: 3.938 kB / 0.9542 GB, free: 4.707 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9): time 0.0003693/0.3452, allocations: 139.3 kB / 0.9543 GB, free: 4.559 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.779e-05/0.3452, allocations: 85.17 kB / 0.9544 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.3454, allocations: 117.8 kB / 0.9545 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.3454, allocations: 33.62 kB / 0.9546 GB, free: 4.293 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.943e-05/0.3454, allocations: 88.14 kB / 0.9547 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.935e-05/0.3455, allocations: 11.81 kB / 0.9547 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.348e-05/0.3455, allocations: 29.7 kB / 0.9547 GB, free: 4.156 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.3456, allocations: 318.8 kB / 0.955 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.46e-05/0.3457, allocations: 19.92 kB / 0.955 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.705e-05/0.3457, allocations: 38.58 kB / 0.9551 GB, free: 3.77 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001076/0.3458, allocations: 110.4 kB / 0.9552 GB, free: 3.641 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.3458, allocations: 0 / 0.9552 GB, free: 3.641 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001484/0.346, allocations: 123.2 kB / 0.9553 GB, free: 3.508 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.834e-05/0.346, allocations: 41.62 kB / 0.9553 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.346, allocations: 64 / 0.9553 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.3461, allocations: 8 kB / 0.9553 GB, free: 3.453 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.675e-05/0.3461, allocations: 4 kB / 0.9553 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/0.3461, allocations: 4 kB / 0.9553 GB, free: 3.445 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.392e-05/0.3462, allocations: 11.92 kB / 0.9553 GB, free: 3.434 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.017e-05/0.3462, allocations: 4 kB / 0.9554 GB, free: 3.43 MB / 0.7325 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.0001158/0.3463, allocations: 155 kB / 0.9555 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.268e-05/0.3464, allocations: 0 / 0.9555 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.245e-05/0.3464, allocations: 12.38 kB / 0.9555 GB, free: 3.25 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.3464, allocations: 7.984 kB / 0.9555 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.3464, allocations: 0 / 0.9555 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.3464, allocations: 0 / 0.9555 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004069/0.3468, allocations: 400.4 kB / 0.9559 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3468, allocations: 0 / 0.9559 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.868e-06/0.3469, allocations: 3.938 kB / 0.9559 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.3469, allocations: 4 kB / 0.9559 GB, free: 2.781 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.3469, allocations: 3.938 kB / 0.9559 GB, free: 2.777 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.562e-06/0.3469, allocations: 0 / 0.9559 GB, free: 2.777 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3469, allocations: 0 / 0.9559 GB, free: 2.777 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002246/0.3471, allocations: 241.1 kB / 0.9561 GB, free: 2.52 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.792e-05/0.3472, allocations: 89 kB / 0.9562 GB, free: 2.414 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/0.3472, allocations: 0 / 0.9562 GB, free: 2.414 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.3473, allocations: 16 kB / 0.9562 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.656e-05/0.3474, allocations: 11.92 kB / 0.9563 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.535e-05/0.3474, allocations: 4 kB / 0.9563 GB, free: 2.383 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.126e-05/0.3475, allocations: 95.27 kB / 0.9563 GB, free: 2.289 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3475, allocations: 0 / 0.9563 GB, free: 2.289 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000235/0.3477, allocations: 12 kB / 0.9564 GB, free: 2.277 MB / 0.7325 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.0001291/0.3479, allocations: 103.2 kB / 0.9565 GB, free: 2.164 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002108/0.3481, allocations: 115.3 kB / 0.9566 GB, free: 2.039 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3481, allocations: 0 / 0.9566 GB, free: 2.039 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 9.847e-05/0.3482, allocations: 87.39 kB / 0.9566 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002977/0.3485, allocations: 12.12 kB / 0.9567 GB, free: 1.93 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003948/0.3489, allocations: 153.5 kB / 0.9568 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003113/0.3492, allocations: 0.6961 MB / 0.9575 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.978e-05/0.3493, allocations: 4 kB / 0.9575 GB, free: 1.023 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.057e-05/0.3493, allocations: 11.44 kB / 0.9575 GB, free: 1.016 MB / 0.7325 GB Notification: Performance of SimCode: time 2.2e-07/0.3493, allocations: 0 / 0.9575 GB, free: 1.016 MB / 0.7325 GB Notification: Performance of Templates: time 0.003613/0.3529, allocations: 0.8734 MB / 0.9584 GB, free: 160 kB / 0.7325 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches