Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 114.5 kB / 18.88 MB, free: 3.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 192.4 kB / 22.17 MB, free: 5.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.526/1.526, allocations: 225.6 MB / 250.9 MB, free: 13.3 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.879/2.879, allocations: 476.7 MB / 0.7645 GB, free: 10.08 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_11_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_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002312/0.002312, allocations: 63.89 kB / 1.109 GB, free: 6.547 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9944/0.9967, allocations: 168.7 MB / 1.274 GB, free: 4.512 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002727/0.9994, allocations: 0.6784 MB / 1.275 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00205/1.001, allocations: 1.077 MB / 1.276 GB, free: 2.75 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.971e-05/1.002, allocations: 4 kB / 1.276 GB, free: 2.746 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.209e-05/1.002, allocations: 3.938 kB / 1.276 GB, free: 2.742 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.963e-05/1.002, allocations: 7.938 kB / 1.276 GB, free: 2.734 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003979/1.002, allocations: 47.81 kB / 1.276 GB, free: 2.688 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001667/1.002, allocations: 71.77 kB / 1.276 GB, free: 2.617 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/1.002, allocations: 8 kB / 1.276 GB, free: 2.609 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001347/1.003, allocations: 31.91 kB / 1.276 GB, free: 2.578 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.219e-05/1.003, allocations: 31.91 kB / 1.276 GB, free: 2.547 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.931e-05/1.003, allocations: 8 kB / 1.276 GB, free: 2.539 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 9.555e-05/1.003, allocations: 27.91 kB / 1.276 GB, free: 2.512 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.371e-05/1.003, allocations: 15.94 kB / 1.276 GB, free: 2.496 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.793e-05/1.003, allocations: 27.86 kB / 1.276 GB, free: 2.469 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002563/1.003, allocations: 74.36 kB / 1.276 GB, free: 2.398 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 1.011e-05/1.003, allocations: 7.984 kB / 1.276 GB, free: 2.391 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.134e-06/1.003, allocations: 0 / 1.276 GB, free: 2.391 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.265e-06/1.003, allocations: 0 / 1.276 GB, free: 2.391 MB / 0.9669 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.0008726/1.004, allocations: 391.2 kB / 1.276 GB, free: 1.957 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/1.004, allocations: 8.031 kB / 1.276 GB, free: 1.949 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.673e-05/1.004, allocations: 8.891 kB / 1.276 GB, free: 1.941 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001906/1.004, allocations: 164.4 kB / 1.277 GB, free: 1.742 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.43e-05/1.004, allocations: 8.375 kB / 1.277 GB, free: 1.734 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.411e-05/1.004, allocations: 8.359 kB / 1.277 GB, free: 1.727 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002856/1.005, allocations: 78.22 kB / 1.277 GB, free: 1.645 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/1.005, allocations: 8.172 kB / 1.277 GB, free: 1.637 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.841e-05/1.005, allocations: 3.938 kB / 1.277 GB, free: 1.633 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/1.005, allocations: 0 / 1.277 GB, free: 1.633 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002389/1.005, allocations: 63.88 kB / 1.277 GB, free: 1.57 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007394/1.006, allocations: 308.7 kB / 1.277 GB, free: 1.219 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002475/1.006, allocations: 82.47 kB / 1.277 GB, free: 1.129 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/1.006, allocations: 38.48 kB / 1.277 GB, free: 1.09 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.623e-05/1.006, allocations: 7.938 kB / 1.277 GB, free: 1.082 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000321/1.006, allocations: 87.5 kB / 1.277 GB, free: 0.9844 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 1.944e-06/1.006, allocations: 0 / 1.277 GB, free: 0.9844 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0006046/1.007, allocations: 177.5 kB / 1.277 GB, free: 0.8047 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.265e-05/1.007, allocations: 55.39 kB / 1.278 GB, free: 0.7383 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001505/1.007, allocations: 106.2 kB / 1.278 GB, free: 0.625 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.24e-05/1.007, allocations: 33.69 kB / 1.278 GB, free: 0.5859 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 9.574e-05/1.007, allocations: 84.38 kB / 1.278 GB, free: 0.4961 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.878e-05/1.007, allocations: 27.75 kB / 1.278 GB, free: 480 kB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.76e-05/1.008, allocations: 41.64 kB / 1.278 GB, free: 432 kB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0002169/1.008, allocations: 322.8 kB / 1.278 GB, free: 100 kB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00014/1.008, allocations: 35.97 kB / 1.278 GB, free: 64 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002031/1.008, allocations: 62.55 kB / 1.278 GB, free: 15.99 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002867/1.008, allocations: 106.4 kB / 1.278 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/1.008, allocations: 0 / 1.278 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004542/1.009, allocations: 141.5 kB / 1.278 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/1.009, allocations: 4 kB / 1.278 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.887e-05/1.009, allocations: 4 kB / 1.278 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.974e-05/1.009, allocations: 0 / 1.278 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001633/1.009, allocations: 27.98 kB / 1.278 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/1.009, allocations: 0 / 1.278 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.466e-05/1.009, allocations: 15.94 kB / 1.279 GB, free: 15.68 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.726e-05/1.009, allocations: 4 kB / 1.279 GB, free: 15.68 MB / 0.9825 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.0002157/1.009, allocations: 126.3 kB / 1.279 GB, free: 15.55 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.397e-05/1.009, allocations: 7.953 kB / 1.279 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004225/1.01, allocations: 145.9 kB / 1.279 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/1.01, allocations: 0 / 1.279 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/1.01, allocations: 4 kB / 1.279 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/1.01, allocations: 3.984 kB / 1.279 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007306/1.011, allocations: 414.3 kB / 1.279 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/1.011, allocations: 0 / 1.279 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.018e-05/1.011, allocations: 12.23 kB / 1.279 GB, free: 14.9 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/1.011, allocations: 0 / 1.279 GB, free: 14.9 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/1.011, allocations: 8 kB / 1.279 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/1.011, allocations: 4 kB / 1.279 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/1.011, allocations: 0 / 1.279 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004527/1.011, allocations: 243.4 kB / 1.279 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.929e-05/1.011, allocations: 85.06 kB / 1.28 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.787e-05/1.011, allocations: 0 / 1.28 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/1.011, allocations: 15.98 kB / 1.28 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.124e-05/1.011, allocations: 7.984 kB / 1.28 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.02e-05/1.011, allocations: 11.92 kB / 1.28 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.175e-05/1.012, allocations: 83.28 kB / 1.28 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/1.012, allocations: 0 / 1.28 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002912/1.012, allocations: 16 kB / 1.28 GB, free: 14.4 MB / 0.9825 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.000299/1.012, allocations: 117 kB / 1.28 GB, free: 14.28 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003996/1.013, allocations: 95.88 kB / 1.28 GB, free: 14.19 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/1.013, allocations: 3.938 kB / 1.28 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000171/1.013, allocations: 43.97 kB / 1.28 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003176/1.013, allocations: 7.984 kB / 1.28 GB, free: 14.13 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005678/1.014, allocations: 170.6 kB / 1.28 GB, free: 13.94 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003932/1.014, allocations: 0.6924 MB / 1.281 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.845e-05/1.014, allocations: 8.422 kB / 1.281 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.476e-05/1.014, allocations: 11.44 kB / 1.281 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of SimCode: time 7.91e-07/1.014, allocations: 4 kB / 1.281 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of Templates: time 0.005442/1.02, allocations: 1.054 MB / 1.282 GB, free: 12.15 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_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: 9.46355442609638]