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.001783/0.001783, 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.002198/0.002198, allocations: 195.5 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.463/1.463, allocations: 225.6 MB / 250.9 MB, free: 13.29 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.807/2.807, allocations: 476.7 MB / 0.7645 GB, free: 10.07 MB / 0.6231 GB " [Timeout remaining time 177] 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.002028/0.002028, allocations: 68.03 kB / 1.109 GB, free: 6.512 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7482/0.7502, allocations: 168.7 MB / 1.274 GB, free: 4.531 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001848/0.752, allocations: 0.702 MB / 1.275 GB, free: 3.836 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00141/0.7534, allocations: 1.073 MB / 1.276 GB, free: 2.75 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.967e-05/0.7535, allocations: 0 / 1.276 GB, free: 2.75 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.659e-05/0.7535, allocations: 3.938 kB / 1.276 GB, free: 2.746 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.197e-05/0.7536, allocations: 7.938 kB / 1.276 GB, free: 2.738 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003239/0.7539, allocations: 51.81 kB / 1.276 GB, free: 2.688 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001217/0.754, allocations: 67.84 kB / 1.276 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.624e-05/0.7541, allocations: 15.92 kB / 1.276 GB, free: 2.605 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.738e-05/0.7542, allocations: 35.84 kB / 1.276 GB, free: 2.57 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.446e-05/0.7543, allocations: 27.91 kB / 1.276 GB, free: 2.543 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.814e-05/0.7543, allocations: 8 kB / 1.276 GB, free: 2.535 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.27e-05/0.7544, allocations: 19.98 kB / 1.276 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.594e-05/0.7544, allocations: 19.91 kB / 1.276 GB, free: 2.496 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.446e-05/0.7544, allocations: 31.86 kB / 1.276 GB, free: 2.465 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001499/0.7546, allocations: 74.36 kB / 1.276 GB, free: 2.395 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.7546, allocations: 0 / 1.276 GB, free: 2.395 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.503e-06/0.7546, allocations: 0 / 1.276 GB, free: 2.395 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.724e-06/0.7546, allocations: 8 kB / 1.276 GB, free: 2.387 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.000711/0.7553, allocations: 379.2 kB / 1.276 GB, free: 1.965 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.7553, allocations: 12.03 kB / 1.276 GB, free: 1.953 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.725e-05/0.7554, allocations: 8.891 kB / 1.276 GB, free: 1.945 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001278/0.7555, allocations: 168.3 kB / 1.277 GB, free: 1.742 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/0.7555, allocations: 4.375 kB / 1.277 GB, free: 1.738 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.835e-05/0.7556, allocations: 8.375 kB / 1.277 GB, free: 1.73 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002448/0.7558, allocations: 82.2 kB / 1.277 GB, free: 1.645 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.7558, allocations: 4.188 kB / 1.277 GB, free: 1.641 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.877e-05/0.7558, allocations: 3.938 kB / 1.277 GB, free: 1.637 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.7558, allocations: 0 / 1.277 GB, free: 1.637 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002188/0.7561, allocations: 55.94 kB / 1.277 GB, free: 1.582 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005586/0.7566, allocations: 324.7 kB / 1.277 GB, free: 1.215 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002115/0.7568, allocations: 74.48 kB / 1.277 GB, free: 1.133 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001236/0.7569, allocations: 38.48 kB / 1.277 GB, free: 1.094 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.53e-05/0.757, allocations: 3.938 kB / 1.277 GB, free: 1.09 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002775/0.7572, allocations: 95.48 kB / 1.277 GB, free: 0.9844 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 1.613e-06/0.7572, allocations: 0 / 1.277 GB, free: 0.9844 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0005621/0.7578, allocations: 173.8 kB / 1.277 GB, free: 0.8086 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.803e-05/0.7579, allocations: 55.5 kB / 1.278 GB, free: 0.7422 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.48e-05/0.758, allocations: 109.8 kB / 1.278 GB, free: 0.625 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.924e-05/0.758, allocations: 33.7 kB / 1.278 GB, free: 0.5859 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.872e-05/0.7581, allocations: 88.38 kB / 1.278 GB, free: 0.4922 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.58e-05/0.7581, allocations: 31.73 kB / 1.278 GB, free: 472 kB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.087e-05/0.7581, allocations: 37.7 kB / 1.278 GB, free: 428 kB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.7583, allocations: 314.8 kB / 1.278 GB, free: 104 kB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001269/0.7584, allocations: 35.97 kB / 1.278 GB, free: 68 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000157/0.7586, allocations: 66.53 kB / 1.278 GB, free: 15.99 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002487/0.7588, allocations: 106.4 kB / 1.278 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.7588, allocations: 0 / 1.278 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003327/0.7592, allocations: 141.5 kB / 1.278 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.7592, allocations: 4.062 kB / 1.278 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.7592, allocations: 7.984 kB / 1.278 GB, free: 15.72 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.7592, allocations: 4 kB / 1.278 GB, free: 15.72 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001385/0.7593, allocations: 20.23 kB / 1.278 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.231e-06/0.7593, allocations: 0 / 1.278 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.674e-05/0.7594, allocations: 15.89 kB / 1.279 GB, free: 15.68 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.519e-05/0.7594, allocations: 11.98 kB / 1.279 GB, free: 15.67 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.0001285/0.7596, allocations: 126.3 kB / 1.279 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.837e-05/0.7596, allocations: 7.953 kB / 1.279 GB, free: 15.53 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003683/0.76, allocations: 145.9 kB / 1.279 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.76, allocations: 0 / 1.279 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.76, allocations: 0 / 1.279 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.76, allocations: 0 / 1.279 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005784/0.7606, allocations: 414.3 kB / 1.279 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.7606, allocations: 0 / 1.279 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.149e-05/0.7606, allocations: 15.98 kB / 1.279 GB, free: 14.9 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.7606, allocations: 0 / 1.279 GB, free: 14.9 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.7606, allocations: 0 / 1.279 GB, free: 14.9 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.7606, allocations: 3.984 kB / 1.279 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.7606, allocations: 4.188 kB / 1.279 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000374/0.761, allocations: 239.3 kB / 1.279 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.861e-05/0.7611, allocations: 85.06 kB / 1.28 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.313e-05/0.7611, allocations: 4 kB / 1.28 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.7612, allocations: 7.984 kB / 1.28 GB, free: 14.53 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.101e-05/0.7613, allocations: 15.92 kB / 1.28 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.542e-05/0.7613, allocations: 7.938 kB / 1.28 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.055e-05/0.7613, allocations: 87.27 kB / 1.28 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.7613, allocations: 0 / 1.28 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002458/0.7616, 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.0001707/0.7618, allocations: 123.1 kB / 1.28 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003225/0.7621, allocations: 91.88 kB / 1.28 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.7621, allocations: 0 / 1.28 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001318/0.7622, allocations: 39.92 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.0002655/0.7625, allocations: 14.17 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.0003917/0.7629, allocations: 174.7 kB / 1.28 GB, free: 13.94 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003201/0.7632, allocations: 0.6885 MB / 1.281 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.411e-05/0.7632, allocations: 4.438 kB / 1.281 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.173e-05/0.7633, allocations: 15.42 kB / 1.281 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of SimCode: time 3.01e-07/0.7633, allocations: 0 / 1.281 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of Templates: time 0.004034/0.7673, allocations: 1.063 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 gbode -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: 8.527285124640912]