Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001636/0.001636, allocations: 102.3 kB / 19.7 MB, free: 2.254 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.001962/0.001962, allocations: 218 kB / 23.01 MB, free: 4.609 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.501/1.501, allocations: 230.6 MB / 256.8 MB, free: 8.047 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.148/3.148, allocations: 0.49 GB / 0.7958 GB, free: 33.48 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_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_12_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.001979/0.001979, allocations: 72.3 kB / 1.155 GB, free: 25.42 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3825/0.3845, allocations: 176.1 MB / 1.327 GB, free: 1.484 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.00194/0.3864, allocations: 0.6941 MB / 1.328 GB, free: 0.7969 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001543/0.3879, allocations: 1.124 MB / 1.329 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.699e-05/0.388, allocations: 4 kB / 1.329 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 5.056e-05/0.3881, allocations: 7.938 kB / 1.329 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.245e-05/0.3881, allocations: 11.86 kB / 1.329 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002942/0.3884, allocations: 51.89 kB / 1.329 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001202/0.3886, allocations: 67.83 kB / 1.329 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.3887, allocations: 11.98 kB / 1.329 GB, free: 15.51 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 7.38e-05/0.3887, allocations: 23.92 kB / 1.329 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.54e-05/0.3888, allocations: 43.83 kB / 1.329 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.677e-05/0.3888, allocations: 4 kB / 1.329 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.478e-05/0.3889, allocations: 23.98 kB / 1.329 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.243e-05/0.389, allocations: 23.92 kB / 1.329 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.763e-05/0.389, allocations: 23.86 kB / 1.329 GB, free: 15.37 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001661/0.3892, allocations: 79.69 kB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3892, allocations: 0 / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3892, allocations: 0 / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.3892, allocations: 0 / 1.329 GB, free: 15.29 MB / 1.029 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.0006351/0.3898, allocations: 318.1 kB / 1.33 GB, free: 14.95 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.3898, allocations: 8.031 kB / 1.33 GB, free: 14.94 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.365e-05/0.3899, allocations: 12.88 kB / 1.33 GB, free: 14.93 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001102/0.3901, allocations: 114.5 kB / 1.33 GB, free: 14.79 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.616e-05/0.3901, allocations: 8.375 kB / 1.33 GB, free: 14.78 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.593e-05/0.3901, allocations: 4.375 kB / 1.33 GB, free: 14.78 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002396/0.3903, allocations: 86.08 kB / 1.33 GB, free: 14.69 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.3903, allocations: 4.172 kB / 1.33 GB, free: 14.68 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.3904, allocations: 3.938 kB / 1.33 GB, free: 14.68 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.3904, allocations: 4 kB / 1.33 GB, free: 14.68 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002213/0.3906, allocations: 55.95 kB / 1.33 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005456/0.3911, allocations: 271.9 kB / 1.33 GB, free: 14.31 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002191/0.3914, allocations: 82.41 kB / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000123/0.3915, allocations: 44.83 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.3915, allocations: 0 / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002498/0.3918, allocations: 91.31 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.162e-06/0.3918, allocations: 0 / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0005358/0.3923, allocations: 165.8 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.598e-05/0.3923, allocations: 63.39 kB / 1.331 GB, free: 13.83 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001166/0.3925, allocations: 117.7 kB / 1.331 GB, free: 13.71 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/0.3925, allocations: 25.7 kB / 1.331 GB, free: 13.68 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.295e-05/0.3925, allocations: 88.38 kB / 1.331 GB, free: 13.58 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.46e-05/0.3926, allocations: 31.77 kB / 1.331 GB, free: 13.55 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.599e-05/0.3927, allocations: 29.72 kB / 1.331 GB, free: 13.52 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.3928, allocations: 318.8 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000125/0.3929, allocations: 43.97 kB / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/0.3931, allocations: 54.55 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002578/0.3933, allocations: 110.4 kB / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.3933, allocations: 384 / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003259/0.3937, allocations: 145.5 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.3937, allocations: 8 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.3937, allocations: 0 / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.3937, allocations: 3.938 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.3938, allocations: 19.98 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.3938, allocations: 7.984 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.254e-05/0.3939, allocations: 11.95 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.438e-05/0.3939, allocations: 8.062 kB / 1.331 GB, free: 12.77 MB / 1.029 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.0001222/0.3941, allocations: 130.2 kB / 1.332 GB, free: 12.63 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.661e-05/0.3941, allocations: 7.984 kB / 1.332 GB, free: 12.62 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004159/0.3945, allocations: 141.9 kB / 1.332 GB, free: 12.47 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.3945, allocations: 7.938 kB / 1.332 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.3945, allocations: 256 / 1.332 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.3945, allocations: 0 / 1.332 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006014/0.3951, allocations: 385.4 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.3951, allocations: 4 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.726e-05/0.3952, allocations: 7.984 kB / 1.332 GB, free: 12.03 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.3952, allocations: 4 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.3952, allocations: 0 / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.3952, allocations: 0 / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3952, allocations: 0 / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000395/0.3956, allocations: 247.3 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.007e-06/0.3956, allocations: 0 / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.223e-05/0.3956, allocations: 4 kB / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001197/0.3957, allocations: 11.98 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.081e-05/0.3958, allocations: 8.266 kB / 1.332 GB, free: 11.74 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.3958, allocations: 7.922 kB / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.52e-05/0.3959, allocations: 87.28 kB / 1.333 GB, free: 11.65 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3959, allocations: 7.938 kB / 1.333 GB, free: 11.64 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002517/0.3961, allocations: 19.98 kB / 1.333 GB, free: 11.62 MB / 1.029 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.0001668/0.3963, allocations: 111.1 kB / 1.333 GB, free: 11.5 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003133/0.3966, allocations: 95.88 kB / 1.333 GB, free: 11.41 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3966, allocations: 128 / 1.333 GB, free: 11.41 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001265/0.3967, allocations: 43.97 kB / 1.333 GB, free: 11.37 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002769/0.397, allocations: 13.33 kB / 1.333 GB, free: 11.36 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004295/0.3974, allocations: 190.8 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003689/0.3978, allocations: 0.6885 MB / 1.334 GB, free: 10.43 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.662e-05/0.3979, allocations: 11.44 kB / 1.334 GB, free: 10.41 MB / 1.029 GB Notification: Performance of SimCode: time 3.2e-07/0.3979, allocations: 4 kB / 1.334 GB, free: 10.41 MB / 1.029 GB Notification: Performance of Templates: time 0.003346/0.4012, allocations: 1.099 MB / 1.335 GB, free: 9.316 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.202588138985448]