Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.447/1.447, allocations: 249.3 MB / 261.8 MB, free: 5.949 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001068/0.001068, allocations: 184.8 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.476/1.476, allocations: 205.2 MB / 0.572 GB, free: 10.57 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007628/0.0007627, allocations: 90.47 kB / 0.6764 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.047e-05/3.06e-05, allocations: 0 / 0.7879 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1852/0.1852, allocations: 106.3 MB / 0.8918 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6064/0.7917, allocations: 132.2 MB / 1.021 GB, free: 2.52 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/0.792, allocations: 75.06 kB / 1.021 GB, free: 2.477 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003555/0.7956, allocations: 1.196 MB / 1.022 GB, free: 1.43 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.704e-06/0.7956, allocations: 0 / 1.022 GB, free: 1.43 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.087e-06/0.7956, allocations: 4 kB / 1.022 GB, free: 1.426 MB / 0.6355 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.0004227/0.796, allocations: 374.8 kB / 1.023 GB, free: 1.016 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.7961, allocations: 8.031 kB / 1.023 GB, free: 1.008 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.333e-05/0.7961, allocations: 11.89 kB / 1.023 GB, free: 0.9961 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001478/0.7963, allocations: 171 kB / 1.023 GB, free: 0.7891 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.7963, allocations: 0 / 1.023 GB, free: 0.7891 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.726e-05/0.7963, allocations: 7.5 kB / 1.023 GB, free: 0.7852 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001172/0.7965, allocations: 51.62 kB / 1.023 GB, free: 0.7344 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.204e-06/0.7965, allocations: 4 kB / 1.023 GB, free: 0.7305 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.271e-05/0.7965, allocations: 0 / 1.023 GB, free: 0.7305 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.767e-06/0.7965, allocations: 4 kB / 1.023 GB, free: 0.7266 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.558e-05/0.7966, allocations: 16.73 kB / 1.023 GB, free: 0.7188 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004145/0.797, allocations: 269.6 kB / 1.023 GB, free: 428 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.766e-05/0.7971, allocations: 43.8 kB / 1.023 GB, free: 384 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.705e-05/0.7972, allocations: 27.42 kB / 1.023 GB, free: 360 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.918e-05/0.7972, allocations: 8.062 kB / 1.023 GB, free: 352 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001537/0.7973, allocations: 95.84 kB / 1.023 GB, free: 248 kB / 0.6355 GB Notification: Performance of pre-optimization done (n=9): time 1.352e-06/0.7973, allocations: 0 / 1.023 GB, free: 248 kB / 0.6355 GB Notification: Performance of matching and sorting (n=9): time 0.0002537/0.7976, allocations: 125 kB / 1.023 GB, free: 124 kB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.495e-05/0.7977, allocations: 81.11 kB / 1.023 GB, free: 24 kB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001019/0.7978, allocations: 100.7 kB / 1.023 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.7978, allocations: 25.7 kB / 1.024 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.02e-05/0.7979, allocations: 99.83 kB / 1.024 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.231e-05/0.7979, allocations: 19.7 kB / 1.024 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.759e-06/0.7979, allocations: 3.125 kB / 1.024 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.798, allocations: 314.4 kB / 1.024 GB, free: 15.46 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.191e-05/0.7981, allocations: 15.38 kB / 1.024 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.895e-05/0.7981, allocations: 36.88 kB / 1.024 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.344e-05/0.7982, allocations: 53.19 kB / 1.024 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.7982, allocations: 3.938 kB / 1.024 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001617/0.7984, allocations: 112.8 kB / 1.024 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 4.221e-05/0.7984, allocations: 33.7 kB / 1.024 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.7984, allocations: 0 / 1.024 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.7985, allocations: 3.938 kB / 1.024 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.471e-05/0.7985, allocations: 4 kB / 1.024 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.7985, allocations: 4.625 kB / 1.024 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.497e-05/0.7986, allocations: 15.73 kB / 1.024 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.152e-05/0.7986, allocations: 7.953 kB / 1.024 GB, free: 15.18 MB / 0.6511 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 ($PRE.del.firstTrigger,del.firstTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.sampleTrigger,del.ySample,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001009/0.7987, allocations: 146 kB / 1.024 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.569e-05/0.7987, allocations: 7.906 kB / 1.024 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.115e-05/0.7988, allocations: 7.812 kB / 1.024 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.7988, allocations: 0 / 1.024 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.7988, allocations: 0 / 1.024 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.7988, allocations: 0 / 1.024 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004018/0.7992, allocations: 409.6 kB / 1.025 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.7992, allocations: 0 / 1.025 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.977e-06/0.7992, allocations: 7.938 kB / 1.025 GB, free: 14.57 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.7992, allocations: 0 / 1.025 GB, free: 14.57 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.7993, allocations: 3.984 kB / 1.025 GB, free: 14.57 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.7993, allocations: 4 kB / 1.025 GB, free: 14.57 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.7993, allocations: 0 / 1.025 GB, free: 14.57 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001964/0.7995, allocations: 227.3 kB / 1.025 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.618e-05/0.7995, allocations: 88.95 kB / 1.025 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.963e-05/0.7996, allocations: 4 kB / 1.025 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.983e-05/0.7997, allocations: 15.23 kB / 1.025 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.342e-05/0.7997, allocations: 11.97 kB / 1.025 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.322e-05/0.7997, allocations: 0 / 1.025 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 4.708e-05/0.7998, allocations: 95.64 kB / 1.025 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.81e-07/0.7998, allocations: 0 / 1.025 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002084/0.8, allocations: 19.81 kB / 1.025 GB, free: 14.1 MB / 0.6511 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001084/0.8001, allocations: 99.25 kB / 1.025 GB, free: 13.99 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001513/0.8003, allocations: 117.5 kB / 1.025 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.8003, allocations: 0 / 1.025 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 8.518e-05/0.8004, allocations: 85.95 kB / 1.025 GB, free: 13.8 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001958/0.8006, allocations: 15.73 kB / 1.026 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002518/0.8009, allocations: 100 kB / 1.026 GB, free: 13.68 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000294/0.8012, allocations: 0.6965 MB / 1.026 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 2.83e-05/0.8012, allocations: 4 kB / 1.026 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.535e-05/0.8012, allocations: 7.438 kB / 1.026 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of SimCode: time 4.11e-07/0.8012, allocations: 0 / 1.026 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of Templates: time 0.002668/0.8039, allocations: 0.7513 MB / 1.027 GB, free: 12.21 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches