Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001981/0.001981, allocations: 113.9 kB / 17.61 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002182/0.002182, allocations: 185.9 kB / 20.78 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.566/1.566, allocations: 225.6 MB / 249.4 MB, free: 3.312 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.961/2.961, allocations: 476.7 MB / 0.7629 GB, free: 15.25 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_11_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_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002225/0.002225, allocations: 67.89 kB / 1.107 GB, free: 4.703 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.4/1.403, allocations: 168.7 MB / 1.272 GB, free: 7.98 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002459/1.405, allocations: 0.6885 MB / 1.273 GB, free: 7.555 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001829/1.407, allocations: 1.068 MB / 1.274 GB, free: 6.773 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.985e-05/1.407, allocations: 4.844 kB / 1.274 GB, free: 6.77 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 4.182e-05/1.407, allocations: 8.859 kB / 1.274 GB, free: 6.762 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 9.332e-05/1.407, allocations: 5.656 kB / 1.274 GB, free: 6.758 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003623/1.408, allocations: 46.73 kB / 1.274 GB, free: 6.73 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001329/1.408, allocations: 54.7 kB / 1.274 GB, free: 6.703 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/1.408, allocations: 5.969 kB / 1.274 GB, free: 6.703 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.066e-05/1.408, allocations: 26.47 kB / 1.274 GB, free: 6.688 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.322e-05/1.408, allocations: 21.11 kB / 1.274 GB, free: 6.68 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.153e-05/1.408, allocations: 3.969 kB / 1.274 GB, free: 6.68 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.801e-05/1.408, allocations: 18.59 kB / 1.274 GB, free: 6.676 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.347e-05/1.408, allocations: 8.797 kB / 1.274 GB, free: 6.672 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.184e-05/1.408, allocations: 27.89 kB / 1.274 GB, free: 6.652 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001794/1.408, allocations: 59.11 kB / 1.274 GB, free: 6.633 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/1.408, allocations: 1.125 kB / 1.274 GB, free: 6.633 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.063e-06/1.408, allocations: 0 / 1.274 GB, free: 6.633 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.496e-05/1.408, allocations: 4 kB / 1.274 GB, free: 6.629 MB / 0.9981 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.0006735/1.409, allocations: 366 kB / 1.274 GB, free: 6.262 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/1.409, allocations: 9.062 kB / 1.274 GB, free: 6.262 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.157e-05/1.409, allocations: 10.73 kB / 1.274 GB, free: 6.258 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.489e-05/1.409, allocations: 174.1 kB / 1.274 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/1.409, allocations: 2.25 kB / 1.274 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.664e-05/1.409, allocations: 7.297 kB / 1.274 GB, free: 6.047 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002296/1.409, allocations: 67.38 kB / 1.275 GB, free: 6.004 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/1.409, allocations: 192 / 1.275 GB, free: 6.004 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/1.409, allocations: 7.578 kB / 1.275 GB, free: 6 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.283e-06/1.409, allocations: 1.219 kB / 1.275 GB, free: 6 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001931/1.41, allocations: 42.09 kB / 1.275 GB, free: 5.992 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004312/1.41, allocations: 282.9 kB / 1.275 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001752/1.41, allocations: 54.27 kB / 1.275 GB, free: 5.668 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001042/1.41, allocations: 33.8 kB / 1.275 GB, free: 5.652 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.996e-05/1.41, allocations: 0.6875 kB / 1.275 GB, free: 5.652 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002131/1.411, allocations: 76.8 kB / 1.275 GB, free: 5.594 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/1.411, allocations: 0.9062 kB / 1.275 GB, free: 5.594 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0004633/1.411, allocations: 126.3 kB / 1.275 GB, free: 5.539 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.944e-05/1.411, allocations: 53.16 kB / 1.275 GB, free: 5.477 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.901e-05/1.411, allocations: 104.3 kB / 1.275 GB, free: 5.375 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.287e-05/1.411, allocations: 26.77 kB / 1.275 GB, free: 5.344 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.71e-05/1.411, allocations: 90.59 kB / 1.275 GB, free: 5.254 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.05e-05/1.411, allocations: 24.69 kB / 1.275 GB, free: 5.234 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.173e-05/1.411, allocations: 21.47 kB / 1.275 GB, free: 5.215 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.881e-05/1.411, allocations: 319.7 kB / 1.276 GB, free: 4.898 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/1.411, allocations: 25.52 kB / 1.276 GB, free: 4.895 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/1.412, allocations: 69.39 kB / 1.276 GB, free: 4.836 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002034/1.412, allocations: 98.91 kB / 1.276 GB, free: 4.77 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/1.412, allocations: 5.156 kB / 1.276 GB, free: 4.766 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002764/1.412, allocations: 113.8 kB / 1.276 GB, free: 4.711 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/1.412, allocations: 9.469 kB / 1.276 GB, free: 4.707 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/1.412, allocations: 5.469 kB / 1.276 GB, free: 4.703 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/1.412, allocations: 2.031 kB / 1.276 GB, free: 4.703 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/1.412, allocations: 19.05 kB / 1.276 GB, free: 4.699 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.228e-06/1.412, allocations: 3.156 kB / 1.276 GB, free: 4.699 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.902e-05/1.412, allocations: 9.047 kB / 1.276 GB, free: 4.699 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.19e-05/1.412, allocations: 6.562 kB / 1.276 GB, free: 4.695 MB / 0.9981 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.977e-05/1.412, allocations: 120 kB / 1.276 GB, free: 4.574 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.276e-05/1.412, allocations: 10.61 kB / 1.276 GB, free: 4.566 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003044/1.413, allocations: 110.2 kB / 1.276 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/1.413, allocations: 0.7188 kB / 1.276 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/1.413, allocations: 0.7812 kB / 1.276 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/1.413, allocations: 0 / 1.276 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004125/1.413, allocations: 362.5 kB / 1.277 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/1.413, allocations: 0.8125 kB / 1.277 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.992e-05/1.413, allocations: 11.3 kB / 1.277 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/1.413, allocations: 0.8906 kB / 1.277 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.28e-05/1.413, allocations: 4.766 kB / 1.277 GB, free: 4.168 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/1.413, allocations: 0.8125 kB / 1.277 GB, free: 4.168 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/1.413, allocations: 1.781 kB / 1.277 GB, free: 4.168 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002806/1.414, allocations: 205.5 kB / 1.277 GB, free: 4.008 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.689e-05/1.414, allocations: 84.39 kB / 1.277 GB, free: 3.91 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.862e-05/1.414, allocations: 4.781 kB / 1.277 GB, free: 3.906 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.432e-05/1.414, allocations: 8.891 kB / 1.277 GB, free: 3.906 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.317e-05/1.414, allocations: 4.25 kB / 1.277 GB, free: 3.906 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/1.414, allocations: 11.17 kB / 1.277 GB, free: 3.898 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.045e-05/1.414, allocations: 86.42 kB / 1.277 GB, free: 3.82 MB / 0.9981 GB Notification: Performance of sort global known variables: time 6e-08/1.414, allocations: 0.6562 kB / 1.277 GB, free: 3.82 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002503/1.414, allocations: 15.25 kB / 1.277 GB, free: 3.816 MB / 0.9981 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.0001564/1.414, allocations: 100.8 kB / 1.277 GB, free: 3.73 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002843/1.414, allocations: 69.75 kB / 1.277 GB, free: 3.715 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/1.414, allocations: 1.031 kB / 1.277 GB, free: 3.715 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001156/1.415, allocations: 36.69 kB / 1.277 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002808/1.415, allocations: 14.48 kB / 1.277 GB, free: 3.695 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003767/1.415, allocations: 159.7 kB / 1.277 GB, free: 3.559 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001478/1.415, allocations: 0.6878 MB / 1.278 GB, free: 2.859 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.774e-05/1.415, allocations: 8.562 kB / 1.278 GB, free: 2.855 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.94e-05/1.415, allocations: 15.67 kB / 1.278 GB, free: 2.848 MB / 0.9981 GB Notification: Performance of SimCode: time 3.81e-07/1.415, allocations: 0 / 1.278 GB, free: 2.848 MB / 0.9981 GB Notification: Performance of Templates: time 0.004029/1.419, allocations: 0.833 MB / 1.279 GB, free: 2.766 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 10.307171383872628]