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.001105/0.001105, allocations: 87.58 kB / 20.45 MB, free: 4.113 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.001065/0.001065, allocations: 161 kB / 23.82 MB, free: 0.7461 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/1, allocations: 177.2 MB / 204.2 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 179] 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 1.989/1.989, allocations: 377.8 MB / 0.6236 GB, free: 8.512 MB / 0.5886 GB " [Timeout remaining time 177] 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 2.635e-06/2.635e-06, allocations: 0.9844 kB / 0.8115 GB, free: 1.766 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.837e-05/3.101e-05, allocations: 7.219 kB / 0.8115 GB, free: 1.758 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001527/0.001558, allocations: 0.702 MB / 0.8122 GB, free: 1.078 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001215/0.002774, allocations: 1.129 MB / 0.8133 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.457e-05/0.002828, allocations: 0 / 0.8133 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 3.332e-05/0.002862, allocations: 3.938 kB / 0.8133 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 7.468e-05/0.002936, allocations: 15.75 kB / 0.8133 GB, free: 15.92 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003111/0.003248, allocations: 57.06 kB / 0.8134 GB, free: 15.86 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 9.962e-05/0.003347, allocations: 71.77 kB / 0.8134 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 9.868e-05/0.003446, allocations: 8 kB / 0.8135 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 8.231e-05/0.003528, allocations: 37.72 kB / 0.8135 GB, free: 15.75 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 4.996e-05/0.003578, allocations: 27.89 kB / 0.8135 GB, free: 15.72 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.74e-05/0.003595, allocations: 4 kB / 0.8135 GB, free: 15.72 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.638e-05/0.003662, allocations: 23.98 kB / 0.8135 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 3.724e-05/0.003699, allocations: 19.97 kB / 0.8136 GB, free: 15.68 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 3.343e-05/0.003733, allocations: 21.17 kB / 0.8136 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001496/0.003882, allocations: 71.72 kB / 0.8137 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.003884, allocations: 0 / 0.8137 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of FrontEnd: time 9.32e-07/0.003885, allocations: 1.906 kB / 0.8137 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.198e-06/0.003889, allocations: 0 / 0.8137 GB, free: 15.59 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.0004903/0.00438, allocations: 404.4 kB / 0.814 GB, free: 15.15 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.00442, allocations: 10.5 kB / 0.814 GB, free: 15.14 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001062/0.004526, allocations: 12.89 kB / 0.8141 GB, free: 15.13 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.083e-05/0.004617, allocations: 116.6 kB / 0.8142 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.558e-05/0.004642, allocations: 4.359 kB / 0.8142 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.879e-05/0.004661, allocations: 12.38 kB / 0.8142 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001515/0.004812, allocations: 78.86 kB / 0.8143 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.004825, allocations: 4.844 kB / 0.8143 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.004835, allocations: 384 / 0.8143 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.375e-06/0.004843, allocations: 0.9062 kB / 0.8143 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.109e-05/0.004895, allocations: 27.91 kB / 0.8143 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004119/0.005306, allocations: 297.3 kB / 0.8146 GB, free: 14.54 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001182/0.005425, allocations: 62.98 kB / 0.8146 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.516e-05/0.00546, allocations: 20.33 kB / 0.8147 GB, free: 14.44 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/0.005485, allocations: 4 kB / 0.8147 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001021/0.005587, allocations: 78.05 kB / 0.8147 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=10): time 1.924e-06/0.005589, allocations: 4 kB / 0.8147 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10): time 0.0002612/0.00585, allocations: 122.9 kB / 0.8149 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.824e-05/0.005889, allocations: 51.41 kB / 0.8149 GB, free: 14.15 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.096e-05/0.00598, allocations: 169.9 kB / 0.8151 GB, free: 13.97 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.688e-05/0.005997, allocations: 34.86 kB / 0.8151 GB, free: 13.93 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.55e-05/0.006052, allocations: 135 kB / 0.8152 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.842e-05/0.006081, allocations: 31.78 kB / 0.8153 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.529e-05/0.006126, allocations: 40.02 kB / 0.8153 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001159/0.006242, allocations: 0.4884 MB / 0.8158 GB, free: 13.21 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.391e-05/0.006276, allocations: 12.69 kB / 0.8158 GB, free: 13.2 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.135e-05/0.006327, allocations: 51.03 kB / 0.8158 GB, free: 13.14 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.452e-05/0.006412, allocations: 65.72 kB / 0.8159 GB, free: 13.06 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.006417, allocations: 4 kB / 0.8159 GB, free: 13.06 MB / 0.7761 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001448/0.006562, allocations: 109.6 kB / 0.816 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.006579, allocations: 7.938 kB / 0.816 GB, free: 12.94 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.006584, allocations: 0.75 kB / 0.816 GB, free: 12.94 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.006602, allocations: 4 kB / 0.816 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.883e-05/0.006701, allocations: 22.36 kB / 0.816 GB, free: 12.91 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.006707, allocations: 0 / 0.816 GB, free: 12.91 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.143e-05/0.006739, allocations: 8 kB / 0.816 GB, free: 12.91 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.006748, allocations: 4 kB / 0.8161 GB, free: 12.9 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 8.031e-05/0.006828, allocations: 172.5 kB / 0.8162 GB, free: 12.72 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.669e-05/0.006845, allocations: 14.08 kB / 0.8162 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001635/0.007008, allocations: 114 kB / 0.8163 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.007011, allocations: 4 kB / 0.8163 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.007016, allocations: 4 kB / 0.8163 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.007019, allocations: 0 / 0.8163 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002808/0.0073, allocations: 365.3 kB / 0.8167 GB, free: 12.19 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.007302, allocations: 0.5 kB / 0.8167 GB, free: 12.19 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.084e-05/0.007343, allocations: 9.344 kB / 0.8167 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.007345, allocations: 0 / 0.8167 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.717e-06/0.007354, allocations: 0 / 0.8167 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.007356, allocations: 0.7188 kB / 0.8167 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.007359, allocations: 7.984 kB / 0.8167 GB, free: 12.17 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000162/0.007521, allocations: 252.5 kB / 0.817 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 8.226e-06/0.007529, allocations: 7.953 kB / 0.817 GB, free: 11.9 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.948e-05/0.007548, allocations: 7.656 kB / 0.817 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.242e-05/0.007601, allocations: 7.984 kB / 0.817 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.605e-05/0.007647, allocations: 7.984 kB / 0.817 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.706e-06/0.007655, allocations: 4 kB / 0.817 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 4.315e-05/0.007699, allocations: 131.1 kB / 0.8171 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.007699, allocations: 0 / 0.8171 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001803/0.007879, allocations: 23.98 kB / 0.8171 GB, free: 11.72 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.0001455/0.008024, allocations: 107.1 kB / 0.8172 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001511/0.008176, allocations: 65.62 kB / 0.8173 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.008177, allocations: 0 / 0.8173 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 4.954e-05/0.008227, allocations: 35.59 kB / 0.8173 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002187/0.008446, allocations: 28.34 kB / 0.8174 GB, free: 11.48 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005551/0.009001, allocations: 164 kB / 0.8175 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.028e-05/0.009041, allocations: 59.22 kB / 0.8176 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.874e-05/0.00907, allocations: 9.609 kB / 0.8176 GB, free: 11.2 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.13e-05/0.009101, allocations: 16.5 kB / 0.8176 GB, free: 11.19 MB / 0.7761 GB Notification: Performance of SimCode: time 7.71e-07/0.009102, allocations: 1.031 kB / 0.8176 GB, free: 11.19 MB / 0.7761 GB Notification: Performance of Templates: time 0.003234/0.01234, allocations: 1.098 MB / 0.8187 GB, free: 10.12 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=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.347193702124059]