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.001845/0.001845, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.002245/0.002245, allocations: 220.8 kB / 23 MB, free: 4.914 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.508/1.508, allocations: 230.6 MB / 256.8 MB, free: 7.824 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.394/3.394, allocations: 0.5107 GB / 0.8166 GB, free: 17.84 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.002076/0.002076, allocations: 66.92 kB / 1.187 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3898/0.3918, allocations: 181.9 MB / 1.365 GB, free: 13.6 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002229/0.3941, allocations: 0.6736 MB / 1.365 GB, free: 12.92 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001817/0.3959, allocations: 1.093 MB / 1.366 GB, free: 11.81 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.205e-05/0.396, allocations: 7.938 kB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.993e-05/0.396, allocations: 3.938 kB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.058e-05/0.3961, allocations: 15.86 kB / 1.366 GB, free: 11.79 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003533/0.3964, allocations: 51.83 kB / 1.366 GB, free: 11.73 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001338/0.3965, allocations: 63.89 kB / 1.366 GB, free: 11.67 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.057e-05/0.3966, allocations: 8 kB / 1.366 GB, free: 11.66 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 8.524e-05/0.3967, allocations: 31.86 kB / 1.367 GB, free: 11.63 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.573e-05/0.3968, allocations: 27.89 kB / 1.367 GB, free: 11.61 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.597e-05/0.3968, allocations: 7.938 kB / 1.367 GB, free: 11.6 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.663e-05/0.3969, allocations: 23.98 kB / 1.367 GB, free: 11.57 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.768e-05/0.3969, allocations: 15.98 kB / 1.367 GB, free: 11.56 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.636e-05/0.397, allocations: 23.91 kB / 1.367 GB, free: 11.54 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001725/0.3971, allocations: 83.69 kB / 1.367 GB, free: 11.45 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3971, allocations: 0 / 1.367 GB, free: 11.45 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3971, allocations: 0 / 1.367 GB, free: 11.45 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.3972, allocations: 4 kB / 1.367 GB, free: 11.45 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.0006665/0.3978, allocations: 302.1 kB / 1.367 GB, free: 11.12 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.3979, allocations: 8.031 kB / 1.367 GB, free: 11.11 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.439e-05/0.3979, allocations: 12.88 kB / 1.367 GB, free: 11.1 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.3981, allocations: 110.5 kB / 1.367 GB, free: 10.97 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.928e-05/0.3981, allocations: 12.25 kB / 1.367 GB, free: 10.96 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.648e-05/0.3981, allocations: 8.375 kB / 1.367 GB, free: 10.95 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002451/0.3984, allocations: 82.2 kB / 1.367 GB, free: 10.86 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.3984, allocations: 192 / 1.367 GB, free: 10.86 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.636e-05/0.3984, allocations: 7.938 kB / 1.367 GB, free: 10.86 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.3984, allocations: 0 / 1.367 GB, free: 10.86 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002084/0.3986, allocations: 51.95 kB / 1.367 GB, free: 10.8 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005125/0.3991, allocations: 240.4 kB / 1.367 GB, free: 10.54 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002043/0.3993, allocations: 78.48 kB / 1.368 GB, free: 10.45 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001306/0.3994, allocations: 45.83 kB / 1.368 GB, free: 10.41 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.409e-05/0.3995, allocations: 0 / 1.368 GB, free: 10.41 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002749/0.3997, allocations: 95.42 kB / 1.368 GB, free: 10.3 MB / 1.061 GB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.3997, allocations: 0 / 1.368 GB, free: 10.3 MB / 1.061 GB Notification: Performance of matching and sorting (n=10): time 0.0005152/0.4003, allocations: 181.5 kB / 1.368 GB, free: 10.12 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.557e-05/0.4003, allocations: 55.41 kB / 1.368 GB, free: 10.05 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.4004, allocations: 109.8 kB / 1.368 GB, free: 9.934 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.627e-05/0.4004, allocations: 29.7 kB / 1.368 GB, free: 9.898 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.726e-05/0.4005, allocations: 88.38 kB / 1.368 GB, free: 9.805 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.879e-05/0.4005, allocations: 35.72 kB / 1.368 GB, free: 9.77 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.705e-05/0.4006, allocations: 33.81 kB / 1.368 GB, free: 9.73 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001601/0.4008, allocations: 318.8 kB / 1.369 GB, free: 9.41 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.4009, allocations: 35.97 kB / 1.369 GB, free: 9.375 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001424/0.401, allocations: 70.53 kB / 1.369 GB, free: 9.297 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002495/0.4013, allocations: 94.48 kB / 1.369 GB, free: 9.195 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.4013, allocations: 0 / 1.369 GB, free: 9.195 MB / 1.061 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003267/0.4016, allocations: 145.4 kB / 1.369 GB, free: 9.047 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.4016, allocations: 16.05 kB / 1.369 GB, free: 9.031 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.4016, allocations: 0 / 1.369 GB, free: 9.031 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.4016, allocations: 0 / 1.369 GB, free: 9.031 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.4018, allocations: 23.98 kB / 1.369 GB, free: 9.008 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.4018, allocations: 0 / 1.369 GB, free: 9.008 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.347e-05/0.4018, allocations: 15.92 kB / 1.369 GB, free: 8.992 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.4019, allocations: 7.984 kB / 1.369 GB, free: 8.984 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.0001091/0.402, allocations: 130.3 kB / 1.369 GB, free: 8.848 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.69e-05/0.402, allocations: 7.953 kB / 1.369 GB, free: 8.84 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003592/0.4023, allocations: 146.3 kB / 1.369 GB, free: 8.688 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.4024, allocations: 4 kB / 1.369 GB, free: 8.684 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.4024, allocations: 0 / 1.369 GB, free: 8.684 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.4024, allocations: 96 / 1.369 GB, free: 8.684 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005186/0.4029, allocations: 350 kB / 1.37 GB, free: 8.305 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.4029, allocations: 0 / 1.37 GB, free: 8.305 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.859e-05/0.4029, allocations: 11.98 kB / 1.37 GB, free: 8.293 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.403, allocations: 4 kB / 1.37 GB, free: 8.289 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.403, allocations: 4 kB / 1.37 GB, free: 8.285 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.403, allocations: 0 / 1.37 GB, free: 8.285 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.403, allocations: 0 / 1.37 GB, free: 8.285 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003824/0.4033, allocations: 247.3 kB / 1.37 GB, free: 8.027 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.177e-05/0.4034, allocations: 3.953 kB / 1.37 GB, free: 8.023 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.03e-05/0.4034, allocations: 4 kB / 1.37 GB, free: 8.02 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.4035, allocations: 7.984 kB / 1.37 GB, free: 8.012 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.724e-05/0.4035, allocations: 11.98 kB / 1.37 GB, free: 8 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.973e-06/0.4035, allocations: 4.25 kB / 1.37 GB, free: 7.996 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.172e-05/0.4036, allocations: 95.2 kB / 1.37 GB, free: 7.902 MB / 1.061 GB Notification: Performance of sort global known variables: time 7.1e-08/0.4036, allocations: 0 / 1.37 GB, free: 7.902 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002437/0.4038, allocations: 16 kB / 1.37 GB, free: 7.887 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.0001589/0.404, allocations: 114 kB / 1.37 GB, free: 7.77 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003111/0.4043, allocations: 95.81 kB / 1.37 GB, free: 7.676 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.4043, allocations: 0 / 1.37 GB, free: 7.676 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001417/0.4044, allocations: 48.03 kB / 1.37 GB, free: 7.629 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002611/0.4047, allocations: 13.73 kB / 1.37 GB, free: 7.617 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004056/0.4051, allocations: 188.4 kB / 1.37 GB, free: 7.402 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.04e-05/0.4052, allocations: 71.33 kB / 1.37 GB, free: 7.312 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.874e-05/0.4052, allocations: 19.38 kB / 1.37 GB, free: 7.293 MB / 1.061 GB Notification: Performance of SimCode: time 2.8e-07/0.4052, allocations: 0 / 1.37 GB, free: 7.293 MB / 1.061 GB Notification: Performance of Templates: time 0.002977/0.4082, allocations: 1.119 MB / 1.372 GB, free: 6.18 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/jenkins1/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: 11.329305219929665]