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.001664/0.001664, allocations: 102.1 kB / 19.7 MB, free: 2.254 MB / 14.72 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.00207/0.00207, allocations: 219.9 kB / 23.01 MB, free: 4.605 MB / 14.72 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.497/1.497, allocations: 230.6 MB / 256.8 MB, free: 7.992 MB / 206.1 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.242/3.242, allocations: 0.505 GB / 0.8108 GB, free: 22.1 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00312/0.00312, allocations: 66.14 kB / 1.178 GB, free: 16.93 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4208/0.4239, allocations: 180.2 MB / 1.354 GB, free: 8.016 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.003905/0.4279, allocations: 1.467 MB / 1.355 GB, free: 6.539 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001156/0.429, allocations: 470.8 kB / 1.356 GB, free: 6.074 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.75e-05/0.4291, allocations: 4 kB / 1.356 GB, free: 6.07 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.333e-05/0.4291, allocations: 3.938 kB / 1.356 GB, free: 6.066 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 9.439e-05/0.4292, allocations: 7.938 kB / 1.356 GB, free: 6.059 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001807/0.4294, allocations: 19.92 kB / 1.356 GB, free: 6.039 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001604/0.4295, allocations: 59.83 kB / 1.356 GB, free: 5.98 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 9.725e-05/0.4296, allocations: 7.938 kB / 1.356 GB, free: 5.973 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 7.7e-05/0.4297, allocations: 23.92 kB / 1.356 GB, free: 5.949 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 8.045e-05/0.4298, allocations: 19.86 kB / 1.356 GB, free: 5.93 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.348e-05/0.4298, allocations: 4 kB / 1.356 GB, free: 5.926 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 1.508e-05/0.4298, allocations: 4 kB / 1.356 GB, free: 5.922 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.038e-05/0.4298, allocations: 8 kB / 1.356 GB, free: 5.914 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 6.366e-05/0.4299, allocations: 19.86 kB / 1.356 GB, free: 5.895 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001471/0.4301, allocations: 47.67 kB / 1.356 GB, free: 5.852 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.4301, allocations: 0 / 1.356 GB, free: 5.852 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.624e-06/0.4301, allocations: 4 kB / 1.356 GB, free: 5.848 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.162e-06/0.4301, allocations: 0 / 1.356 GB, free: 5.848 MB / 1.045 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.000755/0.4308, allocations: 319.9 kB / 1.356 GB, free: 5.5 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.4309, allocations: 8.031 kB / 1.356 GB, free: 5.492 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.624e-05/0.4309, allocations: 8.891 kB / 1.356 GB, free: 5.484 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001452/0.4311, allocations: 110.5 kB / 1.357 GB, free: 5.352 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.4311, allocations: 4.375 kB / 1.357 GB, free: 5.348 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.343e-05/0.4311, allocations: 4.375 kB / 1.357 GB, free: 5.344 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001655/0.4313, allocations: 65.88 kB / 1.357 GB, free: 5.273 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.4313, allocations: 0 / 1.357 GB, free: 5.273 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.555e-05/0.4313, allocations: 4 kB / 1.357 GB, free: 5.27 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.4313, allocations: 0 / 1.357 GB, free: 5.27 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.226e-05/0.4314, allocations: 19.97 kB / 1.357 GB, free: 5.25 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00052/0.4319, allocations: 243.9 kB / 1.357 GB, free: 4.969 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000124/0.432, allocations: 46.5 kB / 1.357 GB, free: 4.914 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.838e-05/0.4321, allocations: 16.98 kB / 1.357 GB, free: 4.895 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.155e-05/0.4321, allocations: 0 / 1.357 GB, free: 4.895 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002576/0.4323, allocations: 105 kB / 1.357 GB, free: 4.773 MB / 1.045 GB Notification: Performance of pre-optimization done (n=9): time 1.833e-06/0.4323, allocations: 0 / 1.357 GB, free: 4.773 MB / 1.045 GB Notification: Performance of matching and sorting (n=9): time 0.0003973/0.4327, allocations: 135.3 kB / 1.357 GB, free: 4.629 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.11e-05/0.4328, allocations: 85.11 kB / 1.357 GB, free: 4.527 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/0.433, allocations: 117.9 kB / 1.357 GB, free: 4.402 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.571e-05/0.433, allocations: 29.7 kB / 1.357 GB, free: 4.367 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.578e-05/0.4331, allocations: 84.14 kB / 1.357 GB, free: 4.281 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.563e-05/0.4331, allocations: 19.84 kB / 1.358 GB, free: 4.262 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.656e-05/0.4332, allocations: 25.7 kB / 1.358 GB, free: 4.23 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001943/0.4334, allocations: 326.8 kB / 1.358 GB, free: 3.902 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.056e-05/0.4334, allocations: 12 kB / 1.358 GB, free: 3.891 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.088e-05/0.4335, allocations: 46.5 kB / 1.358 GB, free: 3.836 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001656/0.4337, allocations: 102 kB / 1.358 GB, free: 3.715 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.4337, allocations: 3.984 kB / 1.358 GB, free: 3.711 MB / 1.045 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002631/0.4339, allocations: 123.3 kB / 1.358 GB, free: 3.578 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 5.009e-05/0.434, allocations: 38.95 kB / 1.358 GB, free: 3.535 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.434, allocations: 0 / 1.358 GB, free: 3.535 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.434, allocations: 0 / 1.358 GB, free: 3.535 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.542e-05/0.4341, allocations: 12 kB / 1.358 GB, free: 3.523 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.559e-05/0.4341, allocations: 0 / 1.358 GB, free: 3.523 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.568e-05/0.4342, allocations: 8.359 kB / 1.358 GB, free: 3.516 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.347e-05/0.4342, allocations: 4 kB / 1.358 GB, free: 3.512 MB / 1.045 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.0001684/0.4344, allocations: 159.3 kB / 1.358 GB, free: 3.34 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.517e-05/0.4344, allocations: 7.953 kB / 1.358 GB, free: 3.332 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.296e-05/0.4344, allocations: 12.31 kB / 1.358 GB, free: 3.32 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.4344, allocations: 4 kB / 1.358 GB, free: 3.316 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.4344, allocations: 4 kB / 1.358 GB, free: 3.312 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.4344, allocations: 0 / 1.358 GB, free: 3.312 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000615/0.435, allocations: 371.6 kB / 1.359 GB, free: 2.895 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.4351, allocations: 0 / 1.359 GB, free: 2.895 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.072e-05/0.4351, allocations: 0 / 1.359 GB, free: 2.895 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.4351, allocations: 0 / 1.359 GB, free: 2.895 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.225e-05/0.4351, allocations: 15.92 kB / 1.359 GB, free: 2.879 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.4351, allocations: 0 / 1.359 GB, free: 2.879 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.4351, allocations: 7.922 kB / 1.359 GB, free: 2.871 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003531/0.4354, allocations: 233.1 kB / 1.359 GB, free: 2.621 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.003e-05/0.4355, allocations: 8.016 kB / 1.359 GB, free: 2.613 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.938e-05/0.4355, allocations: 4 kB / 1.359 GB, free: 2.609 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001715/0.4357, allocations: 15.98 kB / 1.359 GB, free: 2.594 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.34e-05/0.4357, allocations: 11.91 kB / 1.359 GB, free: 2.582 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.307e-05/0.4357, allocations: 4 kB / 1.359 GB, free: 2.578 MB / 1.045 GB Notification: Performance of sorting global known variables: time 7.807e-05/0.4358, allocations: 91.42 kB / 1.359 GB, free: 2.488 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4358, allocations: 3.938 kB / 1.359 GB, free: 2.484 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004448/0.4363, allocations: 20 kB / 1.359 GB, free: 2.465 MB / 1.045 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.0001424/0.4364, allocations: 103.2 kB / 1.359 GB, free: 2.355 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002668/0.4367, allocations: 103.3 kB / 1.359 GB, free: 2.242 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4367, allocations: 0 / 1.359 GB, free: 2.242 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001291/0.4368, allocations: 83.39 kB / 1.359 GB, free: 2.148 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004616/0.4373, allocations: 20.03 kB / 1.359 GB, free: 2.129 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000474/0.4377, allocations: 179.4 kB / 1.36 GB, free: 1.922 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000402/0.4381, allocations: 0.6884 MB / 1.36 GB, free: 1.207 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.469e-05/0.4382, allocations: 11.44 kB / 1.36 GB, free: 1.195 MB / 1.045 GB Notification: Performance of SimCode: time 4.31e-07/0.4382, allocations: 0 / 1.36 GB, free: 1.195 MB / 1.045 GB Notification: Performance of Templates: time 0.003351/0.4415, allocations: 0.9035 MB / 1.361 GB, free: 300 kB / 1.045 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/jenkins1/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: 11.430633255979046]