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.002039/0.002039, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.002104/0.002104, allocations: 210 kB / 22.99 MB, free: 4.984 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.545/1.545, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.413/3.413, allocations: 0.49 GB / 0.7959 GB, free: 35.34 MB / 0.6231 GB " [Timeout remaining time 176] 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.002086/0.002086, allocations: 72.69 kB / 1.155 GB, free: 25.27 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3976/0.3997, allocations: 176.1 MB / 1.327 GB, free: 1.004 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002067/0.4017, allocations: 0.6791 MB / 1.328 GB, free: 340 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0016/0.4033, allocations: 1.101 MB / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.894e-05/0.4034, allocations: 0 / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.001e-05/0.4034, allocations: 7.875 kB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.641e-05/0.4035, allocations: 7.922 kB / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003202/0.4038, allocations: 55.83 kB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001399/0.404, allocations: 63.84 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001105/0.4041, allocations: 15.97 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 7.645e-05/0.4041, allocations: 27.92 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.078e-05/0.4042, allocations: 39.84 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.066e-05/0.4042, allocations: 8 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.867e-05/0.4043, allocations: 23.97 kB / 1.329 GB, free: 14.97 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.831e-05/0.4043, allocations: 15.98 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.061e-05/0.4044, allocations: 19.88 kB / 1.329 GB, free: 14.94 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001737/0.4046, allocations: 83.61 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.4046, allocations: 4 kB / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.964e-06/0.4046, allocations: 0 / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.282e-06/0.4046, allocations: 0 / 1.329 GB, free: 14.85 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.000673/0.4052, allocations: 314.1 kB / 1.329 GB, free: 14.51 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.4053, allocations: 8.031 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.854e-05/0.4054, allocations: 4.938 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001168/0.4055, allocations: 110.5 kB / 1.33 GB, free: 14.37 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.836e-05/0.4055, allocations: 16.3 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.745e-05/0.4055, allocations: 4.375 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002299/0.4058, allocations: 78.22 kB / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.4058, allocations: 192 / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.119e-05/0.4058, allocations: 15.86 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-06/0.4058, allocations: 8 kB / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002062/0.406, allocations: 47.95 kB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005068/0.4065, allocations: 240.5 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002056/0.4067, allocations: 74.53 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001264/0.4069, allocations: 48.89 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.4069, allocations: 4 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002398/0.4071, allocations: 91.31 kB / 1.33 GB, free: 13.69 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.472e-06/0.4071, allocations: 0 / 1.33 GB, free: 13.69 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.000498/0.4076, allocations: 165.6 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.214e-05/0.4077, allocations: 63.39 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.881e-05/0.4078, allocations: 109.8 kB / 1.33 GB, free: 13.33 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.772e-05/0.4078, allocations: 33.7 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.542e-05/0.4079, allocations: 84.38 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.451e-05/0.4079, allocations: 28.27 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.586e-05/0.408, allocations: 37.66 kB / 1.331 GB, free: 13.13 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001411/0.4081, allocations: 318.8 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.4082, allocations: 43.91 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001351/0.4084, allocations: 62.48 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002498/0.4086, allocations: 98.53 kB / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.4086, allocations: 0 / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000327/0.4089, allocations: 141.5 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.409, allocations: 8 kB / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.409, allocations: 0 / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.409, allocations: 0 / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001347/0.4091, allocations: 23.92 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.4091, allocations: 7.984 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.585e-05/0.4092, allocations: 19.95 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.4092, allocations: 4 kB / 1.331 GB, free: 12.39 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.000118/0.4093, allocations: 134.2 kB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.617e-05/0.4093, allocations: 7.984 kB / 1.332 GB, free: 12.24 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003552/0.4097, allocations: 142 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.4097, allocations: 3.938 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.4097, allocations: 0 / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.4097, allocations: 4 kB / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005114/0.4102, allocations: 354 kB / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.4102, allocations: 0 / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.423e-05/0.4103, allocations: 15.97 kB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.4103, allocations: 0 / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.4103, allocations: 0 / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.4103, allocations: 256 / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.4103, allocations: 4 kB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003787/0.4107, allocations: 255.4 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.204e-06/0.4107, allocations: 0 / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.371e-05/0.4107, allocations: 8 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.4108, allocations: 7.984 kB / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.194e-05/0.4109, allocations: 7.984 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-06/0.4109, allocations: 0 / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.699e-05/0.4109, allocations: 87.28 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of sort global known variables: time 8.1e-08/0.4109, allocations: 0 / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002498/0.4112, allocations: 23.98 kB / 1.332 GB, free: 11.28 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.0001513/0.4113, allocations: 105.2 kB / 1.332 GB, free: 11.17 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003273/0.4117, allocations: 103.8 kB / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.4117, allocations: 0 / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001325/0.4118, allocations: 43.97 kB / 1.333 GB, free: 11.03 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000268/0.4121, allocations: 13.02 kB / 1.333 GB, free: 11.02 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003852/0.4124, allocations: 162.9 kB / 1.333 GB, free: 10.83 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.244e-05/0.4125, allocations: 75.19 kB / 1.333 GB, free: 10.74 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.73e-05/0.4126, allocations: 8.422 kB / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.327e-05/0.4126, allocations: 11.44 kB / 1.333 GB, free: 10.72 MB / 1.029 GB Notification: Performance of SimCode: time 3.1e-07/0.4126, allocations: 4 kB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of Templates: time 0.004115/0.4167, allocations: 1.117 MB / 1.334 GB, free: 9.617 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 -s cvode -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: 9.42702850299247]