Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.002466/0.002466, allocations: 79.75 kB / 20.23 MB, free: 4.168 MB / 18.57 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.002736/0.002736, allocations: 157.4 kB / 23.55 MB, free: 0.8555 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.616/1.616, allocations: 177.1 MB / 203.9 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.024/3.024, allocations: 377.8 MB / 0.6232 GB, free: 8.543 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.246e-06/3.246e-06, allocations: 3.938 kB / 0.8108 GB, free: 2.109 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.007e-05/3.331e-05, allocations: 2.906 kB / 0.8108 GB, free: 2.105 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001961/0.001994, allocations: 0.6718 MB / 0.8115 GB, free: 1.461 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0018/0.003794, allocations: 1.097 MB / 0.8125 GB, free: 360 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.052e-05/0.003834, allocations: 1 kB / 0.8125 GB, free: 360 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 2.6e-05/0.00386, allocations: 11.92 kB / 0.8125 GB, free: 348 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 7.011e-05/0.00393, allocations: 7.922 kB / 0.8125 GB, free: 340 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003164/0.004247, allocations: 53.17 kB / 0.8126 GB, free: 288 kB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0001146/0.004361, allocations: 47.84 kB / 0.8126 GB, free: 240 kB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 8.966e-05/0.004451, allocations: 8 kB / 0.8126 GB, free: 232 kB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001055/0.004556, allocations: 29.66 kB / 0.8127 GB, free: 204 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 5.33e-05/0.00461, allocations: 19.97 kB / 0.8127 GB, free: 184 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 1.997e-05/0.00463, allocations: 4 kB / 0.8127 GB, free: 180 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 7.438e-05/0.004704, allocations: 19.98 kB / 0.8127 GB, free: 160 kB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 2.669e-05/0.004731, allocations: 19.86 kB / 0.8127 GB, free: 140 kB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 3.778e-05/0.004769, allocations: 13.33 kB / 0.8127 GB, free: 128 kB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0001714/0.00494, allocations: 71.77 kB / 0.8128 GB, free: 56 kB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.004943, allocations: 0 / 0.8128 GB, free: 56 kB / 0.7605 GB Notification: Performance of FrontEnd: time 1.022e-06/0.004944, allocations: 1.594 kB / 0.8128 GB, free: 56 kB / 0.7605 GB Notification: Performance of Transformations before backend: time 5.61e-06/0.004949, allocations: 0 / 0.8128 GB, free: 56 kB / 0.7605 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.0006819/0.005631, allocations: 392.2 kB / 0.8132 GB, free: 15.63 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.005668, allocations: 8.75 kB / 0.8132 GB, free: 15.62 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.005785, allocations: 8.891 kB / 0.8132 GB, free: 15.62 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001321/0.005917, allocations: 117.1 kB / 0.8133 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.857e-05/0.005936, allocations: 9.953 kB / 0.8133 GB, free: 15.47 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.187e-05/0.005947, allocations: 4.375 kB / 0.8133 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001824/0.00613, allocations: 58.23 kB / 0.8134 GB, free: 15.4 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.00614, allocations: 192 / 0.8134 GB, free: 15.4 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/0.006152, allocations: 1.031 kB / 0.8134 GB, free: 15.4 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.343e-06/0.006159, allocations: 8.359 kB / 0.8134 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001373/0.006297, allocations: 33.17 kB / 0.8134 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005093/0.006806, allocations: 279.7 kB / 0.8137 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001666/0.006973, allocations: 64.12 kB / 0.8138 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.268e-05/0.007045, allocations: 23.81 kB / 0.8138 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 3.14e-05/0.007077, allocations: 9.359 kB / 0.8138 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001651/0.007242, allocations: 76.98 kB / 0.8139 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=7): time 1.083e-06/0.007243, allocations: 3.938 kB / 0.8139 GB, free: 14.85 MB / 0.7761 GB Notification: Performance of matching and sorting (n=7): time 0.000387/0.00763, allocations: 115.3 kB / 0.814 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.17e-05/0.007682, allocations: 51.41 kB / 0.814 GB, free: 14.67 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.007827, allocations: 169.9 kB / 0.8142 GB, free: 14.49 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.485e-05/0.007852, allocations: 29.7 kB / 0.8142 GB, free: 14.45 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 8.861e-05/0.007941, allocations: 136.6 kB / 0.8143 GB, free: 14.32 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.967e-05/0.00797, allocations: 19.84 kB / 0.8144 GB, free: 14.3 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.683e-05/0.008027, allocations: 35.36 kB / 0.8144 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0004229/0.00845, allocations: 0.4884 MB / 0.8149 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.553e-05/0.008526, allocations: 20.8 kB / 0.8149 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.008648, allocations: 74.34 kB / 0.815 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001856/0.008833, allocations: 96.58 kB / 0.8151 GB, free: 13.53 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.008836, allocations: 0 / 0.8151 GB, free: 13.53 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002437/0.009079, allocations: 111.6 kB / 0.8152 GB, free: 13.41 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.009103, allocations: 7.938 kB / 0.8152 GB, free: 13.41 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.00911, allocations: 4 kB / 0.8152 GB, free: 13.4 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.009124, allocations: 0.5 kB / 0.8152 GB, free: 13.4 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.009237, allocations: 24.45 kB / 0.8152 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.009243, allocations: 1.906 kB / 0.8152 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.148e-05/0.009295, allocations: 4 kB / 0.8152 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/0.009307, allocations: 4 kB / 0.8152 GB, free: 13.37 MB / 0.7761 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.0001298/0.009436, allocations: 160.6 kB / 0.8154 GB, free: 13.2 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.17e-05/0.009458, allocations: 14.27 kB / 0.8154 GB, free: 13.19 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002488/0.009707, allocations: 98.03 kB / 0.8155 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.009712, allocations: 4 kB / 0.8155 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.009715, allocations: 256 / 0.8155 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.009718, allocations: 0 / 0.8155 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004616/0.01018, allocations: 357.3 kB / 0.8158 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.01018, allocations: 1.156 kB / 0.8158 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.738e-05/0.01023, allocations: 8 kB / 0.8158 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.01023, allocations: 0.5312 kB / 0.8158 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-06/0.01024, allocations: 0 / 0.8158 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.01024, allocations: 4.812 kB / 0.8158 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.01024, allocations: 0 / 0.8158 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003097/0.01055, allocations: 248.6 kB / 0.8161 GB, free: 12.42 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.193e-05/0.01056, allocations: 7.938 kB / 0.8161 GB, free: 12.41 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.621e-05/0.01058, allocations: 3.531 kB / 0.8161 GB, free: 12.41 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.823e-05/0.01067, allocations: 11.98 kB / 0.8161 GB, free: 12.4 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.261e-05/0.01071, allocations: 4 kB / 0.8161 GB, free: 12.4 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.599e-05/0.01073, allocations: 4.031 kB / 0.8161 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 8.371e-05/0.01081, allocations: 135.1 kB / 0.8162 GB, free: 12.26 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.01081, allocations: 0 / 0.8162 GB, free: 12.26 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002319/0.01104, allocations: 12 kB / 0.8162 GB, free: 12.25 MB / 0.7761 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.0001835/0.01123, allocations: 107.2 kB / 0.8163 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002312/0.01146, allocations: 69.67 kB / 0.8164 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.01146, allocations: 0 / 0.8164 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 9.984e-05/0.01156, allocations: 39.67 kB / 0.8164 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002615/0.01182, allocations: 12.92 kB / 0.8165 GB, free: 12.01 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004149/0.01224, allocations: 151.2 kB / 0.8166 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.252e-05/0.01232, allocations: 72.22 kB / 0.8167 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.289e-05/0.01235, allocations: 4 kB / 0.8167 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.666e-05/0.01239, allocations: 17.62 kB / 0.8167 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of SimCode: time 5.41e-07/0.01239, allocations: 0 / 0.8167 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of Templates: time 0.004887/0.01728, allocations: 0.8836 MB / 0.8176 GB, free: 10.88 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.206743772956543]