Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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.002216/0.002216, allocations: 112.7 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.002399/0.002399, allocations: 183.6 kB / 22.22 MB, free: 5.102 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.616/1.616, allocations: 225.6 MB / 251 MB, free: 13.26 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.737/2.737, allocations: 443.4 MB / 0.7321 GB, free: 12.32 MB / 0.5919 GB " [Timeout remaining time 176] 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.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002359/0.002359, allocations: 67.89 kB / 1.061 GB, free: 3.008 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9573/0.9597, allocations: 160.8 MB / 1.218 GB, free: 3.801 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001964/0.9617, allocations: 0.6913 MB / 1.219 GB, free: 3.277 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002119/0.9638, allocations: 1.073 MB / 1.22 GB, free: 2.414 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.334e-05/0.9639, allocations: 0 / 1.22 GB, free: 2.414 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.626e-05/0.9639, allocations: 3.938 kB / 1.22 GB, free: 2.41 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.548e-05/0.964, allocations: 5.156 kB / 1.22 GB, free: 2.406 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004413/0.9644, allocations: 51.02 kB / 1.22 GB, free: 2.367 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001726/0.9646, allocations: 47.44 kB / 1.22 GB, free: 2.34 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/0.9647, allocations: 7.375 kB / 1.22 GB, free: 2.336 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001011/0.9648, allocations: 28.42 kB / 1.22 GB, free: 2.316 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.006e-05/0.9649, allocations: 26.69 kB / 1.22 GB, free: 2.297 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.405e-05/0.9649, allocations: 4.594 kB / 1.22 GB, free: 2.297 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 9.037e-05/0.965, allocations: 19.14 kB / 1.22 GB, free: 2.289 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.328e-05/0.9651, allocations: 9.203 kB / 1.22 GB, free: 2.281 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.381e-05/0.9651, allocations: 21.66 kB / 1.22 GB, free: 2.266 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.00021/0.9653, allocations: 60.78 kB / 1.22 GB, free: 2.223 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.934e-06/0.9653, allocations: 1.094 kB / 1.22 GB, free: 2.223 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.194e-06/0.9653, allocations: 0 / 1.22 GB, free: 2.223 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.113e-06/0.9653, allocations: 0 / 1.22 GB, free: 2.223 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0008238/0.9662, allocations: 369 kB / 1.221 GB, free: 1.84 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/0.9662, allocations: 9.125 kB / 1.221 GB, free: 1.84 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.819e-05/0.9663, allocations: 3.594 kB / 1.221 GB, free: 1.84 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001736/0.9664, allocations: 186.7 kB / 1.221 GB, free: 1.621 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.647e-05/0.9664, allocations: 1.719 kB / 1.221 GB, free: 1.621 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.55e-05/0.9665, allocations: 2.781 kB / 1.221 GB, free: 1.621 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002544/0.9667, allocations: 73.27 kB / 1.221 GB, free: 1.562 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.9667, allocations: 192 / 1.221 GB, free: 1.562 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.004e-05/0.9668, allocations: 5.031 kB / 1.221 GB, free: 1.559 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.9668, allocations: 1.062 kB / 1.221 GB, free: 1.559 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002111/0.967, allocations: 43.73 kB / 1.221 GB, free: 1.539 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006794/0.9677, allocations: 274.8 kB / 1.221 GB, free: 1.238 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002317/0.9679, allocations: 59.58 kB / 1.221 GB, free: 1.191 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/0.968, allocations: 30.28 kB / 1.221 GB, free: 1.172 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.771e-05/0.968, allocations: 1.062 kB / 1.221 GB, free: 1.172 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000344/0.9684, allocations: 69.72 kB / 1.222 GB, free: 1.109 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.723e-06/0.9684, allocations: 1.188 kB / 1.222 GB, free: 1.109 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0005814/0.969, allocations: 137.4 kB / 1.222 GB, free: 1.023 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.144e-05/0.9691, allocations: 56.38 kB / 1.222 GB, free: 0.957 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001615/0.9692, allocations: 109.4 kB / 1.222 GB, free: 0.8477 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.133e-05/0.9692, allocations: 26.8 kB / 1.222 GB, free: 0.8164 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 9.113e-05/0.9693, allocations: 85.27 kB / 1.222 GB, free: 0.7305 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.624e-05/0.9694, allocations: 27.22 kB / 1.222 GB, free: 0.707 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.629e-05/0.9695, allocations: 24.03 kB / 1.222 GB, free: 0.6836 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0002484/0.9697, allocations: 320.9 kB / 1.222 GB, free: 372 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.9698, allocations: 22.61 kB / 1.222 GB, free: 364 kB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001379/0.97, allocations: 62.64 kB / 1.222 GB, free: 304 kB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002414/0.9702, allocations: 98.62 kB / 1.222 GB, free: 224 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.9702, allocations: 0 / 1.222 GB, free: 224 kB / 0.92 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000334/0.9705, allocations: 114.4 kB / 1.223 GB, free: 152 kB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.9706, allocations: 6.094 kB / 1.223 GB, free: 152 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.9706, allocations: 1.344 kB / 1.223 GB, free: 152 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.283e-05/0.9706, allocations: 1.375 kB / 1.223 GB, free: 152 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.9707, allocations: 24.14 kB / 1.223 GB, free: 140 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.258e-05/0.9707, allocations: 2.625 kB / 1.223 GB, free: 140 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.324e-05/0.9708, allocations: 13.31 kB / 1.223 GB, free: 132 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.531e-05/0.9708, allocations: 3.281 kB / 1.223 GB, free: 132 kB / 0.92 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 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.000176/0.971, allocations: 130.3 kB / 1.223 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.436e-05/0.971, allocations: 2.062 kB / 1.223 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000362/0.9714, allocations: 119.1 kB / 1.223 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.9714, allocations: 4.969 kB / 1.223 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.9714, allocations: 0 / 1.223 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.9714, allocations: 0.9062 kB / 1.223 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006261/0.972, allocations: 366.8 kB / 1.223 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.972, allocations: 0 / 1.223 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.067e-05/0.9721, allocations: 15.7 kB / 1.223 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.9721, allocations: 1.031 kB / 1.223 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.9721, allocations: 1.031 kB / 1.223 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.9721, allocations: 1.062 kB / 1.223 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.9721, allocations: 0 / 1.223 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000348/0.9725, allocations: 203.8 kB / 1.223 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.639e-05/0.9726, allocations: 86.09 kB / 1.223 GB, free: 15.26 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.065e-05/0.9726, allocations: 0.9688 kB / 1.223 GB, free: 15.26 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.941e-05/0.9727, allocations: 9.859 kB / 1.224 GB, free: 15.26 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.911e-05/0.9727, allocations: 5.516 kB / 1.224 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.81e-05/0.9727, allocations: 2.625 kB / 1.224 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.298e-05/0.9728, allocations: 99.69 kB / 1.224 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of sort global known variables: time 8e-08/0.9728, allocations: 4 kB / 1.224 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002663/0.9731, allocations: 19.92 kB / 1.224 GB, free: 15.15 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0002235/0.9733, allocations: 96.78 kB / 1.224 GB, free: 15.06 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003029/0.9736, allocations: 67.61 kB / 1.224 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.9736, allocations: 0 / 1.224 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001132/0.9737, allocations: 31.5 kB / 1.224 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002641/0.974, allocations: 8.438 kB / 1.224 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004034/0.9744, allocations: 145.1 kB / 1.224 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003423/0.9748, allocations: 0.6878 MB / 1.225 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.598e-05/0.9748, allocations: 8.219 kB / 1.225 GB, free: 14.17 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.847e-05/0.9748, allocations: 10.88 kB / 1.225 GB, free: 14.16 MB / 0.9356 GB Notification: Performance of SimCode: time 5.21e-07/0.9748, allocations: 0 / 1.225 GB, free: 14.16 MB / 0.9356 GB Notification: Performance of Templates: time 0.0041/0.9789, allocations: 0.8591 MB / 1.225 GB, free: 13.73 MB / 0.9356 GB " [Timeout remaining time 299] make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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.514594844542444]