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.00225/0.00225, allocations: 85.48 kB / 19.44 MB, free: 344 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.002045/0.002045, allocations: 173.2 kB / 22.76 MB, free: 1.66 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.609/1.609, allocations: 177.1 MB / 203.1 MB, free: 5.617 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.416/3.416, allocations: 429.5 MB / 0.6729 GB, free: 4.02 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.284e-06/2.284e-06, allocations: 0 / 0.8774 GB, free: 6.684 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.635e-05/2.863e-05, allocations: 2.312 kB / 0.8774 GB, free: 6.68 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001889/0.001918, allocations: 0.676 MB / 0.8781 GB, free: 6.031 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001702/0.003619, allocations: 1.1 MB / 0.8792 GB, free: 4.922 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.041e-05/0.00366, allocations: 0 / 0.8792 GB, free: 4.922 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.556e-05/0.003685, allocations: 5.281 kB / 0.8792 GB, free: 4.918 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 7.11e-05/0.003756, allocations: 10.11 kB / 0.8792 GB, free: 4.91 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.000285/0.004041, allocations: 51.7 kB / 0.8792 GB, free: 4.859 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001158/0.004157, allocations: 48.64 kB / 0.8793 GB, free: 4.812 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 8.142e-05/0.004239, allocations: 11.97 kB / 0.8793 GB, free: 4.801 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 9.276e-05/0.004331, allocations: 32.58 kB / 0.8793 GB, free: 4.77 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 5.359e-05/0.004385, allocations: 21.56 kB / 0.8793 GB, free: 4.75 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.04e-05/0.004405, allocations: 4 kB / 0.8793 GB, free: 4.746 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 8.72e-05/0.004493, allocations: 23.91 kB / 0.8794 GB, free: 4.723 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.18e-05/0.004514, allocations: 4 kB / 0.8794 GB, free: 4.719 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.505e-05/0.004549, allocations: 19.92 kB / 0.8794 GB, free: 4.699 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001679/0.004717, allocations: 70.05 kB / 0.8795 GB, free: 4.633 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.004722, allocations: 4 kB / 0.8795 GB, free: 4.629 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.92e-07/0.004723, allocations: 0 / 0.8795 GB, free: 4.629 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.004727, allocations: 0 / 0.8795 GB, free: 4.629 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.0006559/0.005383, allocations: 390.4 kB / 0.8798 GB, free: 4.211 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.005428, allocations: 8.031 kB / 0.8798 GB, free: 4.203 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001148/0.005543, allocations: 16.89 kB / 0.8799 GB, free: 4.188 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001349/0.005678, allocations: 120.5 kB / 0.88 GB, free: 4.043 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/0.005692, allocations: 4.312 kB / 0.88 GB, free: 4.039 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.343e-05/0.005705, allocations: 4.375 kB / 0.88 GB, free: 4.035 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001859/0.005891, allocations: 62.94 kB / 0.88 GB, free: 3.969 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.699e-06/0.005901, allocations: 1.844 kB / 0.88 GB, free: 3.969 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/0.005913, allocations: 4.359 kB / 0.88 GB, free: 3.965 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.005917, allocations: 384 / 0.88 GB, free: 3.965 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001507/0.006068, allocations: 35.92 kB / 0.8801 GB, free: 3.93 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004929/0.006561, allocations: 273.1 kB / 0.8803 GB, free: 3.629 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001694/0.00673, allocations: 58.98 kB / 0.8804 GB, free: 3.559 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.429e-05/0.006814, allocations: 31.8 kB / 0.8804 GB, free: 3.523 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.347e-05/0.006838, allocations: 0 / 0.8804 GB, free: 3.523 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001727/0.007011, allocations: 84.97 kB / 0.8805 GB, free: 3.426 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.007012, allocations: 0 / 0.8805 GB, free: 3.426 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0003895/0.007401, allocations: 113.6 kB / 0.8806 GB, free: 3.309 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.304e-05/0.007454, allocations: 55.41 kB / 0.8807 GB, free: 3.242 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001471/0.007601, allocations: 169.9 kB / 0.8808 GB, free: 3.059 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.481e-05/0.007626, allocations: 25.7 kB / 0.8809 GB, free: 3.027 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.347e-05/0.00772, allocations: 134.9 kB / 0.881 GB, free: 2.891 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.042e-05/0.00775, allocations: 23.8 kB / 0.881 GB, free: 2.867 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.532e-05/0.007815, allocations: 35.36 kB / 0.881 GB, free: 2.824 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0005116/0.008327, allocations: 496.1 kB / 0.8815 GB, free: 2.328 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.933e-05/0.008406, allocations: 28.17 kB / 0.8815 GB, free: 2.301 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001274/0.008534, allocations: 70.42 kB / 0.8816 GB, free: 2.211 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002103/0.008744, allocations: 102.3 kB / 0.8817 GB, free: 2.09 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.008746, allocations: 4 kB / 0.8817 GB, free: 2.086 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002593/0.009006, allocations: 101.6 kB / 0.8818 GB, free: 1.98 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.009025, allocations: 11.94 kB / 0.8818 GB, free: 1.969 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.00903, allocations: 0 / 0.8818 GB, free: 1.969 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.009046, allocations: 4 kB / 0.8818 GB, free: 1.965 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.009148, allocations: 11.94 kB / 0.8818 GB, free: 1.953 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.00916, allocations: 7.984 kB / 0.8818 GB, free: 1.945 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.172e-05/0.009231, allocations: 7.953 kB / 0.8818 GB, free: 1.938 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.009244, allocations: 8.125 kB / 0.8819 GB, free: 1.93 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.0001309/0.009375, allocations: 162.9 kB / 0.882 GB, free: 1.762 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.287e-05/0.009398, allocations: 11.94 kB / 0.882 GB, free: 1.75 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002692/0.009667, allocations: 98.02 kB / 0.8821 GB, free: 1.645 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.00967, allocations: 0 / 0.8821 GB, free: 1.645 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.009673, allocations: 0 / 0.8821 GB, free: 1.645 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.009676, allocations: 0 / 0.8821 GB, free: 1.645 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005003/0.01018, allocations: 357.3 kB / 0.8825 GB, free: 1.254 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.01018, allocations: 0 / 0.8825 GB, free: 1.254 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.46e-05/0.01023, allocations: 12 kB / 0.8825 GB, free: 1.242 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.01023, allocations: 0 / 0.8825 GB, free: 1.242 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.01025, allocations: 4 kB / 0.8825 GB, free: 1.238 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.01025, allocations: 0 / 0.8825 GB, free: 1.238 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.01025, allocations: 0 / 0.8825 GB, free: 1.238 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003298/0.01058, allocations: 244.3 kB / 0.8827 GB, free: 0.9805 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.33e-05/0.01059, allocations: 7.891 kB / 0.8827 GB, free: 0.9727 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.86e-05/0.01061, allocations: 8.047 kB / 0.8827 GB, free: 0.9648 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.043e-05/0.0107, allocations: 11.97 kB / 0.8827 GB, free: 0.9531 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.913e-05/0.01074, allocations: 0 / 0.8827 GB, free: 0.9531 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-05/0.01076, allocations: 11.94 kB / 0.8827 GB, free: 0.9414 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.931e-05/0.01084, allocations: 135.2 kB / 0.8829 GB, free: 0.8086 MB / 0.8386 GB Notification: Performance of sort global known variables: time 8e-08/0.01084, allocations: 0 / 0.8829 GB, free: 0.8086 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002539/0.0111, allocations: 15.94 kB / 0.8829 GB, free: 0.793 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.0001762/0.01127, allocations: 107.2 kB / 0.883 GB, free: 0.6797 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002546/0.01153, allocations: 75.64 kB / 0.8831 GB, free: 0.6016 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.01153, allocations: 0 / 0.8831 GB, free: 0.6016 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000107/0.01164, allocations: 35.92 kB / 0.8831 GB, free: 0.5625 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002629/0.0119, allocations: 12.81 kB / 0.8831 GB, free: 0.5508 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004025/0.0123, allocations: 150.1 kB / 0.8832 GB, free: 384 kB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.7e-05/0.01238, allocations: 67.34 kB / 0.8833 GB, free: 296 kB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.537e-05/0.01242, allocations: 7.984 kB / 0.8833 GB, free: 288 kB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.257e-05/0.01245, allocations: 12.5 kB / 0.8833 GB, free: 276 kB / 0.8386 GB Notification: Performance of SimCode: time 5.61e-07/0.01245, allocations: 0 / 0.8833 GB, free: 276 kB / 0.8386 GB Notification: Performance of Templates: time 0.004246/0.0167, allocations: 0.8862 MB / 0.8842 GB, free: 15.41 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 240] 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.567669147974811]