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.001376/0.001376, allocations: 80.73 kB / 19.44 MB, free: 356 kB / 13.93 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.00164/0.00164, allocations: 157.7 kB / 22.76 MB, free: 1.68 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 1.481/1.481, allocations: 177.1 MB / 203.1 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] 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 3.171/3.171, allocations: 429.6 MB / 0.673 GB, free: 3.871 MB / 0.6355 GB " [Timeout remaining time 176] 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.224e-06/2.224e-06, allocations: 0 / 0.8775 GB, free: 6.523 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.143e-05/3.365e-05, allocations: 2.312 kB / 0.8775 GB, free: 6.52 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.003088/0.003121, allocations: 1.461 MB / 0.879 GB, free: 5.074 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001/0.004121, allocations: 438.9 kB / 0.8794 GB, free: 4.645 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.255e-05/0.004164, allocations: 0.9688 kB / 0.8794 GB, free: 4.645 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.192e-05/0.004196, allocations: 3.938 kB / 0.8794 GB, free: 4.641 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 9.688e-05/0.004293, allocations: 21.02 kB / 0.8794 GB, free: 4.621 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001754/0.004468, allocations: 15.97 kB / 0.8794 GB, free: 4.605 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001321/0.0046, allocations: 51.8 kB / 0.8795 GB, free: 4.555 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 8.905e-05/0.004689, allocations: 4.984 kB / 0.8795 GB, free: 4.551 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001053/0.004794, allocations: 31.92 kB / 0.8795 GB, free: 4.52 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 7.885e-05/0.004873, allocations: 19.91 kB / 0.8795 GB, free: 4.5 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.321e-05/0.004896, allocations: 5.125 kB / 0.8795 GB, free: 4.496 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 1.069e-05/0.004907, allocations: 0 / 0.8795 GB, free: 4.496 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.015e-05/0.004937, allocations: 11.98 kB / 0.8795 GB, free: 4.484 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.926e-05/0.004987, allocations: 13.06 kB / 0.8795 GB, free: 4.473 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001471/0.005134, allocations: 55.8 kB / 0.8796 GB, free: 4.418 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.005136, allocations: 0 / 0.8796 GB, free: 4.418 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.42e-07/0.005137, allocations: 1.062 kB / 0.8796 GB, free: 4.418 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.509e-06/0.005141, allocations: 0 / 0.8796 GB, free: 4.418 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.0006973/0.005839, allocations: 323.8 kB / 0.8799 GB, free: 4.07 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.005878, allocations: 8.031 kB / 0.8799 GB, free: 4.062 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.307e-05/0.005931, allocations: 4.938 kB / 0.8799 GB, free: 4.059 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001344/0.006065, allocations: 113.8 kB / 0.88 GB, free: 3.922 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.997e-05/0.006085, allocations: 12.3 kB / 0.88 GB, free: 3.91 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.387e-05/0.006099, allocations: 4.375 kB / 0.88 GB, free: 3.906 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001542/0.006253, allocations: 75.95 kB / 0.8801 GB, free: 3.82 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.006272, allocations: 4.172 kB / 0.8801 GB, free: 3.816 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.006287, allocations: 4.375 kB / 0.8801 GB, free: 3.812 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.006294, allocations: 5.281 kB / 0.8801 GB, free: 3.809 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.694e-05/0.006381, allocations: 45.69 kB / 0.8802 GB, free: 3.758 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004129/0.006793, allocations: 212.5 kB / 0.8804 GB, free: 3.52 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001212/0.006915, allocations: 69.78 kB / 0.8804 GB, free: 3.438 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.309e-05/0.006978, allocations: 46.67 kB / 0.8805 GB, free: 3.383 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.006997, allocations: 0 / 0.8805 GB, free: 3.383 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002494/0.007247, allocations: 138.7 kB / 0.8806 GB, free: 3.223 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=9): time 1.252e-06/0.007248, allocations: 1.625 kB / 0.8806 GB, free: 3.223 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9): time 0.0003793/0.007627, allocations: 199 kB / 0.8808 GB, free: 3.004 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.238e-05/0.0077, allocations: 85.11 kB / 0.8809 GB, free: 2.902 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.007813, allocations: 109.8 kB / 0.881 GB, free: 2.785 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.414e-05/0.007838, allocations: 26.8 kB / 0.881 GB, free: 2.754 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.644e-05/0.007904, allocations: 88.14 kB / 0.8811 GB, free: 2.664 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.048e-05/0.007935, allocations: 27.89 kB / 0.8811 GB, free: 2.637 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.04e-05/0.007985, allocations: 23.31 kB / 0.8812 GB, free: 2.609 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001721/0.008157, allocations: 318.8 kB / 0.8815 GB, free: 2.289 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.685e-05/0.008224, allocations: 49.64 kB / 0.8815 GB, free: 2.234 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.008362, allocations: 68.2 kB / 0.8816 GB, free: 2.152 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001392/0.008501, allocations: 114.4 kB / 0.8817 GB, free: 2.02 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.008503, allocations: 3.938 kB / 0.8817 GB, free: 2.016 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002393/0.008742, allocations: 172.8 kB / 0.8819 GB, free: 1.828 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.424e-05/0.008787, allocations: 36.05 kB / 0.8819 GB, free: 1.789 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.008792, allocations: 0 / 0.8819 GB, free: 1.789 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.008812, allocations: 0 / 0.8819 GB, free: 1.789 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.261e-05/0.008865, allocations: 8 kB / 0.8819 GB, free: 1.781 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.008871, allocations: 0 / 0.8819 GB, free: 1.781 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.296e-05/0.008944, allocations: 12.05 kB / 0.8819 GB, free: 1.77 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.029e-05/0.008954, allocations: 4 kB / 0.8819 GB, free: 1.766 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 0.0001457/0.0091, allocations: 144.6 kB / 0.882 GB, free: 1.609 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.09e-05/0.00913, allocations: 15.89 kB / 0.8821 GB, free: 1.594 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.677e-05/0.009167, allocations: 12.42 kB / 0.8821 GB, free: 1.578 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.009169, allocations: 3.938 kB / 0.8821 GB, free: 1.574 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.009174, allocations: 4 kB / 0.8821 GB, free: 1.57 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.009177, allocations: 64 / 0.8821 GB, free: 1.57 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004964/0.009673, allocations: 373.5 kB / 0.8824 GB, free: 1.156 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-06/0.009676, allocations: 0 / 0.8824 GB, free: 1.156 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.134e-05/0.009687, allocations: 7.984 kB / 0.8824 GB, free: 1.148 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.009689, allocations: 0 / 0.8824 GB, free: 1.148 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.009701, allocations: 4 kB / 0.8825 GB, free: 1.145 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.009703, allocations: 0 / 0.8825 GB, free: 1.145 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.009704, allocations: 0 / 0.8825 GB, free: 1.145 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003098/0.01001, allocations: 266.8 kB / 0.8827 GB, free: 0.8555 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.052e-05/0.01003, allocations: 7.953 kB / 0.8827 GB, free: 0.8477 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.523e-05/0.01006, allocations: 7.984 kB / 0.8827 GB, free: 0.8398 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001109/0.01017, allocations: 8 kB / 0.8827 GB, free: 0.832 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.791e-05/0.01023, allocations: 3.984 kB / 0.8827 GB, free: 0.8281 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-05/0.01025, allocations: 12 kB / 0.8827 GB, free: 0.8164 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.734e-05/0.01032, allocations: 87.27 kB / 0.8828 GB, free: 0.7305 MB / 0.8386 GB Notification: Performance of sort global known variables: time 7.1e-08/0.01032, allocations: 0 / 0.8828 GB, free: 0.7305 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002524/0.01057, allocations: 16 kB / 0.8828 GB, free: 0.7148 MB / 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 0.0001312/0.0107, allocations: 95.25 kB / 0.8829 GB, free: 0.6133 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002415/0.01094, allocations: 166.7 kB / 0.8831 GB, free: 436 kB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.552e-06/0.01094, allocations: 3.938 kB / 0.8831 GB, free: 432 kB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.01108, allocations: 113.1 kB / 0.8832 GB, free: 300 kB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/0.0114, allocations: 32.77 kB / 0.8832 GB, free: 268 kB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000426/0.01183, allocations: 186.1 kB / 0.8834 GB, free: 48 kB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001103/0.01194, allocations: 79.19 kB / 0.8835 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.122e-05/0.01197, allocations: 4 kB / 0.8835 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.551e-05/0.012, allocations: 12.5 kB / 0.8835 GB, free: 15.93 MB / 0.8542 GB Notification: Performance of SimCode: time 7.71e-07/0.01201, allocations: 4 kB / 0.8835 GB, free: 15.93 MB / 0.8542 GB Notification: Performance of Templates: time 0.003915/0.01592, allocations: 0.9303 MB / 0.8844 GB, free: 15.02 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.056562570040114]