Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001659/0.001659, 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.001998/0.001998, allocations: 212.3 kB / 22.25 MB, free: 4.859 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.799/1.799, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 3.056/3.056, allocations: 476 MB / 0.7699 GB, free: 4.734 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_11_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_11_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.00212/0.00212, allocations: 65.56 kB / 1.117 GB, free: 41.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4361/0.4382, allocations: 170 MB / 1.283 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002307/0.4405, allocations: 0.6756 MB / 1.284 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001787/0.4423, allocations: 1.094 MB / 1.285 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.442e-05/0.4423, allocations: 7.938 kB / 1.285 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.377e-05/0.4424, allocations: 3.938 kB / 1.285 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.016e-05/0.4424, allocations: 7.938 kB / 1.285 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003543/0.4428, allocations: 51.81 kB / 1.285 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001357/0.4429, allocations: 63.91 kB / 1.285 GB, free: 9.973 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.4431, allocations: 4 kB / 1.285 GB, free: 9.969 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.411e-05/0.4431, allocations: 35.84 kB / 1.285 GB, free: 9.934 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.107e-05/0.4432, allocations: 31.84 kB / 1.285 GB, free: 9.902 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.921e-05/0.4432, allocations: 4 kB / 1.285 GB, free: 9.898 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001199/0.4434, allocations: 27.92 kB / 1.285 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.108e-05/0.4434, allocations: 19.97 kB / 1.285 GB, free: 9.852 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.612e-05/0.4434, allocations: 23.86 kB / 1.285 GB, free: 9.828 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001944/0.4436, allocations: 83.69 kB / 1.285 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.4436, allocations: 0 / 1.285 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.556e-06/0.4436, allocations: 0 / 1.285 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.4436, allocations: 4 kB / 1.285 GB, free: 9.742 MB / 0.9825 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.0007407/0.4444, allocations: 314.1 kB / 1.285 GB, free: 9.402 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.4444, allocations: 8.031 kB / 1.285 GB, free: 9.395 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001224/0.4446, allocations: 12.92 kB / 1.285 GB, free: 9.383 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001334/0.4447, allocations: 110.5 kB / 1.286 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.798e-05/0.4447, allocations: 8.375 kB / 1.286 GB, free: 9.242 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.647e-05/0.4447, allocations: 4.375 kB / 1.286 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002465/0.445, allocations: 82.14 kB / 1.286 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/0.445, allocations: 192 / 1.286 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/0.445, allocations: 7.938 kB / 1.286 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.445, allocations: 0 / 1.286 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002125/0.4452, allocations: 51.95 kB / 1.286 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005503/0.4458, allocations: 248.5 kB / 1.286 GB, free: 8.82 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002121/0.446, allocations: 78.53 kB / 1.286 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000132/0.4461, allocations: 44.77 kB / 1.286 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.4461, allocations: 0 / 1.286 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002549/0.4464, allocations: 87.36 kB / 1.286 GB, free: 8.59 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.4464, allocations: 0 / 1.286 GB, free: 8.59 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0005389/0.4469, allocations: 178 kB / 1.286 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.493e-05/0.447, allocations: 63.34 kB / 1.286 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.4471, allocations: 109.9 kB / 1.286 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.39e-05/0.4471, allocations: 33.64 kB / 1.286 GB, free: 8.18 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.06e-05/0.4472, allocations: 88.33 kB / 1.287 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.873e-05/0.4473, allocations: 27.78 kB / 1.287 GB, free: 8.059 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.823e-05/0.4473, allocations: 37.7 kB / 1.287 GB, free: 8.016 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001807/0.4475, allocations: 314.8 kB / 1.287 GB, free: 7.699 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001248/0.4476, allocations: 39.97 kB / 1.287 GB, free: 7.66 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001464/0.4478, allocations: 69.06 kB / 1.287 GB, free: 7.586 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002667/0.448, allocations: 102.4 kB / 1.287 GB, free: 7.477 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.448, allocations: 0 / 1.287 GB, free: 7.477 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004109/0.4485, allocations: 149.4 kB / 1.287 GB, free: 7.324 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.4485, allocations: 8 kB / 1.287 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.4485, allocations: 0 / 1.287 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.4485, allocations: 0 / 1.287 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.4486, allocations: 19.98 kB / 1.287 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.904e-06/0.4486, allocations: 0 / 1.287 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.606e-05/0.4487, allocations: 15.98 kB / 1.287 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/0.4487, allocations: 4 kB / 1.287 GB, free: 7.277 MB / 0.9825 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.0001394/0.4489, allocations: 133.7 kB / 1.287 GB, free: 7.137 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.69e-05/0.4489, allocations: 7.953 kB / 1.287 GB, free: 7.129 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003819/0.4493, allocations: 145.9 kB / 1.288 GB, free: 6.977 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.4493, allocations: 4 kB / 1.288 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.4493, allocations: 0 / 1.288 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.4493, allocations: 0 / 1.288 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005846/0.4499, allocations: 354 kB / 1.288 GB, free: 6.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.4499, allocations: 0 / 1.288 GB, free: 6.59 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.847e-05/0.4499, allocations: 15.98 kB / 1.288 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.4499, allocations: 0 / 1.288 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.45, allocations: 0 / 1.288 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.45, allocations: 0 / 1.288 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.45, allocations: 0 / 1.288 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004111/0.4504, allocations: 247.5 kB / 1.288 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.362e-05/0.4504, allocations: 3.953 kB / 1.288 GB, free: 6.312 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.737e-05/0.4504, allocations: 8 kB / 1.288 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.4505, allocations: 11.98 kB / 1.288 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.347e-05/0.4506, allocations: 7.984 kB / 1.288 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.154e-06/0.4506, allocations: 0 / 1.288 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.52e-05/0.4506, allocations: 95.52 kB / 1.288 GB, free: 6.191 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.4506, allocations: 0 / 1.288 GB, free: 6.191 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002449/0.4509, allocations: 19.94 kB / 1.288 GB, free: 6.172 MB / 0.9825 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.0001947/0.4511, allocations: 111.6 kB / 1.288 GB, free: 6.055 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003514/0.4514, allocations: 103.8 kB / 1.289 GB, free: 5.953 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4514, allocations: 0 / 1.289 GB, free: 5.953 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002072/0.4516, allocations: 39.92 kB / 1.289 GB, free: 5.914 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.4519, allocations: 18.33 kB / 1.289 GB, free: 5.898 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004365/0.4524, allocations: 154.8 kB / 1.289 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001763/0.4525, allocations: 71.33 kB / 1.289 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.008e-05/0.4526, allocations: 8.562 kB / 1.289 GB, free: 5.621 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.914e-05/0.4526, allocations: 15.42 kB / 1.289 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of SimCode: time 3.2e-07/0.4526, allocations: 0 / 1.289 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of Templates: time 0.004632/0.4573, allocations: 1.099 MB / 1.29 GB, free: 4.535 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.994303001090884]