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.001049/0.001049, allocations: 114.4 kB / 16.37 MB, free: 6.016 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.001238/0.001238, allocations: 199.1 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.353/1.353, allocations: 222.9 MB / 241 MB, free: 15.19 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.187/2.187, allocations: 390.3 MB / 0.6655 GB, free: 0.5586 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002142/0.002142, allocations: 61.5 kB / 0.814 GB, free: 32.65 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2866/0.2888, allocations: 140.4 MB / 0.9511 GB, free: 8.039 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.003262/0.2921, allocations: 1.427 MB / 0.9525 GB, free: 6.605 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0007052/0.2928, allocations: 435 kB / 0.9529 GB, free: 6.176 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.777e-05/0.2929, allocations: 3.938 kB / 0.9529 GB, free: 6.172 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.6e-05/0.2929, allocations: 0 / 0.9529 GB, free: 6.172 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.724e-05/0.293, allocations: 19.84 kB / 0.9529 GB, free: 6.152 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001604/0.2932, allocations: 11.98 kB / 0.953 GB, free: 6.141 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001177/0.2933, allocations: 51.86 kB / 0.953 GB, free: 6.09 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.452e-05/0.2934, allocations: 11.98 kB / 0.953 GB, free: 6.078 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.04e-05/0.2935, allocations: 19.88 kB / 0.953 GB, free: 6.059 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.754e-05/0.2935, allocations: 23.91 kB / 0.9531 GB, free: 6.035 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.863e-05/0.2936, allocations: 4 kB / 0.9531 GB, free: 6.031 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.063e-05/0.2936, allocations: 4 kB / 0.9531 GB, free: 6.027 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.523e-05/0.2936, allocations: 11.92 kB / 0.9531 GB, free: 6.016 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.689e-05/0.2937, allocations: 27.91 kB / 0.9531 GB, free: 5.988 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001035/0.2938, allocations: 35.84 kB / 0.9531 GB, free: 5.953 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.2938, allocations: 3.984 kB / 0.9531 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.785e-06/0.2938, allocations: 0 / 0.9531 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.2938, allocations: 3.938 kB / 0.9531 GB, free: 5.945 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.0006311/0.2944, allocations: 397 kB / 0.9535 GB, free: 5.504 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.2945, allocations: 8.031 kB / 0.9535 GB, free: 5.496 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.852e-05/0.2945, allocations: 8.844 kB / 0.9535 GB, free: 5.488 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.2947, allocations: 176.3 kB / 0.9537 GB, free: 5.277 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/0.2947, allocations: 384 / 0.9537 GB, free: 5.277 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.631e-05/0.2947, allocations: 4.375 kB / 0.9537 GB, free: 5.273 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001324/0.2948, allocations: 57.98 kB / 0.9538 GB, free: 5.211 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.2949, allocations: 0 / 0.9538 GB, free: 5.211 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.2949, allocations: 4 kB / 0.9538 GB, free: 5.207 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.2949, allocations: 0 / 0.9538 GB, free: 5.207 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.182e-05/0.295, allocations: 23.92 kB / 0.9538 GB, free: 5.184 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004223/0.2954, allocations: 268.8 kB / 0.9541 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 8.849e-05/0.2955, allocations: 38.56 kB / 0.9541 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.858e-05/0.2955, allocations: 16.98 kB / 0.9541 GB, free: 4.805 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.242e-05/0.2956, allocations: 4 kB / 0.9541 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000223/0.2958, allocations: 112.9 kB / 0.9542 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=9): time 1.443e-06/0.2958, allocations: 0 / 0.9542 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9): time 0.0002974/0.2961, allocations: 139.4 kB / 0.9543 GB, free: 4.523 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.943e-05/0.2962, allocations: 85.05 kB / 0.9544 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.694e-05/0.2963, allocations: 113.8 kB / 0.9545 GB, free: 4.301 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/0.2963, allocations: 29.7 kB / 0.9546 GB, free: 4.266 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.405e-05/0.2964, allocations: 88.08 kB / 0.9547 GB, free: 4.176 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.879e-05/0.2964, allocations: 15.81 kB / 0.9547 GB, free: 4.16 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.369e-05/0.2964, allocations: 29.7 kB / 0.9547 GB, free: 4.125 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.2965, allocations: 318.8 kB / 0.955 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.516e-05/0.2966, allocations: 19.98 kB / 0.955 GB, free: 3.785 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.275e-05/0.2966, allocations: 34.56 kB / 0.9551 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001047/0.2967, allocations: 113.9 kB / 0.9552 GB, free: 3.609 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.2968, allocations: 8 kB / 0.9552 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000148/0.2969, allocations: 127.2 kB / 0.9553 GB, free: 3.465 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.14e-05/0.2969, allocations: 33.7 kB / 0.9553 GB, free: 3.426 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/0.297, allocations: 0 / 0.9553 GB, free: 3.426 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.297, allocations: 0 / 0.9553 GB, free: 3.426 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.423e-05/0.297, allocations: 4 kB / 0.9553 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.297, allocations: 0 / 0.9553 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.573e-05/0.2971, allocations: 19.98 kB / 0.9553 GB, free: 3.402 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-06/0.2971, allocations: 4 kB / 0.9553 GB, free: 3.398 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 9.59e-05/0.2972, allocations: 151.4 kB / 0.9555 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.52e-05/0.2972, allocations: 7.984 kB / 0.9555 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.67e-05/0.2973, allocations: 8.375 kB / 0.9555 GB, free: 3.215 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.2973, allocations: 4 kB / 0.9555 GB, free: 3.211 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.2973, allocations: 0 / 0.9555 GB, free: 3.211 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.2973, allocations: 0 / 0.9555 GB, free: 3.211 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003595/0.2977, allocations: 404.4 kB / 0.9559 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.2977, allocations: 3.938 kB / 0.9559 GB, free: 2.75 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.545e-06/0.2977, allocations: 0 / 0.9559 GB, free: 2.75 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.2977, allocations: 0 / 0.9559 GB, free: 2.75 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.394e-05/0.2977, allocations: 7.984 kB / 0.9559 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.2977, allocations: 0 / 0.9559 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2977, allocations: 0 / 0.9559 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001954/0.2979, allocations: 233.1 kB / 0.9561 GB, free: 2.492 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.994e-05/0.298, allocations: 88.94 kB / 0.9562 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.163e-05/0.298, allocations: 12 kB / 0.9562 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.964e-05/0.2981, allocations: 7.984 kB / 0.9562 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.444e-05/0.2981, allocations: 7.938 kB / 0.9562 GB, free: 2.359 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.225e-05/0.2982, allocations: 7.984 kB / 0.9562 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.228e-05/0.2982, allocations: 83.83 kB / 0.9563 GB, free: 2.27 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2982, allocations: 4 kB / 0.9563 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002316/0.2985, allocations: 16 kB / 0.9563 GB, free: 2.25 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 9.787e-05/0.2986, allocations: 103.2 kB / 0.9564 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001765/0.2988, allocations: 119.3 kB / 0.9566 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2988, allocations: 0 / 0.9566 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 8.105e-05/0.2988, allocations: 87.56 kB / 0.9566 GB, free: 1.91 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002829/0.2991, allocations: 19.14 kB / 0.9567 GB, free: 1.895 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003213/0.2995, allocations: 157.5 kB / 0.9568 GB, free: 1.711 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002298/0.2997, allocations: 0.6885 MB / 0.9575 GB, free: 0.9961 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.566e-05/0.2997, allocations: 4 kB / 0.9575 GB, free: 0.9922 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.454e-05/0.2998, allocations: 11.44 kB / 0.9575 GB, free: 0.9844 MB / 0.7325 GB Notification: Performance of SimCode: time 2.21e-07/0.2998, allocations: 0 / 0.9575 GB, free: 0.9844 MB / 0.7325 GB Notification: Performance of Templates: time 0.002958/0.3027, allocations: 0.8723 MB / 0.9584 GB, free: 124 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 gbode -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