Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 92.2 kB / 20.19 MB, free: 4.363 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009662/0.0009662, allocations: 173 kB / 23.49 MB, free: 1.062 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9199/0.9199, allocations: 177.1 MB / 203.8 MB, free: 5.648 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.032/2.032, allocations: 429.5 MB / 0.6736 GB, free: 4.051 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay") translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.365e-06/2.365e-06, allocations: 0 / 0.8781 GB, free: 6.727 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.975e-05/3.211e-05, allocations: 2.312 kB / 0.8781 GB, free: 6.723 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.003433/0.003465, allocations: 1.49 MB / 0.8796 GB, free: 5.242 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0009431/0.004408, allocations: 465.8 kB / 0.88 GB, free: 4.789 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.12e-05/0.00446, allocations: 4 kB / 0.88 GB, free: 4.785 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 9.394e-05/0.004553, allocations: 0 / 0.88 GB, free: 4.785 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.000117/0.00467, allocations: 11.86 kB / 0.88 GB, free: 4.773 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001941/0.004865, allocations: 23.86 kB / 0.8801 GB, free: 4.75 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001241/0.004989, allocations: 51.84 kB / 0.8801 GB, free: 4.699 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.835e-05/0.005087, allocations: 7.984 kB / 0.8801 GB, free: 4.691 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 8.055e-05/0.005168, allocations: 24.52 kB / 0.8802 GB, free: 4.668 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 6.577e-05/0.005233, allocations: 21.39 kB / 0.8802 GB, free: 4.648 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.049e-05/0.005254, allocations: 4 kB / 0.8802 GB, free: 4.645 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 1.228e-05/0.005266, allocations: 4 kB / 0.8802 GB, free: 4.641 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.471e-05/0.005291, allocations: 11.97 kB / 0.8802 GB, free: 4.629 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.794e-05/0.005329, allocations: 17.47 kB / 0.8802 GB, free: 4.613 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001254/0.005454, allocations: 31.89 kB / 0.8802 GB, free: 4.582 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.005458, allocations: 0 / 0.8802 GB, free: 4.582 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.214e-06/0.00546, allocations: 4 kB / 0.8802 GB, free: 4.578 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.558e-06/0.005465, allocations: 4 kB / 0.8802 GB, free: 4.574 MB / 0.8386 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.0004925/0.005958, allocations: 418.2 kB / 0.8806 GB, free: 4.125 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.005997, allocations: 8.031 kB / 0.8807 GB, free: 4.117 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.628e-05/0.006044, allocations: 8.938 kB / 0.8807 GB, free: 4.109 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.333e-05/0.006137, allocations: 120.5 kB / 0.8808 GB, free: 3.965 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/0.006149, allocations: 4.312 kB / 0.8808 GB, free: 3.961 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.148e-05/0.006161, allocations: 4.375 kB / 0.8808 GB, free: 3.957 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001006/0.006261, allocations: 71.95 kB / 0.8809 GB, free: 3.875 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.172e-06/0.006267, allocations: 192 / 0.8809 GB, free: 3.875 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.798e-06/0.006277, allocations: 8.375 kB / 0.8809 GB, free: 3.867 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.006285, allocations: 3.938 kB / 0.8809 GB, free: 3.863 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.068e-05/0.006325, allocations: 41.62 kB / 0.8809 GB, free: 3.816 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00035/0.006675, allocations: 263.8 kB / 0.8812 GB, free: 3.523 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.719e-05/0.006743, allocations: 60.77 kB / 0.8812 GB, free: 3.445 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.414e-05/0.006777, allocations: 49.5 kB / 0.8813 GB, free: 3.387 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.67e-05/0.006794, allocations: 0 / 0.8813 GB, free: 3.387 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00013/0.006924, allocations: 148.3 kB / 0.8814 GB, free: 3.215 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=9): time 9.31e-07/0.006924, allocations: 0 / 0.8814 GB, free: 3.215 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9): time 0.0002674/0.007192, allocations: 190.7 kB / 0.8816 GB, free: 3.004 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.087e-05/0.007233, allocations: 77.11 kB / 0.8817 GB, free: 2.91 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.408e-05/0.007317, allocations: 177.9 kB / 0.8818 GB, free: 2.719 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.007331, allocations: 25.7 kB / 0.8819 GB, free: 2.688 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.681e-05/0.007378, allocations: 134.9 kB / 0.882 GB, free: 2.551 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.579e-05/0.007394, allocations: 15.84 kB / 0.882 GB, free: 2.535 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.214e-05/0.007426, allocations: 31.38 kB / 0.882 GB, free: 2.496 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.007527, allocations: 0.4923 MB / 0.8825 GB, free: 1.992 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.886e-05/0.007556, allocations: 37.69 kB / 0.8825 GB, free: 1.949 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.238e-05/0.007599, allocations: 68.75 kB / 0.8826 GB, free: 1.863 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.464e-05/0.007673, allocations: 122.4 kB / 0.8827 GB, free: 1.719 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.007675, allocations: 0 / 0.8827 GB, free: 1.719 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001196/0.007795, allocations: 156.9 kB / 0.8829 GB, free: 1.547 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.793e-05/0.007823, allocations: 29.7 kB / 0.8829 GB, free: 1.512 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.007829, allocations: 4 kB / 0.8829 GB, free: 1.508 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.007841, allocations: 0 / 0.8829 GB, free: 1.508 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.515e-05/0.007886, allocations: 4 kB / 0.8829 GB, free: 1.504 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.007892, allocations: 4.047 kB / 0.8829 GB, free: 1.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.753e-05/0.00793, allocations: 12 kB / 0.8829 GB, free: 1.488 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.102e-06/0.007936, allocations: 12.39 kB / 0.8829 GB, free: 1.477 MB / 0.8386 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 7.912e-05/0.008015, allocations: 195.3 kB / 0.8831 GB, free: 1.27 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.547e-05/0.00803, allocations: 19.88 kB / 0.8831 GB, free: 1.25 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.424e-05/0.008055, allocations: 8.438 kB / 0.8832 GB, free: 1.238 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.008056, allocations: 0 / 0.8832 GB, free: 1.238 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.008059, allocations: 0 / 0.8832 GB, free: 1.238 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.008062, allocations: 0 / 0.8832 GB, free: 1.238 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002826/0.008345, allocations: 417.1 kB / 0.8835 GB, free: 0.7773 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.008347, allocations: 3.984 kB / 0.8836 GB, free: 0.7734 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.757e-06/0.008351, allocations: 0 / 0.8836 GB, free: 0.7734 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.008352, allocations: 4 kB / 0.8836 GB, free: 0.7695 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.518e-06/0.008362, allocations: 8 kB / 0.8836 GB, free: 0.7617 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.008363, allocations: 0 / 0.8836 GB, free: 0.7617 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.008364, allocations: 0 / 0.8836 GB, free: 0.7617 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001457/0.00851, allocations: 315.1 kB / 0.8839 GB, free: 432 kB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.929e-06/0.00852, allocations: 11.89 kB / 0.8839 GB, free: 420 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.706e-05/0.008537, allocations: 3.984 kB / 0.8839 GB, free: 416 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.238e-05/0.008589, allocations: 8 kB / 0.8839 GB, free: 408 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.973e-05/0.008629, allocations: 7.969 kB / 0.8839 GB, free: 400 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.346e-05/0.008642, allocations: 8 kB / 0.8839 GB, free: 392 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.859e-05/0.008681, allocations: 139.3 kB / 0.884 GB, free: 252 kB / 0.8386 GB Notification: Performance of sort global known variables: time 5e-08/0.008681, allocations: 0 / 0.884 GB, free: 252 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001444/0.008825, allocations: 16 kB / 0.8841 GB, free: 236 kB / 0.8386 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.683e-05/0.008912, allocations: 99.19 kB / 0.8841 GB, free: 128 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001678/0.00908, allocations: 162.5 kB / 0.8843 GB, free: 15.94 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.009082, allocations: 0 / 0.8843 GB, free: 15.94 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 6.333e-05/0.009145, allocations: 120.7 kB / 0.8844 GB, free: 15.8 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002226/0.009368, allocations: 22.28 kB / 0.8844 GB, free: 15.78 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000302/0.00967, allocations: 184 kB / 0.8846 GB, free: 15.56 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.066e-05/0.00971, allocations: 59.36 kB / 0.8847 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.574e-05/0.009736, allocations: 4 kB / 0.8847 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.666e-05/0.009763, allocations: 16.48 kB / 0.8847 GB, free: 15.46 MB / 0.8542 GB Notification: Performance of SimCode: time 8.12e-07/0.009763, allocations: 0 / 0.8847 GB, free: 15.46 MB / 0.8542 GB Notification: Performance of Templates: time 0.002401/0.01216, allocations: 0.942 MB / 0.8856 GB, free: 14.55 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.318833617027849]