Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001754/0.001754, allocations: 113.9 kB / 18.94 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0022/0.0022, allocations: 188.8 kB / 22.23 MB, free: 5.105 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.65/1.65, allocations: 225.6 MB / 251 MB, free: 13.25 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo): time 2.748/2.748, allocations: 443.4 MB / 0.7321 GB, free: 12.34 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002496/0.002496, allocations: 59.89 kB / 1.061 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.079/1.082, allocations: 160.8 MB / 1.218 GB, free: 4.434 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.00273/1.085, allocations: 0.6694 MB / 1.219 GB, free: 3.77 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002036/1.087, allocations: 1.062 MB / 1.22 GB, free: 2.691 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.955e-05/1.087, allocations: 0 / 1.22 GB, free: 2.691 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.322e-05/1.087, allocations: 7.922 kB / 1.22 GB, free: 2.684 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.547e-05/1.087, allocations: 3.938 kB / 1.22 GB, free: 2.68 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003536/1.087, allocations: 39.83 kB / 1.22 GB, free: 2.641 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001325/1.087, allocations: 39.92 kB / 1.22 GB, free: 2.602 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/1.087, allocations: 12 kB / 1.22 GB, free: 2.59 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 9.006e-05/1.088, allocations: 19.91 kB / 1.22 GB, free: 2.57 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.669e-05/1.088, allocations: 23.92 kB / 1.22 GB, free: 2.547 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.747e-05/1.088, allocations: 7.938 kB / 1.22 GB, free: 2.539 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 8.344e-05/1.088, allocations: 19.98 kB / 1.22 GB, free: 2.52 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.67e-05/1.088, allocations: 15.92 kB / 1.22 GB, free: 2.504 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.047e-05/1.088, allocations: 11.94 kB / 1.22 GB, free: 2.492 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001703/1.088, allocations: 55.5 kB / 1.22 GB, free: 2.441 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/1.088, allocations: 0 / 1.22 GB, free: 2.441 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.303e-06/1.088, allocations: 0 / 1.22 GB, free: 2.441 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.54e-06/1.088, allocations: 0 / 1.22 GB, free: 2.441 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0006293/1.089, allocations: 358 kB / 1.221 GB, free: 2.043 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/1.089, allocations: 15.91 kB / 1.221 GB, free: 2.027 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.253e-05/1.089, allocations: 8.922 kB / 1.221 GB, free: 2.02 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001741/1.089, allocations: 172.3 kB / 1.221 GB, free: 1.812 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/1.089, allocations: 4.375 kB / 1.221 GB, free: 1.809 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.39e-05/1.089, allocations: 4.375 kB / 1.221 GB, free: 1.805 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002314/1.089, allocations: 66.16 kB / 1.221 GB, free: 1.734 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/1.089, allocations: 4.188 kB / 1.221 GB, free: 1.73 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/1.089, allocations: 3.938 kB / 1.221 GB, free: 1.727 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/1.089, allocations: 0 / 1.221 GB, free: 1.727 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001836/1.089, allocations: 35.95 kB / 1.221 GB, free: 1.691 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006005/1.09, allocations: 276.9 kB / 1.221 GB, free: 1.371 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000149/1.09, allocations: 50.44 kB / 1.221 GB, free: 1.312 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/1.09, allocations: 28.92 kB / 1.221 GB, free: 1.281 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.023e-05/1.09, allocations: 0 / 1.221 GB, free: 1.281 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002309/1.09, allocations: 67.39 kB / 1.221 GB, free: 1.203 MB / 0.92 GB Notification: Performance of pre-optimization done (n=5): time 1.182e-06/1.09, allocations: 0 / 1.221 GB, free: 1.203 MB / 0.92 GB Notification: Performance of matching and sorting (n=5): time 0.000407/1.091, allocations: 113.7 kB / 1.222 GB, free: 1.086 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.1e-05/1.091, allocations: 51.41 kB / 1.222 GB, free: 1.023 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001149/1.091, allocations: 113.8 kB / 1.222 GB, free: 0.9023 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/1.091, allocations: 25.7 kB / 1.222 GB, free: 0.8711 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.606e-05/1.091, allocations: 80.14 kB / 1.222 GB, free: 0.7891 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.545e-05/1.091, allocations: 15.91 kB / 1.222 GB, free: 0.7734 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.073e-05/1.091, allocations: 21.7 kB / 1.222 GB, free: 0.7461 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001614/1.091, allocations: 318.8 kB / 1.222 GB, free: 436 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.651e-05/1.091, allocations: 27.97 kB / 1.222 GB, free: 408 kB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000117/1.092, allocations: 47.78 kB / 1.222 GB, free: 348 kB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001985/1.092, allocations: 83.28 kB / 1.222 GB, free: 252 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/1.092, allocations: 0 / 1.222 GB, free: 252 kB / 0.92 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002609/1.092, allocations: 101.5 kB / 1.222 GB, free: 144 kB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/1.092, allocations: 8.125 kB / 1.222 GB, free: 136 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/1.092, allocations: 0 / 1.222 GB, free: 136 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/1.092, allocations: 4 kB / 1.222 GB, free: 132 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001239/1.092, allocations: 15.92 kB / 1.222 GB, free: 116 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/1.092, allocations: 4.156 kB / 1.222 GB, free: 112 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.849e-05/1.092, allocations: 11.94 kB / 1.222 GB, free: 100 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.329e-05/1.092, allocations: 7.969 kB / 1.222 GB, free: 92 kB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (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 (7): * Single equations (assignments): 7 * 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.000129/1.092, allocations: 129.6 kB / 1.223 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.799e-05/1.092, allocations: 7.953 kB / 1.223 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002717/1.093, allocations: 101.6 kB / 1.223 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/1.093, allocations: 0 / 1.223 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/1.093, allocations: 0 / 1.223 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/1.093, allocations: 0 / 1.223 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004808/1.093, allocations: 334.5 kB / 1.223 GB, free: 15.46 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/1.093, allocations: 0 / 1.223 GB, free: 15.46 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.349e-05/1.093, allocations: 15.92 kB / 1.223 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/1.093, allocations: 0 / 1.223 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.365e-06/1.093, allocations: 4 kB / 1.223 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/1.093, allocations: 0 / 1.223 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/1.093, allocations: 0 / 1.223 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003041/1.094, allocations: 179.6 kB / 1.223 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.496e-05/1.094, allocations: 97.05 kB / 1.223 GB, free: 15.13 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.042e-05/1.094, allocations: 4 kB / 1.223 GB, free: 15.13 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.708e-05/1.094, allocations: 4 kB / 1.223 GB, free: 15.12 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.698e-05/1.094, allocations: 3.984 kB / 1.223 GB, free: 15.12 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/1.094, allocations: 7.938 kB / 1.223 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.878e-05/1.094, allocations: 87.27 kB / 1.223 GB, free: 15.03 MB / 0.9356 GB Notification: Performance of sort global known variables: time 6.1e-08/1.094, allocations: 0 / 1.223 GB, free: 15.03 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002491/1.094, allocations: 12 kB / 1.223 GB, free: 15.02 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001959/1.094, allocations: 111.1 kB / 1.223 GB, free: 14.9 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002668/1.095, allocations: 51.95 kB / 1.224 GB, free: 14.85 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/1.095, allocations: 0 / 1.224 GB, free: 14.85 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001066/1.095, allocations: 31.91 kB / 1.224 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002585/1.095, allocations: 4 kB / 1.224 GB, free: 14.81 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003994/1.095, allocations: 138.4 kB / 1.224 GB, free: 14.65 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003668/1.096, allocations: 0.6807 MB / 1.224 GB, free: 13.94 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.221e-05/1.096, allocations: 4 kB / 1.224 GB, free: 13.94 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.911e-05/1.096, allocations: 11.44 kB / 1.224 GB, free: 13.93 MB / 0.9356 GB Notification: Performance of SimCode: time 2.91e-07/1.096, allocations: 0 / 1.224 GB, free: 13.93 MB / 0.9356 GB Notification: Performance of Templates: time 0.004007/1.1, allocations: 0.7704 MB / 1.225 GB, free: 13.16 MB / 0.9356 GB " [Timeout remaining time 299] make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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.566529234871268]