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.001919/0.001919, allocations: 76.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.002504/0.002504, 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.483/1.483, allocations: 177.1 MB / 203.9 MB, free: 5.605 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.982/2.982, allocations: 377.8 MB / 0.6232 GB, free: 8.508 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.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: Performance of FrontEnd - loaded program: time 3.587e-06/3.587e-06, allocations: 0.7656 kB / 0.8108 GB, free: 2.117 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.134e-05/3.493e-05, allocations: 3.062 kB / 0.8108 GB, free: 2.113 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002983/0.003018, allocations: 0.6816 MB / 0.8115 GB, free: 1.449 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.002565/0.005583, allocations: 1.102 MB / 0.8125 GB, free: 344 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.057e-05/0.005643, allocations: 4 kB / 0.8125 GB, free: 340 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 3.821e-05/0.005682, allocations: 3.938 kB / 0.8125 GB, free: 336 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 9.427e-05/0.005776, allocations: 5.469 kB / 0.8125 GB, free: 332 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004047/0.00618, allocations: 55.75 kB / 0.8126 GB, free: 276 kB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0001854/0.006366, allocations: 67.83 kB / 0.8127 GB, free: 208 kB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.006478, allocations: 4 kB / 0.8127 GB, free: 204 kB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001515/0.006629, allocations: 48.97 kB / 0.8127 GB, free: 156 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 7.742e-05/0.006707, allocations: 19.97 kB / 0.8127 GB, free: 136 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 3.321e-05/0.00674, allocations: 9.438 kB / 0.8127 GB, free: 128 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001035/0.006843, allocations: 27.92 kB / 0.8128 GB, free: 100 kB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 3.678e-05/0.00688, allocations: 11.92 kB / 0.8128 GB, free: 88 kB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 7.449e-05/0.006955, allocations: 27.91 kB / 0.8128 GB, free: 60 kB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0002612/0.007216, allocations: 85.98 kB / 0.8129 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.007221, allocations: 0 / 0.8129 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.342e-06/0.007223, allocations: 0 / 0.8129 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.007228, allocations: 0 / 0.8129 GB, free: 15.98 MB / 0.7761 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.0009393/0.008167, allocations: 306.7 kB / 0.8132 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 5.153e-05/0.008218, allocations: 8.75 kB / 0.8132 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001744/0.008393, allocations: 20.81 kB / 0.8132 GB, free: 15.62 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001633/0.008556, allocations: 114.2 kB / 0.8133 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.945e-05/0.008615, allocations: 8.312 kB / 0.8133 GB, free: 15.47 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.621e-05/0.008642, allocations: 9.969 kB / 0.8133 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003407/0.008982, allocations: 78.2 kB / 0.8134 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.008995, allocations: 192 / 0.8134 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.096e-05/0.009016, allocations: 5 kB / 0.8134 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.009022, allocations: 384 / 0.8134 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003457/0.009368, allocations: 57.27 kB / 0.8135 GB, free: 15.32 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00077/0.01014, allocations: 249 kB / 0.8137 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003209/0.01046, allocations: 71.23 kB / 0.8138 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001928/0.01065, allocations: 38.2 kB / 0.8138 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.967e-05/0.01068, allocations: 4 kB / 0.8138 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003673/0.01105, allocations: 97.17 kB / 0.8139 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=10): time 1.743e-06/0.01105, allocations: 0 / 0.8139 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10): time 0.0008161/0.01187, allocations: 174.3 kB / 0.8141 GB, free: 14.65 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.892e-05/0.01195, allocations: 60.34 kB / 0.8141 GB, free: 14.58 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001514/0.0121, allocations: 105.8 kB / 0.8142 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 4.342e-05/0.01214, allocations: 33.7 kB / 0.8143 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 9.502e-05/0.01224, allocations: 93.53 kB / 0.8144 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 4.257e-05/0.01228, allocations: 19.86 kB / 0.8144 GB, free: 14.31 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.239e-05/0.01237, allocations: 33.81 kB / 0.8144 GB, free: 14.27 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002327/0.0126, allocations: 323.7 kB / 0.8147 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000193/0.0128, allocations: 39.92 kB / 0.8148 GB, free: 13.91 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002381/0.01303, allocations: 66.94 kB / 0.8148 GB, free: 13.84 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004069/0.01344, allocations: 102.4 kB / 0.8149 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.01344, allocations: 3.281 kB / 0.8149 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006131/0.01406, allocations: 149.5 kB / 0.8151 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/0.01408, allocations: 11.94 kB / 0.8151 GB, free: 13.56 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.01409, allocations: 0 / 0.8151 GB, free: 13.56 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.01411, allocations: 0 / 0.8151 GB, free: 13.56 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001968/0.01431, allocations: 23.92 kB / 0.8151 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.01432, allocations: 1.062 kB / 0.8151 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001195/0.01444, allocations: 20.17 kB / 0.8151 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/0.01446, allocations: 4.5 kB / 0.8151 GB, free: 13.52 MB / 0.7761 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.000153/0.01461, allocations: 115.7 kB / 0.8152 GB, free: 13.39 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.677e-05/0.01465, allocations: 12.45 kB / 0.8152 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005713/0.01522, allocations: 155 kB / 0.8154 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.279e-06/0.01522, allocations: 0.9062 kB / 0.8154 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.01523, allocations: 4 kB / 0.8154 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.01524, allocations: 0 / 0.8154 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008601/0.0161, allocations: 355.6 kB / 0.8157 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.0161, allocations: 0.9688 kB / 0.8157 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.01621, allocations: 15.92 kB / 0.8157 GB, free: 12.82 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.01622, allocations: 1.031 kB / 0.8157 GB, free: 12.82 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.659e-05/0.01623, allocations: 7.984 kB / 0.8158 GB, free: 12.82 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.01623, allocations: 0 / 0.8158 GB, free: 12.82 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.01624, allocations: 1.031 kB / 0.8158 GB, free: 12.82 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006438/0.01688, allocations: 248.5 kB / 0.816 GB, free: 12.56 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.763e-05/0.0169, allocations: 7.953 kB / 0.816 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.352e-05/0.01693, allocations: 7.984 kB / 0.816 GB, free: 12.54 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001832/0.01711, allocations: 9.016 kB / 0.816 GB, free: 12.54 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.333e-05/0.01718, allocations: 4 kB / 0.816 GB, free: 12.53 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-05/0.0172, allocations: 9.016 kB / 0.816 GB, free: 12.52 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 7.788e-05/0.01728, allocations: 83.28 kB / 0.8161 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.1e-07/0.01728, allocations: 0 / 0.8161 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0004757/0.01775, allocations: 20.59 kB / 0.8161 GB, free: 12.42 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: 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.0002249/0.01798, allocations: 104.7 kB / 0.8162 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0004441/0.01842, allocations: 93.5 kB / 0.8163 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.01842, allocations: 4 kB / 0.8163 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001976/0.01862, allocations: 43.91 kB / 0.8164 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004227/0.01904, allocations: 13.06 kB / 0.8164 GB, free: 12.16 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005652/0.01961, allocations: 170.2 kB / 0.8165 GB, free: 11.97 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001178/0.01973, allocations: 71.2 kB / 0.8166 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 5.232e-05/0.01978, allocations: 15.8 kB / 0.8166 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.95e-05/0.01983, allocations: 12.5 kB / 0.8166 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of SimCode: time 7.31e-07/0.01983, allocations: 0 / 0.8166 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of Templates: time 0.005964/0.02579, allocations: 1.088 MB / 0.8177 GB, free: 10.8 MB / 0.7761 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/jenkins/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: 7.990433895029128]