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.001388/0.001388, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.001453/0.001453, allocations: 208.8 kB / 22.99 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.495/1.495, allocations: 230.6 MB / 256.8 MB, free: 7.777 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.327/3.327, allocations: 0.49 GB / 0.7959 GB, free: 35.39 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.00276/0.00276, allocations: 60.78 kB / 1.155 GB, free: 25.1 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4246/0.4274, allocations: 176.1 MB / 1.327 GB, free: 0.9258 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002044/0.4294, allocations: 0.6611 MB / 1.328 GB, free: 276 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001534/0.431, allocations: 1.101 MB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.815e-05/0.431, allocations: 0 / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.099e-05/0.431, allocations: 3.938 kB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.862e-05/0.4311, allocations: 11.91 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003435/0.4315, allocations: 43.84 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000128/0.4316, allocations: 47.84 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.4317, allocations: 11.98 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 7.755e-05/0.4318, allocations: 23.92 kB / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 8.881e-05/0.4319, allocations: 23.86 kB / 1.329 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.928e-05/0.4319, allocations: 8 kB / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.076e-05/0.432, allocations: 23.97 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.907e-05/0.432, allocations: 11.98 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.714e-05/0.432, allocations: 15.94 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001748/0.4322, allocations: 63.72 kB / 1.329 GB, free: 14.87 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.4322, allocations: 7.984 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.224e-06/0.4322, allocations: 0 / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.803e-06/0.4322, allocations: 0 / 1.329 GB, free: 14.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.0008039/0.433, allocations: 290.2 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.977e-05/0.4331, allocations: 12.03 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001214/0.4332, allocations: 8.891 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001327/0.4333, allocations: 114.5 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.4334, allocations: 8.312 kB / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.808e-05/0.4334, allocations: 4.375 kB / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002456/0.4336, allocations: 58.23 kB / 1.33 GB, free: 14.31 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.4336, allocations: 4.172 kB / 1.33 GB, free: 14.31 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.583e-05/0.4337, allocations: 11.94 kB / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.4337, allocations: 0 / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000225/0.4339, allocations: 43.95 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005233/0.4344, allocations: 220.5 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001883/0.4346, allocations: 54.48 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001122/0.4347, allocations: 36.89 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/0.4348, allocations: 0 / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002758/0.435, allocations: 79.38 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.435, allocations: 3.938 kB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004707/0.4355, allocations: 129.6 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.864e-05/0.4356, allocations: 55.41 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000114/0.4357, allocations: 109.8 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.591e-05/0.4357, allocations: 29.7 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.37e-05/0.4358, allocations: 80.14 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.286e-05/0.4358, allocations: 23.83 kB / 1.33 GB, free: 13.36 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.84e-05/0.4358, allocations: 25.72 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001686/0.436, allocations: 318.8 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001069/0.4361, allocations: 23.98 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001301/0.4363, allocations: 56.27 kB / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002813/0.4365, allocations: 100.2 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.4365, allocations: 0 / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002912/0.4368, allocations: 125.4 kB / 1.331 GB, free: 12.67 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.4368, allocations: 4 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.4368, allocations: 0 / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.4369, allocations: 4 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/0.437, allocations: 19.92 kB / 1.331 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.437, allocations: 4.125 kB / 1.331 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.951e-05/0.4371, allocations: 15.98 kB / 1.331 GB, free: 12.62 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.4371, allocations: 0 / 1.331 GB, free: 12.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 0.0001172/0.4372, allocations: 122.3 kB / 1.331 GB, free: 12.49 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.471e-05/0.4372, allocations: 3.953 kB / 1.331 GB, free: 12.49 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003215/0.4376, allocations: 110 kB / 1.331 GB, free: 12.37 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.4376, allocations: 0 / 1.331 GB, free: 12.37 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.4376, allocations: 3.984 kB / 1.331 GB, free: 12.37 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.4376, allocations: 4 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004743/0.438, allocations: 298.2 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.438, allocations: 256 / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.975e-05/0.4381, allocations: 19.92 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.215e-06/0.4381, allocations: 0 / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.208e-05/0.4381, allocations: 4 kB / 1.332 GB, free: 12.01 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.4381, allocations: 0 / 1.332 GB, free: 12.01 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.4381, allocations: 0 / 1.332 GB, free: 12.01 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003318/0.4385, allocations: 203.4 kB / 1.332 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.524e-05/0.4385, allocations: 11.89 kB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.4385, allocations: 4.125 kB / 1.332 GB, free: 11.78 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.4386, allocations: 7.984 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.023e-05/0.4387, allocations: 15.92 kB / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.306e-05/0.4387, allocations: 0 / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.268e-05/0.4387, allocations: 87.27 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.4387, allocations: 0 / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002527/0.439, allocations: 12 kB / 1.332 GB, free: 11.66 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.0001728/0.4392, allocations: 111.2 kB / 1.332 GB, free: 11.54 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002875/0.4394, allocations: 75.81 kB / 1.332 GB, free: 11.47 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.4394, allocations: 0 / 1.332 GB, free: 11.47 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.4396, allocations: 27.98 kB / 1.332 GB, free: 11.44 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002758/0.4398, allocations: 14.91 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003872/0.4402, allocations: 138.1 kB / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.207e-05/0.4403, allocations: 67.33 kB / 1.332 GB, free: 11.19 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.339e-05/0.4403, allocations: 4 kB / 1.332 GB, free: 11.18 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.635e-05/0.4404, allocations: 15.38 kB / 1.332 GB, free: 11.17 MB / 1.029 GB Notification: Performance of SimCode: time 2.91e-07/0.4404, allocations: 0 / 1.332 GB, free: 11.17 MB / 1.029 GB Notification: Performance of Templates: time 0.004041/0.4444, allocations: 0.91 MB / 1.333 GB, free: 10.27 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 -s cvode -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.581697169007384]