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.00133/0.00133, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001488/0.001488, allocations: 214.5 kB / 22.99 MB, free: 4.945 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.492/1.492, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.202/3.202, allocations: 0.4892 GB / 0.7951 GB, free: 35.65 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.001964/0.001964, allocations: 68.52 kB / 1.154 GB, free: 25.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3679/0.3698, allocations: 176.1 MB / 1.326 GB, free: 1.914 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002278/0.3721, allocations: 0.6687 MB / 1.327 GB, free: 1.25 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001671/0.3738, allocations: 1.089 MB / 1.328 GB, free: 152 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.846e-05/0.3738, allocations: 4 kB / 1.328 GB, free: 148 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.275e-05/0.3739, allocations: 3.938 kB / 1.328 GB, free: 144 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.217e-05/0.3739, allocations: 7.922 kB / 1.328 GB, free: 136 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003418/0.3743, allocations: 51.83 kB / 1.328 GB, free: 84 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001142/0.3744, allocations: 47.8 kB / 1.328 GB, free: 36 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.3745, allocations: 15.97 kB / 1.328 GB, free: 20 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 7.513e-05/0.3746, allocations: 19.92 kB / 1.328 GB, free: 0 / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 7.661e-05/0.3746, allocations: 19.92 kB / 1.328 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.72e-05/0.3747, allocations: 4 kB / 1.328 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.074e-05/0.3747, allocations: 19.98 kB / 1.328 GB, free: 15.96 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.874e-05/0.3748, allocations: 15.97 kB / 1.328 GB, free: 15.94 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.28e-05/0.3748, allocations: 19.88 kB / 1.328 GB, free: 15.92 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001666/0.375, allocations: 63.77 kB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.375, allocations: 4 kB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.784e-06/0.375, allocations: 0 / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.124e-05/0.375, allocations: 0 / 1.328 GB, free: 15.86 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.0006377/0.3756, allocations: 294.1 kB / 1.329 GB, free: 15.54 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.479e-05/0.3757, allocations: 12.03 kB / 1.329 GB, free: 15.52 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.34e-05/0.3757, allocations: 4.891 kB / 1.329 GB, free: 15.52 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001097/0.3759, allocations: 118.5 kB / 1.329 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.3759, allocations: 8.359 kB / 1.329 GB, free: 15.37 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.255e-05/0.3759, allocations: 384 / 1.329 GB, free: 15.37 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001798/0.3761, allocations: 70.22 kB / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.3761, allocations: 192 / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.3761, allocations: 7.938 kB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.3761, allocations: 7.938 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001799/0.3763, allocations: 43.89 kB / 1.329 GB, free: 15.24 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003932/0.3767, allocations: 216.5 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001651/0.3768, allocations: 54.55 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.3769, allocations: 36.89 kB / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.55e-05/0.3769, allocations: 3.938 kB / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002288/0.3772, allocations: 79.31 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.813e-06/0.3772, allocations: 0 / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.000383/0.3776, allocations: 121.6 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.727e-05/0.3776, allocations: 55.41 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.684e-05/0.3777, allocations: 109.8 kB / 1.329 GB, free: 14.49 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/0.3777, allocations: 25.7 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4.915e-05/0.3778, allocations: 84.14 kB / 1.33 GB, free: 14.38 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.346e-05/0.3778, allocations: 31.84 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.783e-05/0.3778, allocations: 21.72 kB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000137/0.378, allocations: 318.8 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.669e-05/0.3781, allocations: 19.98 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.3782, allocations: 64.2 kB / 1.33 GB, free: 13.9 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002148/0.3784, allocations: 96.19 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.3784, allocations: 0 / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002818/0.3787, allocations: 117.6 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.3787, allocations: 12 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.166e-06/0.3787, allocations: 0 / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.3787, allocations: 4 kB / 1.33 GB, free: 13.65 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.724e-05/0.3788, allocations: 15.98 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.327e-06/0.3788, allocations: 0 / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.288e-05/0.3789, allocations: 11.94 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.228e-05/0.3789, allocations: 8 kB / 1.33 GB, free: 13.62 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 9.578e-05/0.379, allocations: 122.2 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.186e-05/0.379, allocations: 4 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002911/0.3793, allocations: 106 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.3793, allocations: 4 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.3793, allocations: 3.984 kB / 1.33 GB, free: 13.36 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.3793, allocations: 0 / 1.33 GB, free: 13.36 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004334/0.3797, allocations: 302 kB / 1.331 GB, free: 13.03 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3797, allocations: 3.938 kB / 1.331 GB, free: 13.03 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.039e-05/0.3798, allocations: 16.28 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-06/0.3798, allocations: 7.984 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.3798, allocations: 4 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.3798, allocations: 480 / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3798, allocations: 4 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003071/0.3801, allocations: 203.5 kB / 1.331 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.262e-05/0.3801, allocations: 7.891 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.635e-05/0.3802, allocations: 7.938 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.558e-05/0.3803, allocations: 7.984 kB / 1.331 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.891e-05/0.3803, allocations: 11.98 kB / 1.331 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.235e-05/0.3803, allocations: 4 kB / 1.331 GB, free: 12.74 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.531e-05/0.3804, allocations: 83.27 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3804, allocations: 0 / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002411/0.3806, allocations: 16 kB / 1.331 GB, free: 12.64 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.0001299/0.3807, allocations: 99.25 kB / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002559/0.381, allocations: 79.8 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.381, allocations: 4.25 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001117/0.3811, allocations: 27.92 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002288/0.3813, allocations: 17.86 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003128/0.3816, allocations: 162.1 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.717e-05/0.3817, allocations: 67.33 kB / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.486e-05/0.3817, allocations: 11.44 kB / 1.332 GB, free: 12.13 MB / 1.029 GB Notification: Performance of SimCode: time 3.81e-07/0.3817, allocations: 0 / 1.332 GB, free: 12.13 MB / 1.029 GB Notification: Performance of Templates: time 0.002545/0.3843, allocations: 0.9171 MB / 1.332 GB, free: 11.21 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.022678980138153]