Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001848/0.001848, allocations: 84.05 kB / 19.18 MB, free: 2.523 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.002195/0.002195, allocations: 165.2 kB / 22.46 MB, free: 5.359 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.53/1.53, allocations: 177.1 MB / 202.8 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.004/3.004, allocations: 389 MB / 0.633 GB, free: 0.9922 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.545e-06/2.545e-06, allocations: 0 / 1 GB, free: 7.309 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.171e-05/3.425e-05, allocations: 6.219 kB / 1 GB, free: 7.301 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002795/0.002829, allocations: 0.6721 MB / 1.001 GB, free: 6.633 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002808/0.005637, allocations: 1.092 MB / 1.002 GB, free: 5.527 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.00574, allocations: 4 kB / 1.002 GB, free: 5.523 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 4.955e-05/0.00579, allocations: 3.938 kB / 1.002 GB, free: 5.52 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001334/0.005923, allocations: 7.922 kB / 1.002 GB, free: 5.512 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007197/0.006643, allocations: 55.69 kB / 1.002 GB, free: 5.457 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001807/0.006824, allocations: 43.86 kB / 1.002 GB, free: 5.414 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001552/0.006979, allocations: 11.98 kB / 1.002 GB, free: 5.402 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001403/0.007119, allocations: 27.92 kB / 1.002 GB, free: 5.375 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 7.813e-05/0.007197, allocations: 23.95 kB / 1.002 GB, free: 5.352 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.67e-05/0.007224, allocations: 4 kB / 1.002 GB, free: 5.348 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001132/0.007337, allocations: 23.98 kB / 1.002 GB, free: 5.324 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.562e-05/0.007373, allocations: 7.938 kB / 1.002 GB, free: 5.316 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.193e-05/0.007435, allocations: 19.97 kB / 1.002 GB, free: 5.297 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002456/0.00768, allocations: 71.7 kB / 1.002 GB, free: 5.227 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.007686, allocations: 0 / 1.002 GB, free: 5.227 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.473e-06/0.007687, allocations: 0 / 1.002 GB, free: 5.227 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.141e-06/0.007694, allocations: 0 / 1.002 GB, free: 5.227 MB / 0.9512 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.0008329/0.008526, allocations: 294.2 kB / 1.002 GB, free: 4.906 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/0.008581, allocations: 8.031 kB / 1.002 GB, free: 4.898 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001399/0.00872, allocations: 8.891 kB / 1.002 GB, free: 4.891 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.008876, allocations: 113.7 kB / 1.003 GB, free: 4.754 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.008894, allocations: 384 / 1.003 GB, free: 4.754 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.786e-05/0.008912, allocations: 4.375 kB / 1.003 GB, free: 4.75 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002889/0.009201, allocations: 66.22 kB / 1.003 GB, free: 4.68 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.009213, allocations: 192 / 1.003 GB, free: 4.68 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.83e-05/0.009231, allocations: 4.375 kB / 1.003 GB, free: 4.676 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.009238, allocations: 4.375 kB / 1.003 GB, free: 4.672 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002916/0.009529, allocations: 51.81 kB / 1.003 GB, free: 4.621 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006072/0.01014, allocations: 220.5 kB / 1.003 GB, free: 4.375 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00024/0.01038, allocations: 54.48 kB / 1.003 GB, free: 4.312 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001416/0.01052, allocations: 24.97 kB / 1.003 GB, free: 4.285 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.133e-05/0.01055, allocations: 4 kB / 1.003 GB, free: 4.281 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003132/0.01086, allocations: 87.19 kB / 1.003 GB, free: 4.184 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.693e-06/0.01086, allocations: 0 / 1.003 GB, free: 4.184 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0006227/0.01149, allocations: 121.7 kB / 1.003 GB, free: 4.059 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.474e-05/0.01155, allocations: 55.41 kB / 1.003 GB, free: 3.992 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001525/0.0117, allocations: 113.8 kB / 1.003 GB, free: 3.871 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/0.01173, allocations: 25.7 kB / 1.003 GB, free: 3.84 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.2e-05/0.0118, allocations: 84.09 kB / 1.003 GB, free: 3.754 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.646e-05/0.01184, allocations: 23.89 kB / 1.003 GB, free: 3.73 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.587e-05/0.01191, allocations: 25.72 kB / 1.003 GB, free: 3.699 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0002026/0.01212, allocations: 318.8 kB / 1.004 GB, free: 3.379 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001577/0.01227, allocations: 23.98 kB / 1.004 GB, free: 3.355 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001427/0.01242, allocations: 60.27 kB / 1.004 GB, free: 3.281 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000312/0.01273, allocations: 96.19 kB / 1.004 GB, free: 3.172 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.01273, allocations: 0 / 1.004 GB, free: 3.172 MB / 0.9512 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004497/0.01318, allocations: 117.5 kB / 1.004 GB, free: 3.051 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/0.0132, allocations: 7.938 kB / 1.004 GB, free: 3.043 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.01322, allocations: 4 kB / 1.004 GB, free: 3.039 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.01324, allocations: 0 / 1.004 GB, free: 3.039 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001733/0.01341, allocations: 20.11 kB / 1.004 GB, free: 3.02 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.01342, allocations: 4 kB / 1.004 GB, free: 3.016 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.01355, allocations: 11.92 kB / 1.004 GB, free: 3.004 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.166e-05/0.01357, allocations: 8 kB / 1.004 GB, free: 2.996 MB / 0.9512 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.0001563/0.01373, allocations: 118.3 kB / 1.004 GB, free: 2.871 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.46e-05/0.01376, allocations: 15.92 kB / 1.004 GB, free: 2.855 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005054/0.01427, allocations: 106.1 kB / 1.004 GB, free: 2.746 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.157e-06/0.01427, allocations: 0 / 1.004 GB, free: 2.746 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.01428, allocations: 4 kB / 1.004 GB, free: 2.742 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.78e-06/0.01428, allocations: 4 kB / 1.004 GB, free: 2.738 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006843/0.01497, allocations: 298.5 kB / 1.005 GB, free: 2.41 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.01497, allocations: 0 / 1.005 GB, free: 2.41 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001008/0.01507, allocations: 15.98 kB / 1.005 GB, free: 2.395 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.01507, allocations: 0 / 1.005 GB, free: 2.395 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.01508, allocations: 0 / 1.005 GB, free: 2.395 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.01509, allocations: 192 / 1.005 GB, free: 2.395 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.01509, allocations: 3.984 kB / 1.005 GB, free: 2.391 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004579/0.01555, allocations: 215.3 kB / 1.005 GB, free: 2.164 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 1.111e-05/0.01556, allocations: 0 / 1.005 GB, free: 2.164 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.273e-05/0.01559, allocations: 7.984 kB / 1.005 GB, free: 2.156 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001686/0.01576, allocations: 8 kB / 1.005 GB, free: 2.148 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.951e-05/0.01581, allocations: 3.984 kB / 1.005 GB, free: 2.145 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.013e-05/0.01583, allocations: 4 kB / 1.005 GB, free: 2.141 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 8.154e-05/0.01591, allocations: 91.52 kB / 1.005 GB, free: 2.051 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/0.01591, allocations: 0 / 1.005 GB, free: 2.051 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004742/0.01639, allocations: 19.94 kB / 1.005 GB, free: 2.031 MB / 0.9512 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.0002166/0.0166, allocations: 103.2 kB / 1.005 GB, free: 1.918 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003099/0.01691, allocations: 71.88 kB / 1.005 GB, free: 1.848 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.01692, allocations: 0 / 1.005 GB, free: 1.848 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001728/0.01709, allocations: 35.92 kB / 1.005 GB, free: 1.812 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004694/0.01756, allocations: 12.17 kB / 1.005 GB, free: 1.801 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000507/0.01806, allocations: 144.9 kB / 1.005 GB, free: 1.633 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.123e-05/0.01815, allocations: 67.34 kB / 1.005 GB, free: 1.547 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.629e-05/0.01818, allocations: 4 kB / 1.005 GB, free: 1.543 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.048e-05/0.01822, allocations: 16.5 kB / 1.005 GB, free: 1.527 MB / 0.9512 GB Notification: Performance of SimCode: time 4.61e-07/0.01822, allocations: 0 / 1.005 GB, free: 1.527 MB / 0.9512 GB Notification: Performance of Templates: time 0.005888/0.02411, allocations: 0.854 MB / 1.006 GB, free: 0.6836 MB / 0.9512 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 8.577402625232935]