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.001607/0.001607, allocations: 102.1 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.001959/0.001959, allocations: 215.2 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.468/1.468, allocations: 230.6 MB / 256.8 MB, free: 8.051 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.144/3.144, allocations: 0.49 GB / 0.7958 GB, free: 33.42 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.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.00197/0.00197, allocations: 68.16 kB / 1.155 GB, free: 25.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3888/0.3907, allocations: 176.1 MB / 1.327 GB, free: 1.496 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002042/0.3928, allocations: 0.6865 MB / 1.328 GB, free: 0.8164 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001669/0.3945, allocations: 1.128 MB / 1.329 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.381e-05/0.3945, allocations: 0 / 1.329 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.797e-05/0.3946, allocations: 3.938 kB / 1.329 GB, free: 15.67 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.003e-05/0.3946, allocations: 7.938 kB / 1.329 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003303/0.395, allocations: 47.83 kB / 1.329 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000121/0.3951, allocations: 47.91 kB / 1.329 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.3952, allocations: 4 kB / 1.329 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 8.421e-05/0.3953, allocations: 31.86 kB / 1.329 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 5.907e-05/0.3953, allocations: 19.91 kB / 1.329 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.37e-05/0.3953, allocations: 4 kB / 1.329 GB, free: 15.51 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.858e-05/0.3954, allocations: 23.98 kB / 1.329 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.842e-05/0.3955, allocations: 15.92 kB / 1.329 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.39e-05/0.3955, allocations: 15.92 kB / 1.329 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001385/0.3956, allocations: 71.72 kB / 1.329 GB, free: 15.39 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.3956, allocations: 0 / 1.329 GB, free: 15.39 MB / 1.029 GB Notification: Performance of FrontEnd: time 9.92e-07/0.3956, allocations: 0 / 1.329 GB, free: 15.39 MB / 1.029 GB Notification: Performance of Transformations before backend: time 3.376e-06/0.3956, allocations: 0 / 1.329 GB, free: 15.39 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.0005236/0.3962, allocations: 294.2 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 2.296e-05/0.3962, allocations: 8.031 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.027e-05/0.3963, allocations: 8.891 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000102/0.3964, allocations: 114.4 kB / 1.33 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.574e-06/0.3964, allocations: 8.375 kB / 1.33 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.668e-06/0.3964, allocations: 4.375 kB / 1.33 GB, free: 14.9 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001849/0.3966, allocations: 70.14 kB / 1.33 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.535e-06/0.3966, allocations: 192 / 1.33 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.3966, allocations: 7.938 kB / 1.33 GB, free: 14.82 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.234e-06/0.3966, allocations: 0 / 1.33 GB, free: 14.82 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001733/0.3968, allocations: 43.95 kB / 1.33 GB, free: 14.78 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004029/0.3972, allocations: 251.9 kB / 1.33 GB, free: 14.49 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001558/0.3973, allocations: 58.48 kB / 1.33 GB, free: 14.42 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.256e-05/0.3974, allocations: 28.97 kB / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.062e-05/0.3974, allocations: 0 / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002155/0.3977, allocations: 75.38 kB / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.3977, allocations: 0 / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0003958/0.3981, allocations: 133.6 kB / 1.33 GB, free: 14.17 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.881e-05/0.3981, allocations: 51.41 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.415e-05/0.3982, allocations: 113.8 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.98e-05/0.3982, allocations: 33.7 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.666e-05/0.3983, allocations: 88.12 kB / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.416e-05/0.3983, allocations: 19.84 kB / 1.331 GB, free: 13.84 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.013e-05/0.3984, allocations: 17.72 kB / 1.331 GB, free: 13.81 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001571/0.3985, allocations: 322.8 kB / 1.331 GB, free: 13.49 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.3986, allocations: 23.97 kB / 1.331 GB, free: 13.46 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001216/0.3987, allocations: 64.27 kB / 1.331 GB, free: 13.39 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002164/0.399, allocations: 92.08 kB / 1.331 GB, free: 13.28 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.399, allocations: 4 kB / 1.331 GB, free: 13.28 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002758/0.3992, allocations: 117.5 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.3993, allocations: 5.875 kB / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.3993, allocations: 4 kB / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/0.3993, allocations: 0 / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001187/0.3994, allocations: 27.91 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.3994, allocations: 4.125 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.828e-05/0.3995, allocations: 8 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.3995, allocations: 4 kB / 1.331 GB, free: 13.11 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.0001239/0.3996, allocations: 122.3 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.375e-05/0.3996, allocations: 3.953 kB / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003174/0.3999, allocations: 113.9 kB / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.4, allocations: 0 / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.365e-06/0.4, allocations: 4 kB / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.4, allocations: 192 / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004674/0.4004, allocations: 325.9 kB / 1.332 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.4004, allocations: 7.938 kB / 1.332 GB, free: 12.47 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.237e-05/0.4005, allocations: 11.98 kB / 1.332 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.4005, allocations: 4 kB / 1.332 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-06/0.4005, allocations: 0 / 1.332 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.4005, allocations: 0 / 1.332 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.4005, allocations: 4 kB / 1.332 GB, free: 12.45 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003107/0.4008, allocations: 207.4 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.256e-05/0.4008, allocations: 11.89 kB / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.386e-05/0.4008, allocations: 3.938 kB / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.634e-05/0.4009, allocations: 7.984 kB / 1.332 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.58e-05/0.401, allocations: 11.98 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.656e-05/0.401, allocations: 8.188 kB / 1.332 GB, free: 12.19 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.293e-05/0.4011, allocations: 87.22 kB / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.4011, allocations: 0 / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002404/0.4013, allocations: 19.98 kB / 1.332 GB, free: 12.09 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.0001378/0.4014, allocations: 99.25 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002571/0.4017, allocations: 72.02 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.172e-06/0.4017, allocations: 0 / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001074/0.4018, allocations: 27.97 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002474/0.4021, allocations: 15.98 kB / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000333/0.4024, allocations: 163.8 kB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003517/0.4027, allocations: 0.6884 MB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.215e-05/0.4028, allocations: 15.56 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of SimCode: time 3.31e-07/0.4028, allocations: 0 / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of Templates: time 0.002596/0.4054, allocations: 0.9074 MB / 1.334 GB, free: 10.04 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.434234271990135]