Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001128/0.001128, allocations: 73.09 kB / 20.66 MB, free: 3.844 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.00114/0.00114, allocations: 169 kB / 24.06 MB, free: 456 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.052/1.052, allocations: 177.1 MB / 204.5 MB, free: 5.508 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.259/2.259, allocations: 429.5 MB / 0.6743 GB, free: 3.91 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.406e-06/3.406e-06, allocations: 1.094 kB / 0.8794 GB, free: 6.047 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.394e-05/2.734e-05, allocations: 5.125 kB / 0.8794 GB, free: 6.043 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001483/0.001511, allocations: 0.7041 MB / 0.8801 GB, free: 5.367 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001353/0.002864, allocations: 1.131 MB / 0.8812 GB, free: 4.227 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.148e-05/0.002925, allocations: 0 / 0.8812 GB, free: 4.227 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.471e-05/0.00296, allocations: 3.938 kB / 0.8812 GB, free: 4.223 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 9.322e-05/0.003053, allocations: 13.33 kB / 0.8812 GB, free: 4.211 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003189/0.003372, allocations: 55.69 kB / 0.8812 GB, free: 4.156 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001275/0.003499, allocations: 75.77 kB / 0.8813 GB, free: 4.082 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.003603, allocations: 5 kB / 0.8813 GB, free: 4.078 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00011/0.003713, allocations: 35.97 kB / 0.8813 GB, free: 4.043 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 6.023e-05/0.003773, allocations: 31.89 kB / 0.8814 GB, free: 4.012 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.007e-05/0.003793, allocations: 5.125 kB / 0.8814 GB, free: 4.008 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 8.058e-05/0.003874, allocations: 23.98 kB / 0.8814 GB, free: 3.984 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.808e-05/0.003902, allocations: 15.97 kB / 0.8814 GB, free: 3.969 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.091e-05/0.003933, allocations: 21.05 kB / 0.8814 GB, free: 3.949 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001522/0.004085, allocations: 67.78 kB / 0.8815 GB, free: 3.883 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.004088, allocations: 0 / 0.8815 GB, free: 3.883 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.072e-06/0.004089, allocations: 1.031 kB / 0.8815 GB, free: 3.883 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.688e-06/0.004094, allocations: 0 / 0.8815 GB, free: 3.883 MB / 0.8386 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.0005079/0.004602, allocations: 417.2 kB / 0.8819 GB, free: 3.438 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.004642, allocations: 8.531 kB / 0.8819 GB, free: 3.43 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.00475, allocations: 14.67 kB / 0.8819 GB, free: 3.418 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001007/0.004851, allocations: 108.6 kB / 0.882 GB, free: 3.285 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.176e-05/0.004873, allocations: 8.359 kB / 0.882 GB, free: 3.277 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.208e-05/0.004885, allocations: 8.375 kB / 0.882 GB, free: 3.27 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001313/0.005016, allocations: 70.92 kB / 0.8821 GB, free: 3.191 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.005024, allocations: 1.375 kB / 0.8821 GB, free: 3.191 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.767e-06/0.005033, allocations: 384 / 0.8821 GB, free: 3.191 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.005041, allocations: 4.375 kB / 0.8821 GB, free: 3.188 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.639e-05/0.005077, allocations: 20.95 kB / 0.8821 GB, free: 3.168 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003515/0.005429, allocations: 284.9 kB / 0.8824 GB, free: 2.863 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.673e-05/0.005525, allocations: 56.61 kB / 0.8825 GB, free: 2.797 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.311e-05/0.005548, allocations: 19.69 kB / 0.8825 GB, free: 2.773 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.592e-05/0.005564, allocations: 4.172 kB / 0.8825 GB, free: 2.77 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.328e-05/0.005648, allocations: 68.98 kB / 0.8826 GB, free: 2.688 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 2.284e-06/0.00565, allocations: 6.766 kB / 0.8826 GB, free: 2.684 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.000208/0.005858, allocations: 117.5 kB / 0.8827 GB, free: 2.562 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.004e-05/0.005898, allocations: 55.41 kB / 0.8827 GB, free: 2.496 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.896e-05/0.005987, allocations: 165.9 kB / 0.8829 GB, free: 2.316 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.006004, allocations: 29.7 kB / 0.8829 GB, free: 2.281 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.192e-05/0.006066, allocations: 135.1 kB / 0.883 GB, free: 2.141 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.694e-05/0.006093, allocations: 27.78 kB / 0.8831 GB, free: 2.113 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.647e-05/0.00614, allocations: 41.09 kB / 0.8831 GB, free: 2.066 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001548/0.006294, allocations: 0.4884 MB / 0.8836 GB, free: 1.566 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.541e-05/0.00632, allocations: 15.92 kB / 0.8836 GB, free: 1.551 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.306e-05/0.006363, allocations: 43.03 kB / 0.8836 GB, free: 1.496 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.153e-05/0.006434, allocations: 67.59 kB / 0.8837 GB, free: 1.418 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.006437, allocations: 1.656 kB / 0.8837 GB, free: 1.418 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001144/0.006551, allocations: 101.6 kB / 0.8838 GB, free: 1.312 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.006565, allocations: 8 kB / 0.8838 GB, free: 1.305 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.006572, allocations: 8.594 kB / 0.8838 GB, free: 1.297 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.006584, allocations: 0 / 0.8838 GB, free: 1.297 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.469e-05/0.006678, allocations: 24.8 kB / 0.8838 GB, free: 1.273 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.608e-06/0.006683, allocations: 0 / 0.8838 GB, free: 1.273 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.776e-05/0.006721, allocations: 16.27 kB / 0.8839 GB, free: 1.258 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.076e-05/0.006732, allocations: 4 kB / 0.8839 GB, free: 1.254 MB / 0.8386 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.0001076/0.006839, allocations: 164.5 kB / 0.884 GB, free: 1.082 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.529e-05/0.006854, allocations: 11.94 kB / 0.884 GB, free: 1.07 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001599/0.007014, allocations: 113.9 kB / 0.8841 GB, free: 0.9492 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.007017, allocations: 0 / 0.8841 GB, free: 0.9492 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.007019, allocations: 0 / 0.8841 GB, free: 0.9492 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.007027, allocations: 7.984 kB / 0.8841 GB, free: 0.9414 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002981/0.007325, allocations: 330.5 kB / 0.8845 GB, free: 0.5859 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.007327, allocations: 0 / 0.8845 GB, free: 0.5859 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.03e-05/0.007368, allocations: 15.98 kB / 0.8845 GB, free: 0.5703 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.007372, allocations: 3.938 kB / 0.8845 GB, free: 0.5664 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.133e-06/0.007379, allocations: 0 / 0.8845 GB, free: 0.5664 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.00738, allocations: 0 / 0.8845 GB, free: 0.5664 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.007382, allocations: 0 / 0.8845 GB, free: 0.5664 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001652/0.007547, allocations: 255.8 kB / 0.8847 GB, free: 304 kB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.647e-06/0.007556, allocations: 7.953 kB / 0.8847 GB, free: 296 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.002e-05/0.007576, allocations: 11.92 kB / 0.8847 GB, free: 284 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.508e-05/0.007621, allocations: 7.938 kB / 0.8848 GB, free: 276 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.463e-05/0.007665, allocations: 7.984 kB / 0.8848 GB, free: 268 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.992e-06/0.007671, allocations: 0 / 0.8848 GB, free: 268 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.154e-05/0.007723, allocations: 135.2 kB / 0.8849 GB, free: 132 kB / 0.8386 GB Notification: Performance of sort global known variables: time 5e-08/0.007723, allocations: 4 kB / 0.8849 GB, free: 128 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001681/0.007891, allocations: 12 kB / 0.8849 GB, free: 116 kB / 0.8386 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.0001635/0.008054, allocations: 115.2 kB / 0.885 GB, free: 15.99 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001291/0.008184, allocations: 59.58 kB / 0.8851 GB, free: 15.93 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.212e-06/0.008185, allocations: 0 / 0.8851 GB, free: 15.93 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.174e-05/0.008227, allocations: 27.67 kB / 0.8851 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002062/0.008433, allocations: 13.61 kB / 0.8851 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004762/0.008909, allocations: 174.6 kB / 0.8853 GB, free: 15.69 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.847e-05/0.008957, allocations: 59.34 kB / 0.8853 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.859e-05/0.008986, allocations: 4.5 kB / 0.8853 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.133e-05/0.009057, allocations: 86.19 kB / 0.8854 GB, free: 15.52 MB / 0.8542 GB Notification: Performance of SimCode: time 1.373e-06/0.009059, allocations: 0 / 0.8854 GB, free: 15.52 MB / 0.8542 GB Notification: Performance of Templates: time 0.003122/0.01218, allocations: 1.215 MB / 0.8866 GB, free: 14.33 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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: 6.053009391762316]