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.001472/0.001472, allocations: 114.5 kB / 18.88 MB, free: 3.062 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.001638/0.001638, allocations: 192.6 kB / 22.17 MB, free: 5.656 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.555/1.555, allocations: 225.6 MB / 250.9 MB, free: 13.28 MB / 206.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.885/2.885, allocations: 476.7 MB / 0.7645 GB, free: 10.11 MB / 0.6231 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.001965/0.001965, allocations: 68.08 kB / 1.109 GB, free: 6.586 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.129/1.131, allocations: 168.7 MB / 1.274 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002353/1.133, allocations: 0.6746 MB / 1.275 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001685/1.135, allocations: 1.069 MB / 1.276 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.884e-05/1.135, allocations: 0 / 1.276 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.036e-05/1.135, allocations: 3.938 kB / 1.276 GB, free: 2.801 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.777e-05/1.135, allocations: 11.92 kB / 1.276 GB, free: 2.789 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000335/1.135, allocations: 43.83 kB / 1.276 GB, free: 2.746 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001317/1.135, allocations: 47.8 kB / 1.276 GB, free: 2.699 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/1.135, allocations: 19.97 kB / 1.276 GB, free: 2.68 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.481e-05/1.136, allocations: 19.92 kB / 1.276 GB, free: 2.66 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.643e-05/1.136, allocations: 23.92 kB / 1.276 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.665e-05/1.136, allocations: 4 kB / 1.276 GB, free: 2.633 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.931e-05/1.136, allocations: 19.98 kB / 1.276 GB, free: 2.613 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.459e-05/1.136, allocations: 11.97 kB / 1.276 GB, free: 2.602 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.412e-05/1.136, allocations: 15.88 kB / 1.276 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000161/1.136, allocations: 62.5 kB / 1.276 GB, free: 2.527 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/1.136, allocations: 0 / 1.276 GB, free: 2.527 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.525e-06/1.136, allocations: 0 / 1.276 GB, free: 2.527 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.464e-06/1.136, allocations: 0 / 1.276 GB, free: 2.527 MB / 0.9669 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.0007768/1.137, allocations: 375.3 kB / 1.276 GB, free: 2.109 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/1.137, allocations: 8.031 kB / 1.276 GB, free: 2.102 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.448e-05/1.137, allocations: 4.938 kB / 1.276 GB, free: 2.098 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00018/1.137, allocations: 184.1 kB / 1.277 GB, free: 1.879 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.697e-05/1.137, allocations: 4.375 kB / 1.277 GB, free: 1.875 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.521e-05/1.137, allocations: 4.375 kB / 1.277 GB, free: 1.871 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002167/1.137, allocations: 74.16 kB / 1.277 GB, free: 1.793 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.016e-06/1.137, allocations: 192 / 1.277 GB, free: 1.793 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/1.137, allocations: 3.938 kB / 1.277 GB, free: 1.789 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/1.137, allocations: 4 kB / 1.277 GB, free: 1.785 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002075/1.138, allocations: 43.95 kB / 1.277 GB, free: 1.742 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005705/1.138, allocations: 272.8 kB / 1.277 GB, free: 1.426 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001837/1.138, allocations: 60.03 kB / 1.277 GB, free: 1.359 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001042/1.138, allocations: 28.97 kB / 1.277 GB, free: 1.328 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.748e-05/1.138, allocations: 4.062 kB / 1.277 GB, free: 1.324 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000236/1.139, allocations: 79.33 kB / 1.277 GB, free: 1.234 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/1.139, allocations: 4 kB / 1.277 GB, free: 1.23 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004679/1.139, allocations: 125.5 kB / 1.277 GB, free: 1.102 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.576e-05/1.139, allocations: 51.41 kB / 1.277 GB, free: 1.039 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/1.139, allocations: 109.8 kB / 1.277 GB, free: 0.9219 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.148e-05/1.139, allocations: 25.7 kB / 1.277 GB, free: 0.8906 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.883e-05/1.139, allocations: 84.14 kB / 1.277 GB, free: 0.8047 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.01e-05/1.139, allocations: 23.78 kB / 1.278 GB, free: 0.7812 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.925e-05/1.139, allocations: 29.72 kB / 1.278 GB, free: 0.7461 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001676/1.14, allocations: 314.8 kB / 1.278 GB, free: 440 kB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001025/1.14, allocations: 23.98 kB / 1.278 GB, free: 416 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/1.14, allocations: 68.2 kB / 1.278 GB, free: 332 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002329/1.14, allocations: 96.12 kB / 1.278 GB, free: 220 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/1.14, allocations: 0 / 1.278 GB, free: 220 kB / 0.9669 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003033/1.14, allocations: 121.5 kB / 1.278 GB, free: 92 kB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/1.14, allocations: 4 kB / 1.278 GB, free: 88 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/1.14, allocations: 3.938 kB / 1.278 GB, free: 84 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/1.14, allocations: 4 kB / 1.278 GB, free: 80 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00012/1.141, allocations: 15.98 kB / 1.278 GB, free: 64 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/1.141, allocations: 0 / 1.278 GB, free: 64 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.348e-05/1.141, allocations: 15.98 kB / 1.278 GB, free: 48 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-06/1.141, allocations: 0 / 1.278 GB, free: 48 kB / 0.9669 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.0001189/1.141, allocations: 127.9 kB / 1.278 GB, free: 15.91 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.368e-05/1.141, allocations: 7.891 kB / 1.278 GB, free: 15.91 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003498/1.141, allocations: 113.9 kB / 1.278 GB, free: 15.78 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/1.141, allocations: 4 kB / 1.278 GB, free: 15.78 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/1.141, allocations: 256 / 1.278 GB, free: 15.78 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/1.141, allocations: 192 / 1.278 GB, free: 15.78 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005223/1.142, allocations: 366.5 kB / 1.279 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/1.142, allocations: 7.922 kB / 1.279 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.703e-05/1.142, allocations: 11.98 kB / 1.279 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/1.142, allocations: 0 / 1.279 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.818e-06/1.142, allocations: 0 / 1.279 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/1.142, allocations: 4 kB / 1.279 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/1.142, allocations: 0 / 1.279 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003254/1.142, allocations: 203.4 kB / 1.279 GB, free: 15.12 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.94e-05/1.142, allocations: 81.05 kB / 1.279 GB, free: 15.03 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.903e-05/1.142, allocations: 3.938 kB / 1.279 GB, free: 15.02 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/1.142, allocations: 15.98 kB / 1.279 GB, free: 15.01 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.338e-05/1.142, allocations: 3.984 kB / 1.279 GB, free: 15 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.113e-05/1.142, allocations: 7.938 kB / 1.279 GB, free: 15 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.833e-05/1.142, allocations: 83.28 kB / 1.279 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/1.142, allocations: 4 kB / 1.279 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002428/1.143, allocations: 12 kB / 1.279 GB, free: 14.9 MB / 0.9825 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.0001837/1.143, allocations: 107.8 kB / 1.279 GB, free: 14.79 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002811/1.143, allocations: 63.89 kB / 1.279 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/1.143, allocations: 0 / 1.279 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001325/1.143, allocations: 36.2 kB / 1.279 GB, free: 14.69 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002968/1.144, allocations: 12 kB / 1.279 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003688/1.144, allocations: 149.9 kB / 1.28 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003892/1.144, allocations: 0.6908 MB / 1.28 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.506e-05/1.144, allocations: 7.984 kB / 1.28 GB, free: 13.78 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.736e-05/1.144, allocations: 11.44 kB / 1.28 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of SimCode: time 4.51e-07/1.144, allocations: 4 kB / 1.28 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of Templates: time 0.003869/1.148, allocations: 0.8445 MB / 1.281 GB, free: 12.93 MB / 0.9825 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 9.632419252302498]