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.001433/0.001433, allocations: 80.41 kB / 20.23 MB, free: 4.203 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.001546/0.001546, allocations: 161.7 kB / 23.55 MB, free: 0.8906 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.489/1.489, allocations: 177.1 MB / 203.9 MB, free: 5.582 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 2.973/2.973, allocations: 377.8 MB / 0.6232 GB, free: 8.531 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 2.394e-06/2.394e-06, allocations: 0 / 0.8108 GB, free: 2.102 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.749e-05/2.989e-05, allocations: 2.812 kB / 0.8108 GB, free: 2.098 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001951/0.001981, allocations: 0.6703 MB / 0.8114 GB, free: 1.445 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001773/0.003754, allocations: 1.09 MB / 0.8125 GB, free: 352 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.136e-05/0.003805, allocations: 4 kB / 0.8125 GB, free: 348 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 3.57e-05/0.003841, allocations: 9.516 kB / 0.8125 GB, free: 340 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 7.515e-05/0.003916, allocations: 11.86 kB / 0.8125 GB, free: 328 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003436/0.00426, allocations: 47.77 kB / 0.8126 GB, free: 280 kB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0001398/0.004399, allocations: 55.78 kB / 0.8126 GB, free: 224 kB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.004509, allocations: 5 kB / 0.8126 GB, free: 220 kB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.004627, allocations: 31.89 kB / 0.8127 GB, free: 188 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 5.466e-05/0.004681, allocations: 16.8 kB / 0.8127 GB, free: 172 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 2.019e-05/0.004702, allocations: 4 kB / 0.8127 GB, free: 168 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 8.143e-05/0.004783, allocations: 19.98 kB / 0.8127 GB, free: 148 kB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 3.097e-05/0.004814, allocations: 21.56 kB / 0.8127 GB, free: 128 kB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 4.025e-05/0.004854, allocations: 8 kB / 0.8127 GB, free: 120 kB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0001842/0.005039, allocations: 71.77 kB / 0.8128 GB, free: 48 kB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.005041, allocations: 0 / 0.8128 GB, free: 48 kB / 0.7605 GB Notification: Performance of FrontEnd: time 7.01e-07/0.005042, allocations: 1.562 kB / 0.8128 GB, free: 48 kB / 0.7605 GB Notification: Performance of Transformations before backend: time 4.488e-06/0.005047, allocations: 0 / 0.8128 GB, free: 48 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.0007448/0.005791, allocations: 295.9 kB / 0.8131 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.005839, allocations: 8.031 kB / 0.8131 GB, free: 15.72 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001465/0.005986, allocations: 8.891 kB / 0.8131 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001416/0.006127, allocations: 113.7 kB / 0.8132 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/0.006148, allocations: 8.375 kB / 0.8132 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.308e-05/0.006161, allocations: 1.594 kB / 0.8132 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002593/0.00642, allocations: 70.2 kB / 0.8133 GB, free: 15.49 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.006431, allocations: 2.688 kB / 0.8133 GB, free: 15.49 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.006444, allocations: 384 / 0.8133 GB, free: 15.49 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.006452, allocations: 4.375 kB / 0.8133 GB, free: 15.49 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002209/0.006673, allocations: 47.89 kB / 0.8133 GB, free: 15.44 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005327/0.007205, allocations: 216.5 kB / 0.8135 GB, free: 15.2 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002/0.007405, allocations: 51.8 kB / 0.8136 GB, free: 15.14 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.00753, allocations: 38.61 kB / 0.8136 GB, free: 15.1 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.764e-05/0.007558, allocations: 0 / 0.8136 GB, free: 15.1 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002505/0.007808, allocations: 79.31 kB / 0.8137 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/0.007809, allocations: 0.6562 kB / 0.8137 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of matching and sorting (n=7): time 0.0005277/0.008337, allocations: 130.7 kB / 0.8138 GB, free: 14.88 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.613e-05/0.008393, allocations: 56.56 kB / 0.8139 GB, free: 14.81 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000111/0.008504, allocations: 105.8 kB / 0.814 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.466e-05/0.008529, allocations: 29.7 kB / 0.814 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 6.676e-05/0.008596, allocations: 89.47 kB / 0.8141 GB, free: 14.57 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.843e-05/0.008624, allocations: 19.84 kB / 0.8141 GB, free: 14.55 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.699e-05/0.008681, allocations: 25.7 kB / 0.8141 GB, free: 14.52 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001667/0.008848, allocations: 318.8 kB / 0.8145 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.008964, allocations: 29.12 kB / 0.8145 GB, free: 14.18 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001569/0.009121, allocations: 64.89 kB / 0.8145 GB, free: 14.1 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004782/0.009599, allocations: 95.59 kB / 0.8146 GB, free: 13.99 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.009602, allocations: 256 / 0.8146 GB, free: 13.99 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003442/0.009946, allocations: 122.2 kB / 0.8147 GB, free: 13.87 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.009965, allocations: 12.97 kB / 0.8148 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.009975, allocations: 4 kB / 0.8148 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.118e-05/0.009996, allocations: 4 kB / 0.8148 GB, free: 13.85 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.01013, allocations: 15.98 kB / 0.8148 GB, free: 13.84 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.01013, allocations: 0 / 0.8148 GB, free: 13.84 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.867e-05/0.01021, allocations: 8 kB / 0.8148 GB, free: 13.83 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.513e-05/0.01023, allocations: 9.938 kB / 0.8148 GB, free: 13.82 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.0001177/0.01034, allocations: 125.8 kB / 0.8149 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.382e-05/0.01037, allocations: 11.89 kB / 0.8149 GB, free: 13.68 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003274/0.0107, allocations: 102.6 kB / 0.815 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.584e-06/0.0107, allocations: 0.5 kB / 0.815 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.0107, allocations: 1.875 kB / 0.815 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.01071, allocations: 0 / 0.815 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005266/0.01123, allocations: 306.1 kB / 0.8153 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.01123, allocations: 4 kB / 0.8153 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.63e-05/0.0113, allocations: 8.703 kB / 0.8153 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.0113, allocations: 4.656 kB / 0.8153 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.727e-06/0.01131, allocations: 0 / 0.8153 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.01131, allocations: 3.688 kB / 0.8153 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.01131, allocations: 0 / 0.8153 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003708/0.01168, allocations: 207.3 kB / 0.8155 GB, free: 13 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.26e-05/0.0117, allocations: 3.938 kB / 0.8155 GB, free: 13 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.988e-05/0.01172, allocations: 4 kB / 0.8156 GB, free: 12.99 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.01182, allocations: 7.984 kB / 0.8156 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.197e-05/0.01188, allocations: 11.97 kB / 0.8156 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/0.01189, allocations: 6 kB / 0.8156 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 7.133e-05/0.01196, allocations: 79.28 kB / 0.8157 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of sort global known variables: time 8e-08/0.01196, allocations: 3.938 kB / 0.8157 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002637/0.01222, allocations: 16 kB / 0.8157 GB, free: 12.87 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.0001826/0.01241, allocations: 103.2 kB / 0.8158 GB, free: 12.76 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.000297/0.0127, allocations: 69.95 kB / 0.8158 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.01271, allocations: 0 / 0.8158 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001314/0.01284, allocations: 37.03 kB / 0.8159 GB, free: 12.66 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003082/0.01315, allocations: 16.89 kB / 0.8159 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004473/0.01359, allocations: 140.5 kB / 0.816 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.032e-05/0.01368, allocations: 72.08 kB / 0.8161 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.852e-05/0.01372, allocations: 8.547 kB / 0.8161 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.708e-05/0.01376, allocations: 13.94 kB / 0.8161 GB, free: 12.38 MB / 0.7761 GB Notification: Performance of SimCode: time 9.12e-07/0.01376, allocations: 0 / 0.8161 GB, free: 12.38 MB / 0.7761 GB Notification: Performance of Templates: time 0.004183/0.01794, allocations: 0.8795 MB / 0.817 GB, free: 11.53 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 400] 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: 7.958924312959425]