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.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.000766/0.000766, allocations: 76.55 kB / 19.93 MB, free: 4.637 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.0008058/0.0008058, allocations: 177.9 kB / 23.22 MB, free: 1.352 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 0.8416/0.8416, allocations: 177.1 MB / 203.5 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.602/1.602, allocations: 359 MB / 0.6044 GB, free: 11.09 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_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 1.664e-06/1.664e-06, allocations: 0 / 0.9517 GB, free: 3.004 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.556e-05/1.722e-05, allocations: 2.281 kB / 0.9517 GB, free: 3 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001101/0.001119, allocations: 0.6696 MB / 0.9524 GB, free: 2.328 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.000961/0.00208, allocations: 1.093 MB / 0.9534 GB, free: 1.223 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.805e-05/0.002118, allocations: 0 / 0.9534 GB, free: 1.223 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 2.567e-05/0.002143, allocations: 3.938 kB / 0.9534 GB, free: 1.219 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 5.748e-05/0.002201, allocations: 7.875 kB / 0.9534 GB, free: 1.211 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002596/0.002461, allocations: 43.77 kB / 0.9535 GB, free: 1.168 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 8.8e-05/0.002549, allocations: 55.83 kB / 0.9535 GB, free: 1.113 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 8.445e-05/0.002633, allocations: 4 kB / 0.9535 GB, free: 1.109 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 7.238e-05/0.002705, allocations: 35.91 kB / 0.9536 GB, free: 1.074 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 4.836e-05/0.002754, allocations: 15.97 kB / 0.9536 GB, free: 1.059 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.483e-05/0.002769, allocations: 8 kB / 0.9536 GB, free: 1.051 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 5.642e-05/0.002825, allocations: 23.92 kB / 0.9536 GB, free: 1.027 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 2.714e-05/0.002852, allocations: 11.92 kB / 0.9536 GB, free: 1.016 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 2.651e-05/0.002879, allocations: 15.98 kB / 0.9537 GB, free: 1 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.000129/0.003008, allocations: 67.77 kB / 0.9537 GB, free: 0.9336 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.834e-06/0.003009, allocations: 0 / 0.9537 GB, free: 0.9336 MB / 0.9011 GB Notification: Performance of FrontEnd: time 8.21e-07/0.00301, allocations: 0 / 0.9537 GB, free: 0.9336 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.928e-06/0.003014, allocations: 0 / 0.9537 GB, free: 0.9336 MB / 0.9011 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.0004967/0.003511, allocations: 298.1 kB / 0.954 GB, free: 0.6094 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.003543, allocations: 12.03 kB / 0.954 GB, free: 0.5977 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.447e-05/0.003608, allocations: 4.938 kB / 0.954 GB, free: 0.5938 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.334e-05/0.003681, allocations: 117.7 kB / 0.9541 GB, free: 464 kB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.003694, allocations: 4.312 kB / 0.9541 GB, free: 460 kB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.338e-05/0.003707, allocations: 4.375 kB / 0.9541 GB, free: 456 kB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001358/0.003843, allocations: 66.22 kB / 0.9542 GB, free: 384 kB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.003852, allocations: 192 / 0.9542 GB, free: 384 kB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.567e-06/0.003861, allocations: 384 / 0.9542 GB, free: 384 kB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.003865, allocations: 384 / 0.9542 GB, free: 384 kB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001029/0.003968, allocations: 55.89 kB / 0.9543 GB, free: 328 kB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003018/0.00427, allocations: 220.4 kB / 0.9545 GB, free: 76 kB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 9.919e-05/0.004369, allocations: 58.48 kB / 0.9545 GB, free: 8 kB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.211e-05/0.004431, allocations: 32.95 kB / 0.9546 GB, free: 15.97 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.939e-05/0.004451, allocations: 7.984 kB / 0.9546 GB, free: 15.96 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001185/0.004569, allocations: 79.31 kB / 0.9546 GB, free: 15.88 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=7): time 9.72e-07/0.00457, allocations: 4 kB / 0.9546 GB, free: 15.87 MB / 0.9167 GB Notification: Performance of matching and sorting (n=7): time 0.0002634/0.004834, allocations: 125.5 kB / 0.9548 GB, free: 15.74 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.618e-05/0.00487, allocations: 55.41 kB / 0.9548 GB, free: 15.68 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.763e-05/0.004927, allocations: 105.8 kB / 0.9549 GB, free: 15.56 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.185e-05/0.004939, allocations: 29.7 kB / 0.9549 GB, free: 15.53 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 3.524e-05/0.004974, allocations: 80.14 kB / 0.955 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.912e-05/0.004994, allocations: 23.92 kB / 0.955 GB, free: 15.42 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.205e-05/0.005026, allocations: 25.7 kB / 0.9551 GB, free: 15.39 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.008e-05/0.005096, allocations: 318.8 kB / 0.9554 GB, free: 15.07 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.128e-05/0.005147, allocations: 27.97 kB / 0.9554 GB, free: 15.04 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.253e-05/0.00521, allocations: 60.27 kB / 0.9555 GB, free: 14.97 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001135/0.005323, allocations: 96.12 kB / 0.9555 GB, free: 14.86 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.005325, allocations: 4 kB / 0.9555 GB, free: 14.86 MB / 0.9167 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001441/0.005469, allocations: 109.6 kB / 0.9557 GB, free: 14.74 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.046e-05/0.005479, allocations: 7.938 kB / 0.9557 GB, free: 14.73 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.005485, allocations: 4 kB / 0.9557 GB, free: 14.73 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.005496, allocations: 0 / 0.9557 GB, free: 14.73 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.593e-05/0.005562, allocations: 19.92 kB / 0.9557 GB, free: 14.71 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.005567, allocations: 4.125 kB / 0.9557 GB, free: 14.71 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.339e-05/0.005601, allocations: 15.94 kB / 0.9557 GB, free: 14.69 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.057e-06/0.00561, allocations: 4 kB / 0.9557 GB, free: 14.69 MB / 0.9167 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 6.189e-05/0.005672, allocations: 120.3 kB / 0.9558 GB, free: 14.56 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.365e-06/0.00568, allocations: 7.938 kB / 0.9558 GB, free: 14.55 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001607/0.005841, allocations: 114.3 kB / 0.9559 GB, free: 14.43 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.005842, allocations: 192 / 0.9559 GB, free: 14.43 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.005846, allocations: 0 / 0.9559 GB, free: 14.43 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.00585, allocations: 3.938 kB / 0.9559 GB, free: 14.43 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002465/0.006096, allocations: 306.1 kB / 0.9562 GB, free: 14.09 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.006097, allocations: 4 kB / 0.9562 GB, free: 14.09 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.766e-05/0.006125, allocations: 11.92 kB / 0.9562 GB, free: 14.08 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.006126, allocations: 4 kB / 0.9563 GB, free: 14.07 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.553e-06/0.006133, allocations: 3.938 kB / 0.9563 GB, free: 14.07 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.006134, allocations: 256 / 0.9563 GB, free: 14.07 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.51e-07/0.006134, allocations: 0 / 0.9563 GB, free: 14.07 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001548/0.006289, allocations: 203.4 kB / 0.9564 GB, free: 13.86 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 6.672e-06/0.006296, allocations: 7.953 kB / 0.9565 GB, free: 13.85 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.168e-05/0.006307, allocations: 0 / 0.9565 GB, free: 13.85 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.047e-05/0.006358, allocations: 15.98 kB / 0.9565 GB, free: 13.83 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.995e-05/0.006388, allocations: 3.984 kB / 0.9565 GB, free: 13.83 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.056e-05/0.006398, allocations: 4 kB / 0.9565 GB, free: 13.82 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 2.579e-05/0.006424, allocations: 83.28 kB / 0.9566 GB, free: 13.74 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.006424, allocations: 0 / 0.9566 GB, free: 13.74 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001631/0.006587, allocations: 12 kB / 0.9566 GB, free: 13.73 MB / 0.9167 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.0001046/0.006692, allocations: 115.1 kB / 0.9567 GB, free: 13.61 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001535/0.006845, allocations: 67.88 kB / 0.9567 GB, free: 13.54 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.006847, allocations: 0 / 0.9567 GB, free: 13.54 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 5.777e-05/0.006905, allocations: 31.97 kB / 0.9568 GB, free: 13.51 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001822/0.007087, allocations: 12.08 kB / 0.9568 GB, free: 13.5 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002597/0.007346, allocations: 170.7 kB / 0.957 GB, free: 13.3 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.801e-05/0.007394, allocations: 71.19 kB / 0.957 GB, free: 13.21 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.554e-05/0.00742, allocations: 20.47 kB / 0.957 GB, free: 13.19 MB / 0.9167 GB Notification: Performance of SimCode: time 2.71e-07/0.00742, allocations: 0 / 0.957 GB, free: 13.19 MB / 0.9167 GB Notification: Performance of Templates: time 0.001667/0.009087, allocations: 0.9286 MB / 0.9579 GB, free: 12.27 MB / 0.9167 GB " [Timeout remaining time 300] 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/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: 6.187859621830285]