Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.00164/0.00164, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001669/0.001669, allocations: 211.3 kB / 22.24 MB, free: 4.855 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.549/1.549, allocations: 230.6 MB / 256 MB, free: 8.062 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.544/3.544, allocations: 0.5107 GB / 0.8158 GB, free: 17.9 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.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [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.002109/0.002109, allocations: 67.8 kB / 1.186 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4658/0.4679, allocations: 181.9 MB / 1.364 GB, free: 13.69 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002048/0.47, allocations: 0.6736 MB / 1.364 GB, free: 13.01 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001548/0.4715, allocations: 1.108 MB / 1.366 GB, free: 11.89 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.673e-05/0.4716, allocations: 0 / 1.366 GB, free: 11.89 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.181e-05/0.4716, allocations: 3.938 kB / 1.366 GB, free: 11.88 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 9.132e-05/0.4717, allocations: 19.84 kB / 1.366 GB, free: 11.86 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000303/0.472, allocations: 43.84 kB / 1.366 GB, free: 11.82 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001197/0.4721, allocations: 75.81 kB / 1.366 GB, free: 11.75 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.484e-05/0.4722, allocations: 4 kB / 1.366 GB, free: 11.74 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 8.1e-05/0.4723, allocations: 27.92 kB / 1.366 GB, free: 11.71 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.407e-05/0.4724, allocations: 31.89 kB / 1.366 GB, free: 11.68 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.096e-05/0.4724, allocations: 8 kB / 1.366 GB, free: 11.68 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.428e-05/0.4725, allocations: 27.92 kB / 1.366 GB, free: 11.65 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.881e-05/0.4725, allocations: 19.92 kB / 1.366 GB, free: 11.63 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.056e-05/0.4726, allocations: 23.91 kB / 1.366 GB, free: 11.61 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.000179/0.4727, allocations: 75.69 kB / 1.366 GB, free: 11.53 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.4727, allocations: 4 kB / 1.366 GB, free: 11.53 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.913e-06/0.4727, allocations: 0 / 1.366 GB, free: 11.53 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.781e-06/0.4727, allocations: 0 / 1.366 GB, free: 11.53 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.000682/0.4734, allocations: 306.1 kB / 1.366 GB, free: 11.2 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.4735, allocations: 12.03 kB / 1.366 GB, free: 11.18 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.894e-05/0.4736, allocations: 8.891 kB / 1.366 GB, free: 11.18 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001097/0.4737, allocations: 110.5 kB / 1.366 GB, free: 11.04 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.833e-05/0.4737, allocations: 8.375 kB / 1.366 GB, free: 11.04 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.535e-05/0.4737, allocations: 4.375 kB / 1.366 GB, free: 11.03 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002339/0.474, allocations: 86.09 kB / 1.366 GB, free: 10.94 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.474, allocations: 4.172 kB / 1.366 GB, free: 10.94 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.474, allocations: 3.938 kB / 1.366 GB, free: 10.93 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.474, allocations: 0 / 1.366 GB, free: 10.93 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002038/0.4742, allocations: 55.95 kB / 1.366 GB, free: 10.88 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004828/0.4747, allocations: 240.4 kB / 1.367 GB, free: 10.61 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002045/0.4749, allocations: 78.47 kB / 1.367 GB, free: 10.53 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001418/0.475, allocations: 45.83 kB / 1.367 GB, free: 10.48 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.656e-05/0.4751, allocations: 0 / 1.367 GB, free: 10.48 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002399/0.4753, allocations: 91.36 kB / 1.367 GB, free: 10.38 MB / 1.061 GB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.4753, allocations: 0 / 1.367 GB, free: 10.38 MB / 1.061 GB Notification: Performance of matching and sorting (n=10): time 0.0005523/0.4758, allocations: 173.6 kB / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.308e-05/0.4759, allocations: 67.33 kB / 1.367 GB, free: 10.12 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001278/0.476, allocations: 105.8 kB / 1.367 GB, free: 10.01 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.059e-05/0.4761, allocations: 33.7 kB / 1.367 GB, free: 9.973 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.402e-05/0.4762, allocations: 80.38 kB / 1.367 GB, free: 9.887 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.513e-05/0.4762, allocations: 35.72 kB / 1.367 GB, free: 9.852 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.245e-05/0.4763, allocations: 37.72 kB / 1.367 GB, free: 9.809 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0002036/0.4765, allocations: 318.8 kB / 1.368 GB, free: 9.488 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001226/0.4766, allocations: 39.97 kB / 1.368 GB, free: 9.449 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001447/0.4767, allocations: 60.66 kB / 1.368 GB, free: 9.383 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002709/0.477, allocations: 106.5 kB / 1.368 GB, free: 9.27 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.477, allocations: 0 / 1.368 GB, free: 9.27 MB / 1.061 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003666/0.4774, allocations: 145.5 kB / 1.368 GB, free: 9.121 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.597e-05/0.4774, allocations: 8 kB / 1.368 GB, free: 9.113 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.4774, allocations: 256 / 1.368 GB, free: 9.113 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.222e-05/0.4774, allocations: 0 / 1.368 GB, free: 9.113 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001753/0.4776, allocations: 27.97 kB / 1.368 GB, free: 9.086 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.4776, allocations: 3.984 kB / 1.368 GB, free: 9.082 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.583e-05/0.4777, allocations: 12 kB / 1.368 GB, free: 9.07 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.423e-05/0.4777, allocations: 4.062 kB / 1.368 GB, free: 9.066 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001324/0.4778, allocations: 133.6 kB / 1.368 GB, free: 8.926 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.286e-05/0.4779, allocations: 11.95 kB / 1.368 GB, free: 8.914 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003741/0.4782, allocations: 145.9 kB / 1.368 GB, free: 8.762 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.4782, allocations: 0 / 1.368 GB, free: 8.762 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.4783, allocations: 0 / 1.368 GB, free: 8.762 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.4783, allocations: 0 / 1.368 GB, free: 8.762 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006201/0.4789, allocations: 354.5 kB / 1.369 GB, free: 8.379 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.4789, allocations: 7.922 kB / 1.369 GB, free: 8.371 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.912e-05/0.4789, allocations: 11.98 kB / 1.369 GB, free: 8.359 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.479, allocations: 0 / 1.369 GB, free: 8.359 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.479, allocations: 0 / 1.369 GB, free: 8.359 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.479, allocations: 0 / 1.369 GB, free: 8.359 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.479, allocations: 0 / 1.369 GB, free: 8.359 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004168/0.4794, allocations: 247.3 kB / 1.369 GB, free: 8.102 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.445e-05/0.4794, allocations: 3.953 kB / 1.369 GB, free: 8.098 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.583e-05/0.4794, allocations: 12 kB / 1.369 GB, free: 8.086 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.4795, allocations: 7.984 kB / 1.369 GB, free: 8.078 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.467e-05/0.4796, allocations: 7.984 kB / 1.369 GB, free: 8.07 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.775e-06/0.4796, allocations: 0 / 1.369 GB, free: 8.07 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.953e-05/0.4796, allocations: 87.28 kB / 1.369 GB, free: 7.984 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.4796, allocations: 0 / 1.369 GB, free: 7.984 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000259/0.4799, allocations: 23.98 kB / 1.369 GB, free: 7.961 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0002033/0.4801, allocations: 109 kB / 1.369 GB, free: 7.848 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003452/0.4805, allocations: 103.8 kB / 1.369 GB, free: 7.746 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4805, allocations: 0 / 1.369 GB, free: 7.746 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001336/0.4806, allocations: 43.91 kB / 1.369 GB, free: 7.703 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002884/0.4809, allocations: 17.02 kB / 1.369 GB, free: 7.688 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00047/0.4813, allocations: 155.2 kB / 1.37 GB, free: 7.512 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.149e-05/0.4814, allocations: 75.45 kB / 1.37 GB, free: 7.418 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.948e-05/0.4815, allocations: 4.438 kB / 1.37 GB, free: 7.414 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.473e-05/0.4815, allocations: 11.44 kB / 1.37 GB, free: 7.402 MB / 1.061 GB Notification: Performance of SimCode: time 3.1e-07/0.4815, allocations: 3.938 kB / 1.37 GB, free: 7.398 MB / 1.061 GB Notification: Performance of Templates: time 0.004604/0.4861, allocations: 1.109 MB / 1.371 GB, free: 6.309 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.906447211280465]