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.001288/0.001288, allocations: 108.7 kB / 15.99 MB, free: 6.359 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.001298/0.001298, allocations: 191.2 kB / 16.91 MB, free: 6.195 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.35/1.35, allocations: 222.9 MB / 240.6 MB, free: 15.38 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.287/2.287, allocations: 390.2 MB / 0.665 GB, free: 0.8867 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 65.55 kB / 0.8127 GB, free: 33.23 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.2905, allocations: 140.4 MB / 0.9498 GB, free: 9.266 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.003331/0.2938, allocations: 1.494 MB / 0.9512 GB, free: 7.762 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0008758/0.2947, allocations: 427 kB / 0.9516 GB, free: 7.34 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.545e-05/0.2948, allocations: 4 kB / 0.9516 GB, free: 7.336 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.316e-05/0.2949, allocations: 3.938 kB / 0.9516 GB, free: 7.332 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001042/0.295, allocations: 11.92 kB / 0.9516 GB, free: 7.32 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002091/0.2953, allocations: 19.98 kB / 0.9517 GB, free: 7.301 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000134/0.2954, allocations: 47.84 kB / 0.9517 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.2955, allocations: 11.98 kB / 0.9517 GB, free: 7.242 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.941e-05/0.2956, allocations: 27.84 kB / 0.9517 GB, free: 7.215 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.857e-05/0.2957, allocations: 19.92 kB / 0.9518 GB, free: 7.195 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.388e-05/0.2957, allocations: 4 kB / 0.9518 GB, free: 7.191 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.169e-05/0.2957, allocations: 0 / 0.9518 GB, free: 7.191 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.098e-05/0.2958, allocations: 15.94 kB / 0.9518 GB, free: 7.176 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.42e-05/0.2959, allocations: 19.92 kB / 0.9518 GB, free: 7.156 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001105/0.296, allocations: 31.89 kB / 0.9518 GB, free: 7.125 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.296, allocations: 0 / 0.9518 GB, free: 7.125 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.604e-06/0.296, allocations: 0 / 0.9518 GB, free: 7.125 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.432e-06/0.296, allocations: 0 / 0.9518 GB, free: 7.125 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.0006795/0.2967, allocations: 397.3 kB / 0.9522 GB, free: 6.684 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.2967, allocations: 12.03 kB / 0.9522 GB, free: 6.672 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.444e-05/0.2968, allocations: 12.84 kB / 0.9522 GB, free: 6.66 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001468/0.297, allocations: 164.3 kB / 0.9524 GB, free: 6.461 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.693e-05/0.297, allocations: 8.312 kB / 0.9524 GB, free: 6.453 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.029e-05/0.297, allocations: 8.312 kB / 0.9524 GB, free: 6.445 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000143/0.2972, allocations: 53.98 kB / 0.9525 GB, free: 6.387 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.198e-06/0.2972, allocations: 0 / 0.9525 GB, free: 6.387 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.2972, allocations: 4 kB / 0.9525 GB, free: 6.383 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.2972, allocations: 0 / 0.9525 GB, free: 6.383 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.995e-05/0.2973, allocations: 12 kB / 0.9525 GB, free: 6.371 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004807/0.2978, allocations: 276.8 kB / 0.9527 GB, free: 6.051 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 9.061e-05/0.2979, allocations: 42.52 kB / 0.9528 GB, free: 6 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.862e-05/0.2979, allocations: 20.97 kB / 0.9528 GB, free: 5.977 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.668e-05/0.2979, allocations: 0 / 0.9528 GB, free: 5.977 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002534/0.2982, allocations: 113.1 kB / 0.9529 GB, free: 5.848 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=9): time 1.483e-06/0.2982, allocations: 4 kB / 0.9529 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9): time 0.0003058/0.2985, allocations: 135.3 kB / 0.953 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.45e-05/0.2986, allocations: 85.09 kB / 0.9531 GB, free: 5.598 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.379e-05/0.2987, allocations: 113.8 kB / 0.9532 GB, free: 5.477 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.2987, allocations: 29.7 kB / 0.9533 GB, free: 5.441 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.357e-05/0.2988, allocations: 84.14 kB / 0.9533 GB, free: 5.355 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.485e-05/0.2988, allocations: 11.81 kB / 0.9533 GB, free: 5.344 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.52e-05/0.2989, allocations: 29.7 kB / 0.9534 GB, free: 5.309 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.299, allocations: 322.8 kB / 0.9537 GB, free: 4.984 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.862e-05/0.2991, allocations: 19.98 kB / 0.9537 GB, free: 4.965 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.433e-05/0.2991, allocations: 34.5 kB / 0.9537 GB, free: 4.922 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001039/0.2993, allocations: 114.4 kB / 0.9538 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.2993, allocations: 0 / 0.9538 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001846/0.2994, allocations: 135.2 kB / 0.954 GB, free: 4.645 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.928e-05/0.2995, allocations: 33.69 kB / 0.954 GB, free: 4.605 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.2995, allocations: 4 kB / 0.954 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.2995, allocations: 0 / 0.954 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.188e-05/0.2996, allocations: 8.312 kB / 0.954 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.453e-06/0.2996, allocations: 0 / 0.954 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.574e-05/0.2997, allocations: 15.92 kB / 0.954 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.2997, allocations: 4 kB / 0.954 GB, free: 4.574 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.0001623/0.2999, allocations: 155.5 kB / 0.9542 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.852e-05/0.2999, allocations: 4 kB / 0.9542 GB, free: 4.402 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.464e-05/0.2999, allocations: 12.36 kB / 0.9542 GB, free: 4.391 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.2999, allocations: 4 kB / 0.9542 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.3, allocations: 0 / 0.9542 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.3, allocations: 0 / 0.9542 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004495/0.3004, allocations: 408 kB / 0.9546 GB, free: 3.926 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.3004, allocations: 0 / 0.9546 GB, free: 3.926 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.677e-06/0.3004, allocations: 0 / 0.9546 GB, free: 3.926 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.3004, allocations: 0 / 0.9546 GB, free: 3.926 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.3005, allocations: 8 kB / 0.9546 GB, free: 3.918 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.3005, allocations: 3.938 kB / 0.9546 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3005, allocations: 0 / 0.9546 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002238/0.3007, allocations: 225.2 kB / 0.9548 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.517e-05/0.3008, allocations: 89 kB / 0.9549 GB, free: 3.566 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.837e-05/0.3008, allocations: 4 kB / 0.9549 GB, free: 3.562 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.3009, allocations: 7.984 kB / 0.9549 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.615e-05/0.301, allocations: 11.94 kB / 0.9549 GB, free: 3.543 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.029e-05/0.301, allocations: 8 kB / 0.9549 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.383e-05/0.3011, allocations: 87.2 kB / 0.955 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of sort global known variables: time 4.61e-07/0.3011, allocations: 0 / 0.955 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002449/0.3013, allocations: 20 kB / 0.955 GB, free: 3.43 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.0001173/0.3014, allocations: 95.31 kB / 0.9551 GB, free: 3.324 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002034/0.3017, allocations: 123.3 kB / 0.9552 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/0.3017, allocations: 8.125 kB / 0.9552 GB, free: 3.184 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 8.769e-05/0.3018, allocations: 87.39 kB / 0.9553 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003075/0.3021, allocations: 15.92 kB / 0.9553 GB, free: 3.07 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004012/0.3025, allocations: 191 kB / 0.9555 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002533/0.3028, allocations: 0.6999 MB / 0.9562 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.4e-05/0.3028, allocations: 15.44 kB / 0.9562 GB, free: 2.105 MB / 0.7325 GB Notification: Performance of SimCode: time 3.51e-07/0.3028, allocations: 0 / 0.9562 GB, free: 2.105 MB / 0.7325 GB Notification: Performance of Templates: time 0.002677/0.3055, allocations: 0.8954 MB / 0.9571 GB, free: 1.215 MB / 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 -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