Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.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.002292/0.002292, allocations: 111 kB / 16.46 MB, free: 6.453 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.002982/0.002982, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.619/1.619, allocations: 230.6 MB / 252.8 MB, free: 8.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.491/3.491, allocations: 0.4899 GB / 0.7916 GB, free: 33.66 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") [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.002107/0.002107, allocations: 76.62 kB / 1.149 GB, free: 26.11 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4629/0.465, allocations: 176.1 MB / 1.321 GB, free: 2.879 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002083/0.4671, allocations: 0.6881 MB / 1.322 GB, free: 2.191 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001597/0.4687, allocations: 1.089 MB / 1.323 GB, free: 1.09 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.042e-05/0.4688, allocations: 0 / 1.323 GB, free: 1.09 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.283e-05/0.4688, allocations: 7.938 kB / 1.323 GB, free: 1.082 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.538e-05/0.4689, allocations: 7.922 kB / 1.323 GB, free: 1.074 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003359/0.4692, allocations: 47.84 kB / 1.323 GB, free: 1.027 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001301/0.4694, allocations: 55.83 kB / 1.323 GB, free: 0.9727 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.4695, allocations: 4 kB / 1.323 GB, free: 0.9688 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 7.45e-05/0.4695, allocations: 19.92 kB / 1.323 GB, free: 0.9492 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 6.341e-05/0.4696, allocations: 19.92 kB / 1.323 GB, free: 0.9297 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.264e-05/0.4696, allocations: 4 kB / 1.323 GB, free: 0.9258 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.027e-05/0.4697, allocations: 19.98 kB / 1.323 GB, free: 0.9062 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.176e-05/0.4697, allocations: 23.91 kB / 1.323 GB, free: 0.8828 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.612e-05/0.4698, allocations: 15.94 kB / 1.323 GB, free: 0.8672 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001695/0.4699, allocations: 67.7 kB / 1.323 GB, free: 0.8008 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.4699, allocations: 0 / 1.323 GB, free: 0.8008 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.483e-06/0.4699, allocations: 0 / 1.323 GB, free: 0.8008 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.984e-06/0.4699, allocations: 0 / 1.323 GB, free: 0.8008 MB / 1.014 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.0006832/0.4706, allocations: 365 kB / 1.324 GB, free: 404 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.4707, allocations: 15.98 kB / 1.324 GB, free: 388 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.4708, allocations: 4.938 kB / 1.324 GB, free: 384 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001616/0.4709, allocations: 172.2 kB / 1.324 GB, free: 172 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.471, allocations: 12.38 kB / 1.324 GB, free: 160 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.649e-05/0.471, allocations: 384 / 1.324 GB, free: 160 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002215/0.4712, allocations: 66.22 kB / 1.324 GB, free: 88 kB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.4712, allocations: 192 / 1.324 GB, free: 88 kB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.467e-05/0.4712, allocations: 3.938 kB / 1.324 GB, free: 84 kB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.4712, allocations: 0 / 1.324 GB, free: 84 kB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001905/0.4714, allocations: 39.95 kB / 1.324 GB, free: 44 kB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005685/0.472, allocations: 288.8 kB / 1.324 GB, free: 15.71 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001826/0.4722, allocations: 54.48 kB / 1.324 GB, free: 15.65 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.4723, allocations: 28.97 kB / 1.324 GB, free: 15.62 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.249e-05/0.4723, allocations: 7.984 kB / 1.324 GB, free: 15.61 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002474/0.4726, allocations: 71.39 kB / 1.324 GB, free: 15.53 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.493e-06/0.4726, allocations: 3.938 kB / 1.324 GB, free: 15.52 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0004589/0.473, allocations: 121.5 kB / 1.324 GB, free: 15.4 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.581e-05/0.4731, allocations: 51.41 kB / 1.324 GB, free: 15.34 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/0.4732, allocations: 109.8 kB / 1.325 GB, free: 15.22 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.4732, allocations: 33.7 kB / 1.325 GB, free: 15.18 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.868e-05/0.4733, allocations: 80.14 kB / 1.325 GB, free: 15.1 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.871e-05/0.4733, allocations: 27.77 kB / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.635e-05/0.4733, allocations: 21.72 kB / 1.325 GB, free: 15.04 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001575/0.4735, allocations: 322.8 kB / 1.325 GB, free: 14.72 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000102/0.4736, allocations: 19.98 kB / 1.325 GB, free: 14.7 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001391/0.4737, allocations: 68.2 kB / 1.325 GB, free: 14.62 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002272/0.474, allocations: 92.12 kB / 1.325 GB, free: 14.51 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.474, allocations: 0 / 1.325 GB, free: 14.51 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002911/0.4743, allocations: 109.5 kB / 1.325 GB, free: 14.4 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.4743, allocations: 7.984 kB / 1.325 GB, free: 14.39 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.421e-06/0.4743, allocations: 0 / 1.325 GB, free: 14.39 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.4743, allocations: 7.938 kB / 1.325 GB, free: 14.38 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.4744, allocations: 20.14 kB / 1.325 GB, free: 14.36 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.4744, allocations: 0 / 1.325 GB, free: 14.36 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.185e-05/0.4745, allocations: 4 kB / 1.325 GB, free: 14.36 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.4745, allocations: 4 kB / 1.325 GB, free: 14.36 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (unitDelay1.u_internal,$PRE.unitDelay1.u_internal,unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$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): 9 * Array equations: 0 * Algorithm blocks: 0 * 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.0001131/0.4746, allocations: 121.8 kB / 1.325 GB, free: 14.23 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.742e-05/0.4746, allocations: 7.953 kB / 1.326 GB, free: 14.22 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003039/0.4749, allocations: 102 kB / 1.326 GB, free: 14.11 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.4749, allocations: 8 kB / 1.326 GB, free: 14.1 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.4749, allocations: 0 / 1.326 GB, free: 14.1 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.4749, allocations: 0 / 1.326 GB, free: 14.1 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005117/0.4755, allocations: 350.4 kB / 1.326 GB, free: 13.7 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.4755, allocations: 384 / 1.326 GB, free: 13.7 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.021e-05/0.4755, allocations: 11.98 kB / 1.326 GB, free: 13.69 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.4755, allocations: 0 / 1.326 GB, free: 13.69 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.502e-05/0.4755, allocations: 11.98 kB / 1.326 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.4756, allocations: 0 / 1.326 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.4756, allocations: 0 / 1.326 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002994/0.4759, allocations: 195.4 kB / 1.326 GB, free: 13.47 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.093e-05/0.4759, allocations: 88.98 kB / 1.326 GB, free: 13.37 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.728e-05/0.4759, allocations: 192 / 1.326 GB, free: 13.37 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.211e-05/0.476, allocations: 11.94 kB / 1.326 GB, free: 13.36 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.158e-05/0.4761, allocations: 15.92 kB / 1.326 GB, free: 13.34 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.4761, allocations: 3.938 kB / 1.326 GB, free: 13.34 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.396e-05/0.4761, allocations: 99.62 kB / 1.326 GB, free: 13.24 MB / 1.029 GB Notification: Performance of sort global known variables: time 7.1e-08/0.4761, allocations: 0 / 1.326 GB, free: 13.24 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002464/0.4764, allocations: 11.94 kB / 1.326 GB, free: 13.23 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.u_internal) * Number of discrete states: 1 (unitDelay1.u_internal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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.0001676/0.4766, allocations: 103.2 kB / 1.326 GB, free: 13.12 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002811/0.4768, allocations: 63.89 kB / 1.327 GB, free: 13.05 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4768, allocations: 0 / 1.327 GB, free: 13.05 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000115/0.477, allocations: 31.97 kB / 1.327 GB, free: 13.02 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002614/0.4772, allocations: 8 kB / 1.327 GB, free: 13.02 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003778/0.4776, allocations: 145.8 kB / 1.327 GB, free: 12.84 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/0.4779, allocations: 0.6849 MB / 1.327 GB, free: 12.13 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.205e-05/0.478, allocations: 7.984 kB / 1.327 GB, free: 12.12 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.109e-05/0.478, allocations: 11.44 kB / 1.327 GB, free: 12.11 MB / 1.029 GB Notification: Performance of SimCode: time 2.81e-07/0.478, allocations: 0 / 1.327 GB, free: 12.11 MB / 1.029 GB Notification: Performance of Templates: time 0.003877/0.4819, allocations: 0.8008 MB / 1.328 GB, free: 11.32 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.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: 9.73666538996622]