Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.001621/0.001621, allocations: 100.8 kB / 19.74 MB, free: 2.066 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.001743/0.001743, allocations: 217.2 kB / 23.04 MB, free: 4.844 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.534/1.534, allocations: 230.6 MB / 256.8 MB, free: 7.746 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.196/3.196, allocations: 0.49 GB / 0.7959 GB, free: 35.63 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.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [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.002073/0.002073, allocations: 76.83 kB / 1.155 GB, free: 25.19 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3461/0.3481, allocations: 176.1 MB / 1.327 GB, free: 0.9766 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002014/0.3502, allocations: 0.674 MB / 1.328 GB, free: 316 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001722/0.3519, allocations: 1.097 MB / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.393e-05/0.3519, allocations: 0 / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.107e-05/0.352, allocations: 3.938 kB / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.673e-05/0.352, allocations: 11.94 kB / 1.329 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003118/0.3523, allocations: 43.83 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001064/0.3524, allocations: 51.91 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.862e-05/0.3525, allocations: 8 kB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 7.799e-05/0.3526, allocations: 23.91 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 5.418e-05/0.3527, allocations: 19.91 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.635e-05/0.3527, allocations: 11.94 kB / 1.329 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.315e-05/0.3528, allocations: 19.98 kB / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.303e-05/0.3528, allocations: 7.938 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.308e-05/0.3528, allocations: 23.91 kB / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001527/0.353, allocations: 55.8 kB / 1.329 GB, free: 14.92 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.353, allocations: 3.938 kB / 1.329 GB, free: 14.92 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.004e-06/0.353, allocations: 0 / 1.329 GB, free: 14.92 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.353, allocations: 4 kB / 1.329 GB, free: 14.91 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006483/0.3536, allocations: 298.2 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.3537, allocations: 8.031 kB / 1.329 GB, free: 14.58 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.453e-05/0.3538, allocations: 8.891 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001146/0.3539, allocations: 114.4 kB / 1.33 GB, free: 14.44 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.543e-05/0.3539, allocations: 4.375 kB / 1.33 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.273e-05/0.3539, allocations: 4.375 kB / 1.33 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002132/0.3541, allocations: 74.16 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.3541, allocations: 192 / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.3542, allocations: 3.938 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.3542, allocations: 0 / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001921/0.3544, allocations: 43.95 kB / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004525/0.3548, allocations: 216.5 kB / 1.33 GB, free: 14.06 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000173/0.355, allocations: 54.48 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.3551, allocations: 36.91 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.68e-05/0.3551, allocations: 7.984 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002299/0.3553, allocations: 71.45 kB / 1.33 GB, free: 13.87 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.3553, allocations: 0 / 1.33 GB, free: 13.87 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004561/0.3558, allocations: 125.5 kB / 1.33 GB, free: 13.74 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.782e-05/0.3559, allocations: 59.39 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.356, allocations: 105.9 kB / 1.33 GB, free: 13.56 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.285e-05/0.356, allocations: 33.7 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.547e-05/0.3561, allocations: 84.12 kB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.731e-05/0.3561, allocations: 19.84 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.102e-05/0.3561, allocations: 25.7 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002734/0.3564, allocations: 314.8 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.3565, allocations: 27.97 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001294/0.3566, allocations: 60.27 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000242/0.3569, allocations: 92.2 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3569, allocations: 0 / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002991/0.3572, allocations: 121.4 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/0.3572, allocations: 11.92 kB / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.3572, allocations: 8.125 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.3572, allocations: 0 / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.3574, allocations: 19.92 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.3574, allocations: 4 kB / 1.331 GB, free: 12.69 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.852e-05/0.3574, allocations: 4 kB / 1.331 GB, free: 12.69 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/0.3575, allocations: 4 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001137/0.3576, allocations: 126.5 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.549e-05/0.3576, allocations: 7.953 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003048/0.3579, allocations: 114.4 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.3579, allocations: 48 / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.3579, allocations: 7.922 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.3579, allocations: 0 / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004621/0.3584, allocations: 306.2 kB / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3584, allocations: 0 / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.107e-05/0.3584, allocations: 15.92 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.3584, allocations: 0 / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-06/0.3584, allocations: 4 kB / 1.332 GB, free: 12.06 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.3584, allocations: 0 / 1.332 GB, free: 12.06 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3585, allocations: 0 / 1.332 GB, free: 12.06 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003363/0.3588, allocations: 203.4 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.512e-05/0.3588, allocations: 11.89 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.861e-05/0.3588, allocations: 4 kB / 1.332 GB, free: 11.83 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001048/0.3589, allocations: 12.23 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.955e-05/0.359, allocations: 3.984 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.619e-05/0.359, allocations: 8 kB / 1.332 GB, free: 11.81 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.684e-05/0.359, allocations: 87.28 kB / 1.332 GB, free: 11.72 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.359, allocations: 0 / 1.332 GB, free: 11.72 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002654/0.3593, allocations: 12 kB / 1.332 GB, free: 11.71 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001598/0.3595, allocations: 107.2 kB / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002775/0.3597, allocations: 67.83 kB / 1.332 GB, free: 11.53 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3597, allocations: 0 / 1.332 GB, free: 11.53 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001273/0.3599, allocations: 44.16 kB / 1.332 GB, free: 11.49 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002703/0.3601, allocations: 4 kB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004061/0.3605, allocations: 167.8 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.013e-05/0.3606, allocations: 67.34 kB / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.537e-05/0.3607, allocations: 15.44 kB / 1.332 GB, free: 11.19 MB / 1.029 GB Notification: Performance of SimCode: time 3.2e-07/0.3607, allocations: 0 / 1.332 GB, free: 11.19 MB / 1.029 GB Notification: Performance of Templates: time 0.002974/0.3636, allocations: 0.9296 MB / 1.333 GB, free: 10.26 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.074659633915871]