Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.001466/0.001466, allocations: 100.8 kB / 19.74 MB, free: 2.066 MB / 14.72 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.001507/0.001507, allocations: 216.9 kB / 23.05 MB, free: 4.844 MB / 14.72 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.488/1.488, allocations: 230.6 MB / 256.8 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.132/3.132, allocations: 0.49 GB / 0.7959 GB, free: 35.44 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00211/0.00211, allocations: 79.97 kB / 1.155 GB, free: 25.21 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.3272, allocations: 176.1 MB / 1.327 GB, free: 0.9961 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001915/0.3291, allocations: 0.6806 MB / 1.328 GB, free: 328 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001732/0.3309, allocations: 1.105 MB / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.359e-05/0.3309, allocations: 0 / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.464e-05/0.331, allocations: 3.938 kB / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.853e-05/0.331, allocations: 15.86 kB / 1.329 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003266/0.3314, allocations: 47.84 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001281/0.3315, allocations: 75.81 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.747e-05/0.3316, allocations: 4 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 7.855e-05/0.3317, allocations: 27.92 kB / 1.329 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.754e-05/0.3317, allocations: 31.89 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.151e-05/0.3318, allocations: 8 kB / 1.329 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.486e-05/0.3318, allocations: 31.92 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.3e-05/0.3319, allocations: 15.92 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.784e-05/0.3319, allocations: 19.92 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001814/0.3321, allocations: 83.67 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.3321, allocations: 0 / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.273e-06/0.3321, allocations: 0 / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.23e-06/0.3321, allocations: 0 / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006672/0.3328, allocations: 310.1 kB / 1.33 GB, free: 14.51 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.3328, allocations: 16.03 kB / 1.33 GB, free: 14.49 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.785e-05/0.3329, allocations: 8.922 kB / 1.33 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.333, allocations: 110.5 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.323e-05/0.3331, allocations: 4.375 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.142e-05/0.3331, allocations: 8.375 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002384/0.3333, allocations: 86.08 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.3333, allocations: 192 / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.519e-05/0.3333, allocations: 3.938 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.3333, allocations: 4 kB / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002106/0.3336, allocations: 55.95 kB / 1.33 GB, free: 14.19 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005083/0.3341, allocations: 240.5 kB / 1.33 GB, free: 13.92 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00021/0.3343, allocations: 74.48 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001218/0.3344, allocations: 40.77 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.637e-05/0.3344, allocations: 4 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002534/0.3347, allocations: 95.25 kB / 1.33 GB, free: 13.69 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.613e-06/0.3347, allocations: 4 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0005015/0.3352, allocations: 169.7 kB / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.889e-05/0.3352, allocations: 55.41 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.694e-05/0.3353, allocations: 117.7 kB / 1.331 GB, free: 13.32 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.737e-05/0.3354, allocations: 33.7 kB / 1.331 GB, free: 13.28 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.127e-05/0.3354, allocations: 84.38 kB / 1.331 GB, free: 13.19 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.685e-05/0.3355, allocations: 31.77 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.939e-05/0.3355, allocations: 33.7 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001448/0.3357, allocations: 322.8 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.3358, allocations: 35.97 kB / 1.331 GB, free: 12.76 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001482/0.3359, allocations: 65.06 kB / 1.331 GB, free: 12.69 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000252/0.3362, allocations: 102.5 kB / 1.331 GB, free: 12.58 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3362, allocations: 0 / 1.331 GB, free: 12.58 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000328/0.3365, allocations: 149.4 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.3365, allocations: 9.703 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.3365, allocations: 0 / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.3366, allocations: 4 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001357/0.3367, allocations: 15.98 kB / 1.331 GB, free: 12.4 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.3367, allocations: 4 kB / 1.331 GB, free: 12.4 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.02e-05/0.3368, allocations: 11.95 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.488e-05/0.3368, allocations: 7.984 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001214/0.3369, allocations: 138.2 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.617e-05/0.3369, allocations: 4 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003513/0.3373, allocations: 145.9 kB / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.3373, allocations: 0 / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.3373, allocations: 4.453 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.3373, allocations: 0 / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005264/0.3378, allocations: 361.9 kB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3378, allocations: 0 / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.834e-05/0.3379, allocations: 11.98 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.3379, allocations: 0 / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.3379, allocations: 4 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.3379, allocations: 0 / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.3379, allocations: 0 / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003818/0.3383, allocations: 243.3 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.558e-06/0.3383, allocations: 4 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.031e-05/0.3383, allocations: 8 kB / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.3384, allocations: 7.984 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.09e-05/0.3385, allocations: 7.984 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.498e-06/0.3385, allocations: 4 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.262e-05/0.3385, allocations: 91.52 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3385, allocations: 0 / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002538/0.3388, allocations: 20 kB / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001557/0.3389, allocations: 111.1 kB / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003258/0.3393, allocations: 103.8 kB / 1.333 GB, free: 11.05 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3393, allocations: 0 / 1.333 GB, free: 11.05 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001336/0.3394, allocations: 43.91 kB / 1.333 GB, free: 11.01 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.3397, allocations: 13.88 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004553/0.3401, allocations: 184.9 kB / 1.333 GB, free: 10.79 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.575e-05/0.3402, allocations: 83.3 kB / 1.333 GB, free: 10.69 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.714e-05/0.3402, allocations: 11.44 kB / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of SimCode: time 2.9e-07/0.3402, allocations: 0 / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of Templates: time 0.003235/0.3435, allocations: 1.113 MB / 1.334 GB, free: 9.562 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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: 10.990659822011366]