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.00132/0.00132, allocations: 84.98 kB / 19.76 MB, free: 2.023 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.00133/0.00133, allocations: 161.3 kB / 23.01 MB, free: 4.957 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.546/1.546, allocations: 177.2 MB / 203.4 MB, free: 8.961 MB / 190.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 2.899/2.899, allocations: 377.9 MB / 0.6228 GB, free: 12.59 MB / 0.5919 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.002169/0.002169, allocations: 67.89 kB / 0.9819 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.002/1.005, allocations: 176.1 MB / 1.154 GB, free: 33.31 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001847/1.007, allocations: 0.6682 MB / 1.155 GB, free: 32.89 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001369/1.008, allocations: 1.085 MB / 1.156 GB, free: 32.11 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.786e-05/1.008, allocations: 0 / 1.156 GB, free: 32.11 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 3.191e-05/1.008, allocations: 6.531 kB / 1.156 GB, free: 32.1 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 6.879e-05/1.008, allocations: 7.938 kB / 1.156 GB, free: 32.09 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003347/1.008, allocations: 53.06 kB / 1.156 GB, free: 32.06 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0001075/1.008, allocations: 52.94 kB / 1.156 GB, free: 32.04 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/1.009, allocations: 2.844 kB / 1.156 GB, free: 32.04 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 7.553e-05/1.009, allocations: 27.27 kB / 1.156 GB, free: 32.02 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 5.692e-05/1.009, allocations: 23.05 kB / 1.156 GB, free: 32.02 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.631e-05/1.009, allocations: 2.594 kB / 1.156 GB, free: 32.02 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 7.158e-05/1.009, allocations: 17.08 kB / 1.156 GB, free: 32.02 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 2.879e-05/1.009, allocations: 18.66 kB / 1.156 GB, free: 32 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 3.792e-05/1.009, allocations: 21.09 kB / 1.156 GB, free: 31.99 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0001537/1.009, allocations: 63.28 kB / 1.156 GB, free: 31.97 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/1.009, allocations: 4 kB / 1.156 GB, free: 31.96 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.633e-06/1.009, allocations: 0 / 1.156 GB, free: 31.96 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.181e-05/1.009, allocations: 2.625 kB / 1.156 GB, free: 31.96 MB / 1.076 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.0005646/1.01, allocations: 289.8 kB / 1.156 GB, free: 31.69 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/1.01, allocations: 14.31 kB / 1.156 GB, free: 31.68 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.73e-05/1.01, allocations: 10.7 kB / 1.156 GB, free: 31.68 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.81e-05/1.01, allocations: 113.3 kB / 1.156 GB, free: 31.55 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.127e-05/1.01, allocations: 3.312 kB / 1.156 GB, free: 31.55 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.614e-05/1.01, allocations: 10.97 kB / 1.156 GB, free: 31.54 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001968/1.01, allocations: 69.67 kB / 1.156 GB, free: 31.5 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/1.01, allocations: 192 / 1.156 GB, free: 31.5 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/1.01, allocations: 3.938 kB / 1.156 GB, free: 31.49 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/1.01, allocations: 2.469 kB / 1.156 GB, free: 31.49 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001799/1.01, allocations: 36.09 kB / 1.156 GB, free: 31.49 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004108/1.011, allocations: 227.3 kB / 1.157 GB, free: 31.27 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001649/1.011, allocations: 56.84 kB / 1.157 GB, free: 31.23 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.713e-05/1.011, allocations: 31.55 kB / 1.157 GB, free: 31.21 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.876e-05/1.011, allocations: 3.062 kB / 1.157 GB, free: 31.21 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001925/1.011, allocations: 78.2 kB / 1.157 GB, free: 31.16 MB / 1.076 GB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/1.011, allocations: 0 / 1.157 GB, free: 31.16 MB / 1.076 GB Notification: Performance of matching and sorting (n=7): time 0.000414/1.012, allocations: 131.7 kB / 1.157 GB, free: 31.09 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.179e-05/1.012, allocations: 51.41 kB / 1.157 GB, free: 31.03 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.779e-05/1.012, allocations: 105.4 kB / 1.157 GB, free: 30.93 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.151e-05/1.012, allocations: 28.08 kB / 1.157 GB, free: 30.9 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 2.903e-05/1.012, allocations: 91.41 kB / 1.157 GB, free: 30.81 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 1.847e-05/1.012, allocations: 12.62 kB / 1.157 GB, free: 30.8 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.839e-05/1.012, allocations: 27.8 kB / 1.157 GB, free: 30.78 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 5.456e-05/1.012, allocations: 313.2 kB / 1.158 GB, free: 30.46 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.534e-05/1.012, allocations: 27.81 kB / 1.158 GB, free: 30.46 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001068/1.012, allocations: 65.06 kB / 1.158 GB, free: 30.41 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001915/1.012, allocations: 90.03 kB / 1.158 GB, free: 30.35 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/1.012, allocations: 0 / 1.158 GB, free: 30.35 MB / 1.076 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002416/1.012, allocations: 124.3 kB / 1.158 GB, free: 30.29 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/1.012, allocations: 5.75 kB / 1.158 GB, free: 30.29 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/1.012, allocations: 0 / 1.158 GB, free: 30.29 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/1.012, allocations: 10.72 kB / 1.158 GB, free: 30.28 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/1.013, allocations: 18.09 kB / 1.158 GB, free: 30.28 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/1.013, allocations: 2.906 kB / 1.158 GB, free: 30.28 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.611e-05/1.013, allocations: 10.36 kB / 1.158 GB, free: 30.27 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.121e-05/1.013, allocations: 5.75 kB / 1.158 GB, free: 30.27 MB / 1.076 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 6.111e-05/1.013, allocations: 124.4 kB / 1.158 GB, free: 30.14 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.229e-05/1.013, allocations: 10.83 kB / 1.158 GB, free: 30.14 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002602/1.013, allocations: 111.5 kB / 1.158 GB, free: 30.07 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/1.013, allocations: 6.875 kB / 1.158 GB, free: 30.07 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/1.013, allocations: 0 / 1.158 GB, free: 30.07 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/1.013, allocations: 0 / 1.158 GB, free: 30.07 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003345/1.013, allocations: 305.8 kB / 1.158 GB, free: 29.81 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/1.013, allocations: 0 / 1.158 GB, free: 29.81 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.039e-05/1.013, allocations: 15.11 kB / 1.158 GB, free: 29.8 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/1.013, allocations: 0 / 1.158 GB, free: 29.8 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.846e-06/1.013, allocations: 0 / 1.158 GB, free: 29.8 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/1.013, allocations: 2.844 kB / 1.158 GB, free: 29.8 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/1.013, allocations: 256 / 1.158 GB, free: 29.8 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002528/1.014, allocations: 202.1 kB / 1.159 GB, free: 29.65 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 8.637e-06/1.014, allocations: 3.953 kB / 1.159 GB, free: 29.65 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.791e-05/1.014, allocations: 6.938 kB / 1.159 GB, free: 29.64 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.611e-05/1.014, allocations: 17.02 kB / 1.159 GB, free: 29.64 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.894e-05/1.014, allocations: 7.188 kB / 1.159 GB, free: 29.63 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/1.014, allocations: 2.812 kB / 1.159 GB, free: 29.63 MB / 1.076 GB Notification: Performance of sorting global known variables: time 2.663e-05/1.014, allocations: 83.78 kB / 1.159 GB, free: 29.56 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/1.014, allocations: 0 / 1.159 GB, free: 29.56 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002506/1.014, allocations: 15.94 kB / 1.159 GB, free: 29.55 MB / 1.076 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.0001152/1.014, allocations: 101.7 kB / 1.159 GB, free: 29.47 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0002588/1.015, allocations: 76.06 kB / 1.159 GB, free: 29.45 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/1.015, allocations: 0 / 1.159 GB, free: 29.45 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001065/1.015, allocations: 29.12 kB / 1.159 GB, free: 29.44 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002707/1.015, allocations: 9.984 kB / 1.159 GB, free: 29.44 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003181/1.015, allocations: 145.9 kB / 1.159 GB, free: 29.31 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.666e-05/1.015, allocations: 69.59 kB / 1.159 GB, free: 29.24 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 3.362e-05/1.015, allocations: 8.5 kB / 1.159 GB, free: 29.23 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.453e-05/1.015, allocations: 11.22 kB / 1.159 GB, free: 29.23 MB / 1.076 GB Notification: Performance of SimCode: time 4.01e-07/1.015, allocations: 0 / 1.159 GB, free: 29.23 MB / 1.076 GB Notification: Performance of Templates: time 0.003562/1.019, allocations: 0.866 MB / 1.16 GB, free: 29.11 MB / 1.076 GB " [Timeout remaining time 299] 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 -s ida -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: 9.187295738025568]