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.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.001652/0.001652, allocations: 104.5 kB / 16.45 MB, free: 6.449 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.002301/0.002301, allocations: 186.9 kB / 19.4 MB, free: 3.66 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.55/1.55, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.235/3.235, allocations: 496.1 MB / 0.7801 GB, free: 33.59 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.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: Performance of FrontEnd - loaded program: time 0.002454/0.002454, allocations: 64.3 kB / 1.133 GB, free: 34.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4478/0.4503, allocations: 173.7 MB / 1.303 GB, free: 2.617 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002157/0.4525, allocations: 0.6964 MB / 1.303 GB, free: 1.922 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001496/0.454, allocations: 1.058 MB / 1.304 GB, free: 0.8516 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.562e-05/0.454, allocations: 0 / 1.304 GB, free: 0.8516 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.681e-05/0.454, allocations: 7.922 kB / 1.304 GB, free: 0.8438 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 7.84e-05/0.4541, allocations: 11.92 kB / 1.304 GB, free: 0.832 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003246/0.4544, allocations: 43.84 kB / 1.304 GB, free: 0.7891 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001424/0.4546, allocations: 75.75 kB / 1.305 GB, free: 0.7148 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001055/0.4547, allocations: 8 kB / 1.305 GB, free: 0.707 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.662e-05/0.4548, allocations: 31.92 kB / 1.305 GB, free: 0.6758 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.981e-05/0.4549, allocations: 31.89 kB / 1.305 GB, free: 0.6445 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.833e-05/0.4549, allocations: 4 kB / 1.305 GB, free: 0.6406 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.658e-05/0.4549, allocations: 23.98 kB / 1.305 GB, free: 0.6172 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.544e-05/0.455, allocations: 15.92 kB / 1.305 GB, free: 0.6016 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.888e-05/0.455, allocations: 27.86 kB / 1.305 GB, free: 0.5742 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001677/0.4552, allocations: 75.69 kB / 1.305 GB, free: 0.5 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.371e-06/0.4552, allocations: 0 / 1.305 GB, free: 0.5 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.924e-06/0.4552, allocations: 3.938 kB / 1.305 GB, free: 0.4961 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.935e-06/0.4552, allocations: 0 / 1.305 GB, free: 0.4961 MB / 0.9981 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.0007403/0.4559, allocations: 391.2 kB / 1.305 GB, free: 64 kB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.456, allocations: 12.03 kB / 1.305 GB, free: 52 kB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.567e-05/0.456, allocations: 8.891 kB / 1.305 GB, free: 44 kB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001699/0.4562, allocations: 172.2 kB / 1.305 GB, free: 15.84 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.749e-05/0.4562, allocations: 4.375 kB / 1.305 GB, free: 15.83 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.049e-05/0.4563, allocations: 8.375 kB / 1.305 GB, free: 15.82 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000239/0.4565, allocations: 82.2 kB / 1.305 GB, free: 15.74 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.4565, allocations: 192 / 1.305 GB, free: 15.74 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.4565, allocations: 7.938 kB / 1.305 GB, free: 15.73 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.4565, allocations: 0 / 1.305 GB, free: 15.73 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002079/0.4567, allocations: 51.95 kB / 1.305 GB, free: 15.68 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005677/0.4573, allocations: 308.7 kB / 1.306 GB, free: 15.33 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002072/0.4575, allocations: 78.47 kB / 1.306 GB, free: 15.24 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001175/0.4576, allocations: 40.95 kB / 1.306 GB, free: 15.2 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.848e-05/0.4577, allocations: 3.938 kB / 1.306 GB, free: 15.2 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002275/0.4579, allocations: 95.47 kB / 1.306 GB, free: 15.09 MB / 1.014 GB Notification: Performance of pre-optimization done (n=10): time 2.014e-06/0.4579, allocations: 4 kB / 1.306 GB, free: 15.09 MB / 1.014 GB Notification: Performance of matching and sorting (n=10): time 0.0005432/0.4584, allocations: 173.5 kB / 1.306 GB, free: 14.91 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.794e-05/0.4585, allocations: 55.41 kB / 1.306 GB, free: 14.84 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.694e-05/0.4586, allocations: 105.8 kB / 1.306 GB, free: 14.73 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.4586, allocations: 33.7 kB / 1.306 GB, free: 14.69 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 5.894e-05/0.4587, allocations: 92.3 kB / 1.306 GB, free: 14.59 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.716e-05/0.4587, allocations: 23.84 kB / 1.306 GB, free: 14.57 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.823e-05/0.4588, allocations: 37.7 kB / 1.306 GB, free: 14.53 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001538/0.4589, allocations: 319.2 kB / 1.307 GB, free: 14.21 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001137/0.459, allocations: 31.98 kB / 1.307 GB, free: 14.18 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001478/0.4592, allocations: 72.83 kB / 1.307 GB, free: 14.1 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002454/0.4594, allocations: 114.3 kB / 1.307 GB, free: 13.98 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.4594, allocations: 7.938 kB / 1.307 GB, free: 13.97 MB / 1.014 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003248/0.4598, allocations: 141.5 kB / 1.307 GB, free: 13.82 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.4598, allocations: 4 kB / 1.307 GB, free: 13.82 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.4598, allocations: 0 / 1.307 GB, free: 13.82 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.4598, allocations: 8.062 kB / 1.307 GB, free: 13.81 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.4599, allocations: 23.92 kB / 1.307 GB, free: 13.79 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.817e-06/0.4599, allocations: 7.984 kB / 1.307 GB, free: 13.78 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.213e-05/0.46, allocations: 11.94 kB / 1.307 GB, free: 13.77 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.753e-05/0.46, allocations: 8 kB / 1.307 GB, free: 13.76 MB / 1.014 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.0001207/0.4601, allocations: 121.8 kB / 1.307 GB, free: 13.63 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.603e-05/0.4602, allocations: 3.953 kB / 1.307 GB, free: 13.63 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003564/0.4605, allocations: 149.9 kB / 1.307 GB, free: 13.47 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.614e-06/0.4605, allocations: 0 / 1.307 GB, free: 13.47 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.4605, allocations: 0 / 1.307 GB, free: 13.47 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.4605, allocations: 0 / 1.307 GB, free: 13.47 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005595/0.4611, allocations: 414.3 kB / 1.308 GB, free: 13.01 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.4611, allocations: 0 / 1.308 GB, free: 13.01 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.117e-05/0.4612, allocations: 15.94 kB / 1.308 GB, free: 13 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.4612, allocations: 0 / 1.308 GB, free: 13 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.327e-05/0.4612, allocations: 3.984 kB / 1.308 GB, free: 12.99 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.4612, allocations: 0 / 1.308 GB, free: 12.99 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.4612, allocations: 0 / 1.308 GB, free: 12.99 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003564/0.4615, allocations: 239.5 kB / 1.308 GB, free: 12.74 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 5.923e-05/0.4616, allocations: 85.05 kB / 1.308 GB, free: 12.64 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.178e-05/0.4616, allocations: 8.094 kB / 1.308 GB, free: 12.63 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.4617, allocations: 11.92 kB / 1.308 GB, free: 12.62 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.676e-05/0.4618, allocations: 8 kB / 1.308 GB, free: 12.61 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.4618, allocations: 11.92 kB / 1.308 GB, free: 12.6 MB / 1.014 GB Notification: Performance of sorting global known variables: time 4.879e-05/0.4618, allocations: 79.28 kB / 1.308 GB, free: 12.52 MB / 1.014 GB Notification: Performance of sort global known variables: time 7e-08/0.4618, allocations: 0 / 1.308 GB, free: 12.52 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002542/0.4621, allocations: 20 kB / 1.308 GB, free: 12.5 MB / 1.014 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.0001879/0.4623, allocations: 115.2 kB / 1.308 GB, free: 12.38 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0003167/0.4626, allocations: 91.88 kB / 1.308 GB, free: 12.29 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4626, allocations: 0 / 1.308 GB, free: 12.29 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001388/0.4627, allocations: 47.89 kB / 1.309 GB, free: 12.25 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000263/0.463, allocations: 12.19 kB / 1.309 GB, free: 12.23 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004087/0.4634, allocations: 174.6 kB / 1.309 GB, free: 12.04 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003274/0.4637, allocations: 0.6807 MB / 1.309 GB, free: 11.33 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 3.845e-05/0.4638, allocations: 12.42 kB / 1.309 GB, free: 11.32 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.499e-05/0.4638, allocations: 15.44 kB / 1.309 GB, free: 11.3 MB / 1.014 GB Notification: Performance of SimCode: time 2.6e-07/0.4638, allocations: 0 / 1.309 GB, free: 11.3 MB / 1.014 GB Notification: Performance of Templates: time 0.003993/0.4678, allocations: 1.036 MB / 1.31 GB, free: 10.28 MB / 1.014 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=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 400] 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.477594954892993]