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.001328/0.001328, allocations: 81.86 kB / 20.68 MB, free: 3.812 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.001618/0.001618, allocations: 185 kB / 24.09 MB, free: 412 kB / 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.006/1.006, allocations: 177.1 MB / 204.5 MB, free: 5.484 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.895/1.895, allocations: 377.9 MB / 0.6239 GB, free: 8.387 MB / 0.5886 GB " [Timeout remaining time 178] 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.447e-06/3.447e-06, allocations: 4 kB / 0.812 GB, free: 1.469 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.216e-05/2.561e-05, allocations: 7.844 kB / 0.812 GB, free: 1.461 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001387/0.001413, allocations: 0.6868 MB / 0.8127 GB, free: 0.7969 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001123/0.002536, allocations: 1.133 MB / 0.8138 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.055e-05/0.002597, allocations: 3.938 kB / 0.8138 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 2.536e-05/0.002622, allocations: 0 / 0.8138 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 6.929e-05/0.002691, allocations: 17.27 kB / 0.8138 GB, free: 15.63 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002825/0.002974, allocations: 55.69 kB / 0.8138 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 8.699e-05/0.003061, allocations: 67.83 kB / 0.8139 GB, free: 15.51 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 8.147e-05/0.003142, allocations: 9.797 kB / 0.8139 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 8.49e-05/0.003227, allocations: 39.91 kB / 0.8139 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 5.105e-05/0.003278, allocations: 27.95 kB / 0.814 GB, free: 15.44 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.984e-05/0.003298, allocations: 8 kB / 0.814 GB, free: 15.43 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.152e-05/0.003359, allocations: 15.98 kB / 0.814 GB, free: 15.41 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.457e-05/0.003384, allocations: 25.56 kB / 0.814 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 2.527e-05/0.003409, allocations: 16 kB / 0.814 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001356/0.003545, allocations: 71.7 kB / 0.8141 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.003547, allocations: 0 / 0.8141 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of FrontEnd: time 7.51e-07/0.003548, allocations: 1.344 kB / 0.8141 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.657e-06/0.003552, allocations: 0 / 0.8141 GB, free: 15.3 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.0004362/0.003988, allocations: 406.3 kB / 0.8145 GB, free: 14.87 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.004024, allocations: 8.031 kB / 0.8145 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.912e-05/0.004123, allocations: 24.81 kB / 0.8145 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.655e-05/0.004199, allocations: 112.6 kB / 0.8146 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.743e-05/0.004217, allocations: 4.375 kB / 0.8146 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.08e-05/0.004227, allocations: 10.66 kB / 0.8146 GB, free: 14.69 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001211/0.004349, allocations: 78.8 kB / 0.8147 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.004357, allocations: 4.188 kB / 0.8147 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.833e-06/0.004364, allocations: 384 / 0.8147 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.004369, allocations: 384 / 0.8147 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.126e-05/0.004401, allocations: 15.92 kB / 0.8147 GB, free: 14.59 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003085/0.004709, allocations: 281 kB / 0.815 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 7.913e-05/0.004788, allocations: 57.16 kB / 0.8151 GB, free: 14.22 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.299e-05/0.004811, allocations: 19.67 kB / 0.8151 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.004836, allocations: 8 kB / 0.8151 GB, free: 14.19 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.367e-05/0.00492, allocations: 69.59 kB / 0.8152 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.004921, allocations: 4 kB / 0.8152 GB, free: 14.1 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10): time 0.0001919/0.005113, allocations: 111 kB / 0.8153 GB, free: 13.99 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.35e-05/0.005147, allocations: 59.34 kB / 0.8153 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.185e-05/0.005219, allocations: 165.9 kB / 0.8155 GB, free: 13.74 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.592e-05/0.005235, allocations: 34.97 kB / 0.8155 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.021e-05/0.005285, allocations: 147 kB / 0.8157 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.321e-05/0.005308, allocations: 23.78 kB / 0.8157 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.018e-05/0.005348, allocations: 40.73 kB / 0.8157 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001111/0.005459, allocations: 0.4884 MB / 0.8162 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.3e-05/0.005482, allocations: 11.98 kB / 0.8162 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.644e-05/0.005519, allocations: 47.03 kB / 0.8162 GB, free: 12.91 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.377e-05/0.005583, allocations: 64.11 kB / 0.8163 GB, free: 12.83 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.005584, allocations: 0.5625 kB / 0.8163 GB, free: 12.83 MB / 0.7761 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001068/0.005691, allocations: 98.47 kB / 0.8164 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.005704, allocations: 6.5 kB / 0.8164 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.005709, allocations: 4.781 kB / 0.8164 GB, free: 12.72 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.00572, allocations: 7.938 kB / 0.8164 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.817e-05/0.005798, allocations: 21.64 kB / 0.8164 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.005802, allocations: 4 kB / 0.8164 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.72e-05/0.005829, allocations: 7.984 kB / 0.8165 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.508e-06/0.005839, allocations: 4 kB / 0.8165 GB, free: 12.68 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 7.717e-05/0.005916, allocations: 169.4 kB / 0.8166 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.209e-05/0.005928, allocations: 7.953 kB / 0.8166 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001417/0.00607, allocations: 112.1 kB / 0.8167 GB, free: 12.38 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.006072, allocations: 0 / 0.8167 GB, free: 12.38 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.006075, allocations: 4.234 kB / 0.8167 GB, free: 12.38 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.006078, allocations: 0 / 0.8167 GB, free: 12.38 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002326/0.00631, allocations: 346 kB / 0.8171 GB, free: 12.01 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.006312, allocations: 4 kB / 0.8171 GB, free: 12 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.138e-05/0.006344, allocations: 6.156 kB / 0.8171 GB, free: 12 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.006347, allocations: 3.938 kB / 0.8171 GB, free: 12 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.673e-06/0.006354, allocations: 4 kB / 0.8171 GB, free: 11.99 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.006355, allocations: 0 / 0.8171 GB, free: 11.99 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.006356, allocations: 0 / 0.8171 GB, free: 11.99 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001375/0.006494, allocations: 251.8 kB / 0.8173 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 7.254e-06/0.006501, allocations: 4.453 kB / 0.8173 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.32e-05/0.006514, allocations: 8.469 kB / 0.8173 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.631e-05/0.006561, allocations: 13.33 kB / 0.8173 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.857e-05/0.006589, allocations: 7.984 kB / 0.8174 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.441e-06/0.006595, allocations: 0 / 0.8174 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.406e-05/0.006629, allocations: 127.1 kB / 0.8175 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.9e-07/0.006629, allocations: 0.5938 kB / 0.8175 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001578/0.006787, allocations: 20.5 kB / 0.8175 GB, free: 11.55 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.0001199/0.006907, allocations: 111.8 kB / 0.8176 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001084/0.007015, allocations: 60.17 kB / 0.8177 GB, free: 11.37 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.007017, allocations: 3.438 kB / 0.8177 GB, free: 11.37 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 3.611e-05/0.007053, allocations: 31.61 kB / 0.8177 GB, free: 11.34 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001901/0.007243, allocations: 15.92 kB / 0.8177 GB, free: 11.32 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003936/0.007636, allocations: 167.7 kB / 0.8179 GB, free: 11.13 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.387e-05/0.00767, allocations: 59.22 kB / 0.8179 GB, free: 11.05 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.727e-05/0.007698, allocations: 10.64 kB / 0.8179 GB, free: 11.04 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.298e-05/0.007751, allocations: 78.2 kB / 0.818 GB, free: 10.96 MB / 0.7761 GB Notification: Performance of SimCode: time 6.81e-07/0.007751, allocations: 0 / 0.818 GB, free: 10.96 MB / 0.7761 GB Notification: Performance of Templates: time 0.002875/0.01063, allocations: 1.191 MB / 0.8192 GB, free: 9.809 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.165578816086054]