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.001815/0.001815, allocations: 85.48 kB / 19.44 MB, free: 344 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.002086/0.002086, allocations: 177.2 kB / 22.76 MB, free: 1.66 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.534/1.534, allocations: 177.1 MB / 203.1 MB, free: 5.617 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.344/3.344, allocations: 429.5 MB / 0.6729 GB, free: 3.992 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.154e-06/2.154e-06, allocations: 0.9844 kB / 0.8774 GB, free: 6.68 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.919e-05/3.134e-05, allocations: 2.969 kB / 0.8774 GB, free: 6.676 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.003005/0.003036, allocations: 1.466 MB / 0.8788 GB, free: 5.223 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001018/0.004054, allocations: 452.9 kB / 0.8793 GB, free: 4.781 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.378e-05/0.004098, allocations: 224 / 0.8793 GB, free: 4.781 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.766e-05/0.004126, allocations: 7.844 kB / 0.8793 GB, free: 4.777 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 8.869e-05/0.004214, allocations: 7.922 kB / 0.8793 GB, free: 4.77 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001571/0.004371, allocations: 23.91 kB / 0.8793 GB, free: 4.746 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001258/0.004497, allocations: 47.8 kB / 0.8793 GB, free: 4.699 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 8.85e-05/0.004586, allocations: 11.98 kB / 0.8794 GB, free: 4.688 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001109/0.004697, allocations: 27.92 kB / 0.8794 GB, free: 4.66 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 6.847e-05/0.004765, allocations: 15.97 kB / 0.8794 GB, free: 4.645 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.397e-05/0.004789, allocations: 4 kB / 0.8794 GB, free: 4.641 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 1.432e-05/0.004803, allocations: 4 kB / 0.8794 GB, free: 4.637 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.73e-05/0.004831, allocations: 15.86 kB / 0.8794 GB, free: 4.621 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 5.27e-05/0.004883, allocations: 8.938 kB / 0.8794 GB, free: 4.613 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001375/0.005021, allocations: 51.8 kB / 0.8795 GB, free: 4.562 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.005023, allocations: 1.031 kB / 0.8795 GB, free: 4.562 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.91e-07/0.005024, allocations: 4 kB / 0.8795 GB, free: 4.559 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.929e-06/0.005029, allocations: 0 / 0.8795 GB, free: 4.559 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.0006877/0.005716, allocations: 414.9 kB / 0.8799 GB, free: 4.113 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.005761, allocations: 13.09 kB / 0.8799 GB, free: 4.102 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.764e-05/0.005818, allocations: 8.922 kB / 0.8799 GB, free: 4.094 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001418/0.00596, allocations: 117.6 kB / 0.88 GB, free: 3.953 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.343e-05/0.005974, allocations: 384 / 0.88 GB, free: 3.953 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.302e-05/0.005987, allocations: 4.375 kB / 0.88 GB, free: 3.949 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001567/0.006143, allocations: 88.53 kB / 0.8801 GB, free: 3.852 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.006152, allocations: 192 / 0.8801 GB, free: 3.852 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.006161, allocations: 0.9688 kB / 0.8801 GB, free: 3.852 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.006168, allocations: 3.938 kB / 0.8801 GB, free: 3.848 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.525e-05/0.006253, allocations: 43.08 kB / 0.8801 GB, free: 3.801 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004469/0.0067, allocations: 267.8 kB / 0.8804 GB, free: 3.504 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001353/0.006836, allocations: 72.75 kB / 0.8805 GB, free: 3.414 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.434e-05/0.0069, allocations: 54.3 kB / 0.8805 GB, free: 3.352 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.066e-05/0.006921, allocations: 7.875 kB / 0.8805 GB, free: 3.344 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002037/0.007124, allocations: 149 kB / 0.8807 GB, free: 3.172 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=9): time 1.322e-06/0.007126, allocations: 1.094 kB / 0.8807 GB, free: 3.172 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9): time 0.0003845/0.00751, allocations: 207 kB / 0.8809 GB, free: 2.945 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.075e-05/0.007581, allocations: 81.09 kB / 0.8809 GB, free: 2.848 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001532/0.007734, allocations: 178.5 kB / 0.8811 GB, free: 2.656 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.401e-05/0.007758, allocations: 30.27 kB / 0.8811 GB, free: 2.621 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.247e-05/0.007841, allocations: 130.9 kB / 0.8813 GB, free: 2.488 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.014e-05/0.007871, allocations: 24.98 kB / 0.8813 GB, free: 2.465 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.336e-05/0.007934, allocations: 39.36 kB / 0.8813 GB, free: 2.418 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002423/0.008176, allocations: 496.1 kB / 0.8818 GB, free: 1.922 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.866e-05/0.008235, allocations: 49.16 kB / 0.8819 GB, free: 1.871 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.916e-05/0.008324, allocations: 80.69 kB / 0.8819 GB, free: 1.773 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001401/0.008464, allocations: 126.4 kB / 0.882 GB, free: 1.625 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.85e-06/0.008469, allocations: 4 kB / 0.8821 GB, free: 1.621 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002216/0.008691, allocations: 160.9 kB / 0.8822 GB, free: 1.445 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.628e-05/0.008727, allocations: 33.7 kB / 0.8822 GB, free: 1.406 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.008732, allocations: 1.266 kB / 0.8822 GB, free: 1.406 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.008751, allocations: 3.984 kB / 0.8822 GB, free: 1.402 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.351e-05/0.008805, allocations: 7.938 kB / 0.8822 GB, free: 1.395 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.303e-06/0.008812, allocations: 4.594 kB / 0.8823 GB, free: 1.391 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.211e-05/0.008864, allocations: 5.312 kB / 0.8823 GB, free: 1.387 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.007e-06/0.008873, allocations: 4 kB / 0.8823 GB, free: 1.383 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.0001462/0.00902, allocations: 195.4 kB / 0.8824 GB, free: 1.176 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.843e-05/0.009048, allocations: 21.22 kB / 0.8825 GB, free: 1.156 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.21e-05/0.00908, allocations: 12.44 kB / 0.8825 GB, free: 1.141 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.009082, allocations: 0 / 0.8825 GB, free: 1.141 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.009086, allocations: 64 / 0.8825 GB, free: 1.141 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.009089, allocations: 4 kB / 0.8825 GB, free: 1.137 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004922/0.009582, allocations: 440.8 kB / 0.8829 GB, free: 0.6523 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.009583, allocations: 0 / 0.8829 GB, free: 0.6523 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.171e-05/0.009595, allocations: 4 kB / 0.8829 GB, free: 0.6484 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.0096, allocations: 7.938 kB / 0.8829 GB, free: 0.6406 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.009609, allocations: 0 / 0.8829 GB, free: 0.6406 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.009613, allocations: 3.938 kB / 0.8829 GB, free: 0.6367 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.009613, allocations: 0 / 0.8829 GB, free: 0.6367 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004108/0.01002, allocations: 323.2 kB / 0.8832 GB, free: 296 kB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.612e-05/0.01004, allocations: 7.953 kB / 0.8832 GB, free: 288 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.154e-05/0.01006, allocations: 4 kB / 0.8832 GB, free: 284 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.086e-05/0.01015, allocations: 12 kB / 0.8833 GB, free: 272 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.528e-05/0.0102, allocations: 3.984 kB / 0.8833 GB, free: 268 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.944e-05/0.01022, allocations: 4 kB / 0.8833 GB, free: 264 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.227e-05/0.0103, allocations: 139.1 kB / 0.8834 GB, free: 124 kB / 0.8386 GB Notification: Performance of sort global known variables: time 5e-08/0.0103, allocations: 0 / 0.8834 GB, free: 124 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002347/0.01053, allocations: 16 kB / 0.8834 GB, free: 108 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 0.0001064/0.01064, allocations: 95.25 kB / 0.8835 GB, free: 4 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002832/0.01092, allocations: 190.5 kB / 0.8837 GB, free: 15.79 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.01093, allocations: 4.062 kB / 0.8837 GB, free: 15.79 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001328/0.01106, allocations: 120.8 kB / 0.8838 GB, free: 15.64 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002862/0.01134, allocations: 19.92 kB / 0.8838 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004021/0.01175, allocations: 198.3 kB / 0.884 GB, free: 15.4 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.551e-05/0.01183, allocations: 76.33 kB / 0.8841 GB, free: 15.3 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.608e-05/0.01186, allocations: 3.984 kB / 0.8841 GB, free: 15.3 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.935e-05/0.01189, allocations: 12.5 kB / 0.8841 GB, free: 15.29 MB / 0.8542 GB Notification: Performance of SimCode: time 5.01e-07/0.01189, allocations: 4 kB / 0.8841 GB, free: 15.29 MB / 0.8542 GB Notification: Performance of Templates: time 0.0041/0.01599, allocations: 0.9462 MB / 0.885 GB, free: 14.37 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","/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.347802850068547]