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.001436/0.001436, allocations: 88.72 kB / 19.44 MB, free: 356 kB / 13.93 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.001575/0.001575, allocations: 157.6 kB / 22.75 MB, free: 1.684 MB / 18.57 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.508/1.508, allocations: 177.1 MB / 203.1 MB, free: 5.598 MB / 186.7 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.326/3.326, allocations: 429.6 MB / 0.673 GB, free: 3.891 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/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.625e-06/2.625e-06, allocations: 0 / 0.8776 GB, free: 6.52 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.337e-05/3.6e-05, allocations: 4.531 kB / 0.8776 GB, free: 6.516 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002097/0.002133, allocations: 0.672 MB / 0.8782 GB, free: 5.867 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002068/0.004201, allocations: 1.099 MB / 0.8793 GB, free: 4.758 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.522e-05/0.004266, allocations: 0 / 0.8793 GB, free: 4.758 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.191e-05/0.004298, allocations: 5 kB / 0.8793 GB, free: 4.754 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.907e-05/0.004367, allocations: 7.875 kB / 0.8793 GB, free: 4.746 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003393/0.004706, allocations: 48.42 kB / 0.8794 GB, free: 4.699 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001334/0.00484, allocations: 51.84 kB / 0.8794 GB, free: 4.648 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.349e-05/0.004933, allocations: 4.75 kB / 0.8794 GB, free: 4.645 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001151/0.005048, allocations: 39.83 kB / 0.8795 GB, free: 4.605 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 6.143e-05/0.00511, allocations: 15.42 kB / 0.8795 GB, free: 4.594 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.301e-05/0.005133, allocations: 8 kB / 0.8795 GB, free: 4.586 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 8.628e-05/0.005219, allocations: 19.98 kB / 0.8795 GB, free: 4.566 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.282e-05/0.005252, allocations: 15.91 kB / 0.8795 GB, free: 4.551 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.66e-05/0.005298, allocations: 12 kB / 0.8795 GB, free: 4.539 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001962/0.005494, allocations: 67.77 kB / 0.8796 GB, free: 4.473 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.005498, allocations: 0 / 0.8796 GB, free: 4.473 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.122e-06/0.005499, allocations: 0 / 0.8796 GB, free: 4.473 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.51e-06/0.005505, allocations: 0 / 0.8796 GB, free: 4.473 MB / 0.8386 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.0006937/0.006199, allocations: 295.9 kB / 0.8799 GB, free: 4.152 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.006239, allocations: 8.031 kB / 0.8799 GB, free: 4.145 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.006362, allocations: 12.89 kB / 0.8799 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001364/0.006499, allocations: 118.2 kB / 0.88 GB, free: 3.992 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.357e-05/0.006512, allocations: 5.906 kB / 0.88 GB, free: 3.988 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.499e-05/0.006527, allocations: 4.375 kB / 0.88 GB, free: 3.984 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000242/0.006769, allocations: 66.2 kB / 0.8801 GB, free: 3.914 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.667e-06/0.006778, allocations: 4.188 kB / 0.8801 GB, free: 3.91 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.238e-05/0.00679, allocations: 4.375 kB / 0.8801 GB, free: 3.906 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.006795, allocations: 384 / 0.8801 GB, free: 3.906 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002223/0.007017, allocations: 47.89 kB / 0.8801 GB, free: 3.859 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000546/0.007563, allocations: 212.5 kB / 0.8803 GB, free: 3.621 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001975/0.007761, allocations: 54.55 kB / 0.8804 GB, free: 3.559 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001213/0.007882, allocations: 32.95 kB / 0.8804 GB, free: 3.523 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.614e-05/0.007908, allocations: 4 kB / 0.8804 GB, free: 3.52 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003058/0.008214, allocations: 83.31 kB / 0.8805 GB, free: 3.426 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.482e-06/0.008215, allocations: 0 / 0.8805 GB, free: 3.426 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0005065/0.008722, allocations: 133.6 kB / 0.8806 GB, free: 3.289 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.262e-05/0.008774, allocations: 51.41 kB / 0.8807 GB, free: 3.227 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.008901, allocations: 105.8 kB / 0.8808 GB, free: 3.113 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.875e-05/0.00893, allocations: 29.7 kB / 0.8808 GB, free: 3.078 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.059e-05/0.009011, allocations: 88.14 kB / 0.8809 GB, free: 2.988 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.394e-05/0.009045, allocations: 19.8 kB / 0.8809 GB, free: 2.969 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.672e-05/0.009111, allocations: 25.7 kB / 0.8809 GB, free: 2.938 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001955/0.009307, allocations: 322.8 kB / 0.8812 GB, free: 2.613 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.009423, allocations: 23.97 kB / 0.8813 GB, free: 2.59 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001509/0.009574, allocations: 64.45 kB / 0.8813 GB, free: 2.512 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002611/0.009835, allocations: 100.2 kB / 0.8814 GB, free: 2.398 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.009837, allocations: 0 / 0.8814 GB, free: 2.398 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003436/0.01018, allocations: 117.5 kB / 0.8815 GB, free: 2.277 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.0102, allocations: 7.938 kB / 0.8815 GB, free: 2.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.01021, allocations: 0 / 0.8815 GB, free: 2.27 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.01023, allocations: 8.125 kB / 0.8815 GB, free: 2.262 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.01035, allocations: 15.98 kB / 0.8816 GB, free: 2.246 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.01036, allocations: 4 kB / 0.8816 GB, free: 2.242 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.703e-05/0.01045, allocations: 15.94 kB / 0.8816 GB, free: 2.227 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.291e-05/0.01046, allocations: 4 kB / 0.8816 GB, free: 2.223 MB / 0.8386 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.0001261/0.01059, allocations: 120.3 kB / 0.8817 GB, free: 2.098 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.35e-05/0.01061, allocations: 7.938 kB / 0.8817 GB, free: 2.09 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003449/0.01096, allocations: 106.1 kB / 0.8818 GB, free: 1.977 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.01096, allocations: 48 / 0.8818 GB, free: 1.977 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.298e-06/0.01097, allocations: 7.984 kB / 0.8818 GB, free: 1.969 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.01097, allocations: 0 / 0.8818 GB, free: 1.969 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005215/0.0115, allocations: 310.4 kB / 0.8821 GB, free: 1.629 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.0115, allocations: 0 / 0.8821 GB, free: 1.629 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.123e-05/0.01157, allocations: 11.98 kB / 0.8821 GB, free: 1.617 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.01157, allocations: 0 / 0.8821 GB, free: 1.617 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.01158, allocations: 0 / 0.8821 GB, free: 1.617 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.01158, allocations: 4 kB / 0.8821 GB, free: 1.613 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.01159, allocations: 0 / 0.8821 GB, free: 1.613 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003854/0.01197, allocations: 211.4 kB / 0.8823 GB, free: 1.391 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.659e-05/0.01199, allocations: 11.89 kB / 0.8823 GB, free: 1.379 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.89e-05/0.01201, allocations: 0 / 0.8823 GB, free: 1.379 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.01211, allocations: 7.984 kB / 0.8823 GB, free: 1.371 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.284e-05/0.01217, allocations: 11.98 kB / 0.8824 GB, free: 1.359 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/0.01218, allocations: 0 / 0.8824 GB, free: 1.359 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.198e-05/0.01224, allocations: 83.28 kB / 0.8824 GB, free: 1.277 MB / 0.8386 GB Notification: Performance of sort global known variables: time 8.1e-08/0.01224, allocations: 7.938 kB / 0.8824 GB, free: 1.27 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000266/0.01251, allocations: 15.98 kB / 0.8825 GB, free: 1.254 MB / 0.8386 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.0001929/0.0127, allocations: 99.25 kB / 0.8826 GB, free: 1.148 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003146/0.01301, allocations: 71.88 kB / 0.8826 GB, free: 1.078 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.01302, allocations: 0 / 0.8826 GB, free: 1.078 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001242/0.01314, allocations: 28.23 kB / 0.8826 GB, free: 1.051 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000294/0.01343, allocations: 24.23 kB / 0.8827 GB, free: 1.027 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004237/0.01386, allocations: 140.4 kB / 0.8828 GB, free: 0.8633 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.474e-05/0.01394, allocations: 71.33 kB / 0.8829 GB, free: 0.7734 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.662e-05/0.01398, allocations: 4 kB / 0.8829 GB, free: 0.7695 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.592e-05/0.01402, allocations: 12.5 kB / 0.8829 GB, free: 0.7578 MB / 0.8386 GB Notification: Performance of SimCode: time 4.1e-07/0.01402, allocations: 0 / 0.8829 GB, free: 0.7578 MB / 0.8386 GB Notification: Performance of Templates: time 0.004081/0.0181, allocations: 0.8831 MB / 0.8838 GB, free: 15.9 MB / 0.8542 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.33861860993784]