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.001767/0.001767, allocations: 107.6 kB / 18.95 MB, free: 2.805 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.002179/0.002179, allocations: 213.1 kB / 22.24 MB, free: 5.117 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.599/1.599, 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 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.435/3.435, allocations: 0.4892 GB / 0.7943 GB, free: 35.66 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.00216/0.00216, allocations: 73.02 kB / 1.154 GB, free: 25.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4297/0.4319, allocations: 176.1 MB / 1.326 GB, free: 1.906 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002376/0.4343, allocations: 0.6748 MB / 1.326 GB, free: 1.238 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001896/0.4362, allocations: 1.101 MB / 1.327 GB, free: 128 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.23e-05/0.4362, allocations: 0 / 1.327 GB, free: 128 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.632e-05/0.4363, allocations: 3.938 kB / 1.327 GB, free: 124 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.651e-05/0.4364, allocations: 7.922 kB / 1.327 GB, free: 116 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003621/0.4367, allocations: 59.83 kB / 1.327 GB, free: 56 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001642/0.4369, allocations: 63.94 kB / 1.327 GB, free: 15.99 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001271/0.437, allocations: 15.88 kB / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 8.991e-05/0.4371, allocations: 27.92 kB / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.878e-05/0.4372, allocations: 31.83 kB / 1.327 GB, free: 15.92 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.298e-05/0.4372, allocations: 8 kB / 1.327 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.989e-05/0.4373, allocations: 19.98 kB / 1.327 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.77e-05/0.4373, allocations: 15.98 kB / 1.327 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.651e-05/0.4374, allocations: 23.88 kB / 1.328 GB, free: 15.85 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001854/0.4375, allocations: 79.73 kB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.4375, allocations: 4 kB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.553e-06/0.4375, allocations: 0 / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.282e-06/0.4376, allocations: 0 / 1.328 GB, free: 15.77 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.0007111/0.4383, allocations: 310.1 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.4383, allocations: 8.031 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.227e-05/0.4384, allocations: 12.88 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001321/0.4385, allocations: 114.4 kB / 1.328 GB, free: 15.28 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.605e-05/0.4386, allocations: 12.36 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.646e-05/0.4386, allocations: 8.375 kB / 1.328 GB, free: 15.26 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002377/0.4388, allocations: 86.16 kB / 1.328 GB, free: 15.17 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.4388, allocations: 192 / 1.328 GB, free: 15.17 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.996e-05/0.4388, allocations: 7.922 kB / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.4389, allocations: 3.984 kB / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002213/0.4391, allocations: 51.95 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000521/0.4396, allocations: 236.4 kB / 1.328 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002245/0.4398, allocations: 82.47 kB / 1.328 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/0.44, allocations: 44.77 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.44, allocations: 0 / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002444/0.4402, allocations: 95.44 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.363e-06/0.4402, allocations: 4 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0005144/0.4408, allocations: 169.6 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.195e-05/0.4408, allocations: 59.39 kB / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.858e-05/0.4409, allocations: 109.8 kB / 1.329 GB, free: 14.24 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.83e-05/0.4409, allocations: 33.81 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.911e-05/0.441, allocations: 88.31 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.28e-05/0.441, allocations: 31.77 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.616e-05/0.4411, allocations: 29.72 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001532/0.4412, allocations: 318.8 kB / 1.329 GB, free: 13.72 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.4414, allocations: 39.97 kB / 1.329 GB, free: 13.68 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001406/0.4415, allocations: 62.55 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002535/0.4418, allocations: 98.47 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.4418, allocations: 0 / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003168/0.4421, allocations: 141.5 kB / 1.33 GB, free: 13.36 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.4421, allocations: 8 kB / 1.33 GB, free: 13.35 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.4421, allocations: 4.062 kB / 1.33 GB, free: 13.35 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.899e-05/0.4421, allocations: 3.938 kB / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001382/0.4423, allocations: 23.98 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.579e-05/0.4423, allocations: 7.938 kB / 1.33 GB, free: 13.31 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.909e-05/0.4423, allocations: 11.94 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.634e-05/0.4424, allocations: 4 kB / 1.33 GB, free: 13.3 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.0001247/0.4425, allocations: 130.2 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.89e-05/0.4425, allocations: 7.984 kB / 1.33 GB, free: 13.15 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000378/0.4429, allocations: 154.2 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.4429, allocations: 0 / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.4429, allocations: 0 / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.4429, allocations: 0 / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005562/0.4435, allocations: 350 kB / 1.33 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.4435, allocations: 0 / 1.33 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.977e-05/0.4435, allocations: 12.23 kB / 1.33 GB, free: 12.6 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.4435, allocations: 0 / 1.33 GB, free: 12.6 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.648e-05/0.4435, allocations: 12 kB / 1.33 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.4435, allocations: 3.938 kB / 1.33 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.4435, allocations: 4 kB / 1.33 GB, free: 12.58 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004041/0.4439, allocations: 239.4 kB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.326e-06/0.444, allocations: 0 / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.141e-05/0.444, allocations: 7.938 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.4441, allocations: 7.984 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.092e-05/0.4441, allocations: 11.98 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.137e-05/0.4441, allocations: 8 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.912e-05/0.4442, allocations: 79.28 kB / 1.331 GB, free: 12.22 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4442, allocations: 0 / 1.331 GB, free: 12.22 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002639/0.4445, allocations: 23.98 kB / 1.331 GB, free: 12.2 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.0001565/0.4446, allocations: 111.2 kB / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003182/0.4449, allocations: 91.81 kB / 1.331 GB, free: 11.99 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4449, allocations: 0 / 1.331 GB, free: 11.99 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001512/0.4451, allocations: 60.23 kB / 1.331 GB, free: 11.93 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002744/0.4454, allocations: 18.11 kB / 1.331 GB, free: 11.91 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004044/0.4458, allocations: 154.8 kB / 1.331 GB, free: 11.74 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.856e-05/0.4458, allocations: 67.34 kB / 1.331 GB, free: 11.65 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.031e-05/0.4459, allocations: 8.422 kB / 1.331 GB, free: 11.64 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.265e-05/0.4459, allocations: 19.44 kB / 1.331 GB, free: 11.62 MB / 1.029 GB Notification: Performance of SimCode: time 2.9e-07/0.4459, allocations: 4 kB / 1.331 GB, free: 11.62 MB / 1.029 GB Notification: Performance of Templates: time 0.004068/0.45, allocations: 1.094 MB / 1.332 GB, free: 10.55 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/jenkins/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.762663435190916]