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.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.001067/0.001067, allocations: 87.58 kB / 20.45 MB, free: 4.117 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.0009986/0.0009986, allocations: 161 kB / 23.82 MB, free: 0.75 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 0.9143/0.9143, allocations: 177.1 MB / 204.2 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.77/1.77, allocations: 359 MB / 0.6052 GB, free: 11.01 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_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 2.465e-06/2.465e-06, allocations: 0 / 0.7871 GB, free: 12.49 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.891e-05/2.137e-05, allocations: 5.125 kB / 0.7871 GB, free: 12.48 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.00123/0.001251, allocations: 0.6916 MB / 0.7878 GB, free: 11.81 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001183/0.002434, allocations: 1.133 MB / 0.7889 GB, free: 10.66 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.356e-05/0.002478, allocations: 0 / 0.7889 GB, free: 10.66 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.891e-05/0.002507, allocations: 3.938 kB / 0.7889 GB, free: 10.66 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 7.015e-05/0.002577, allocations: 12.84 kB / 0.7889 GB, free: 10.65 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002878/0.002864, allocations: 55.69 kB / 0.7889 GB, free: 10.59 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 9.687e-05/0.002961, allocations: 68.73 kB / 0.789 GB, free: 10.53 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 9.285e-05/0.003054, allocations: 7.984 kB / 0.789 GB, free: 10.52 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001174/0.003172, allocations: 44.39 kB / 0.7891 GB, free: 10.48 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 4.843e-05/0.00322, allocations: 25.06 kB / 0.7891 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.819e-05/0.003238, allocations: 8 kB / 0.7891 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 7.139e-05/0.00331, allocations: 19.98 kB / 0.7891 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.416e-05/0.003334, allocations: 19.92 kB / 0.7891 GB, free: 10.41 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 3.112e-05/0.003365, allocations: 20.53 kB / 0.7891 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001314/0.003496, allocations: 64.48 kB / 0.7892 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.003498, allocations: 0 / 0.7892 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of FrontEnd: time 5.31e-07/0.003499, allocations: 0.9062 kB / 0.7892 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.478e-06/0.003503, allocations: 0 / 0.7892 GB, free: 10.32 MB / 0.7448 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.0004855/0.003989, allocations: 406.7 kB / 0.7896 GB, free: 9.891 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.004027, allocations: 8.031 kB / 0.7896 GB, free: 9.883 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001023/0.004129, allocations: 12.89 kB / 0.7896 GB, free: 9.871 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.886e-05/0.004218, allocations: 124.5 kB / 0.7897 GB, free: 9.723 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.036e-05/0.004238, allocations: 5.75 kB / 0.7897 GB, free: 9.719 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.377e-05/0.004252, allocations: 8.375 kB / 0.7897 GB, free: 9.711 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000139/0.004391, allocations: 78.86 kB / 0.7898 GB, free: 9.625 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.0044, allocations: 192 / 0.7898 GB, free: 9.625 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.729e-06/0.004409, allocations: 5.906 kB / 0.7898 GB, free: 9.621 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.635e-06/0.004417, allocations: 384 / 0.7898 GB, free: 9.621 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.586e-05/0.004463, allocations: 23.92 kB / 0.7898 GB, free: 9.598 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004364/0.004899, allocations: 303.1 kB / 0.7901 GB, free: 9.27 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001029/0.005002, allocations: 59.05 kB / 0.7902 GB, free: 9.199 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.308e-05/0.005035, allocations: 19.67 kB / 0.7902 GB, free: 9.176 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.665e-05/0.005052, allocations: 4 kB / 0.7902 GB, free: 9.172 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.122e-05/0.005143, allocations: 85.09 kB / 0.7903 GB, free: 9.074 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=10): time 1.192e-06/0.005144, allocations: 0 / 0.7903 GB, free: 9.074 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10): time 0.0002285/0.005373, allocations: 121.5 kB / 0.7904 GB, free: 8.949 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.323e-05/0.005406, allocations: 51.41 kB / 0.7905 GB, free: 8.887 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.092e-05/0.005477, allocations: 166.4 kB / 0.7906 GB, free: 8.707 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.695e-05/0.005494, allocations: 38.31 kB / 0.7907 GB, free: 8.664 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.622e-05/0.00554, allocations: 131.1 kB / 0.7908 GB, free: 8.527 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.274e-05/0.005563, allocations: 28.48 kB / 0.7908 GB, free: 8.5 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-05/0.005605, allocations: 39.36 kB / 0.7908 GB, free: 8.453 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.000103/0.005708, allocations: 0.4896 MB / 0.7913 GB, free: 7.953 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.82e-05/0.005736, allocations: 15.98 kB / 0.7913 GB, free: 7.938 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.671e-05/0.005782, allocations: 51.23 kB / 0.7914 GB, free: 7.875 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.309e-05/0.005856, allocations: 64.78 kB / 0.7914 GB, free: 7.801 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.005859, allocations: 4.109 kB / 0.7915 GB, free: 7.797 MB / 0.7448 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002532/0.006112, allocations: 110.5 kB / 0.7916 GB, free: 7.684 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.006126, allocations: 9.5 kB / 0.7916 GB, free: 7.676 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.006131, allocations: 1.031 kB / 0.7916 GB, free: 7.676 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.006143, allocations: 4 kB / 0.7916 GB, free: 7.672 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.836e-05/0.006232, allocations: 23.92 kB / 0.7916 GB, free: 7.648 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.006238, allocations: 4.875 kB / 0.7916 GB, free: 7.645 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.82e-05/0.006266, allocations: 11.98 kB / 0.7916 GB, free: 7.633 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.837e-06/0.006275, allocations: 5.062 kB / 0.7916 GB, free: 7.629 MB / 0.7448 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.467e-05/0.006349, allocations: 160.6 kB / 0.7918 GB, free: 7.461 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.334e-05/0.006363, allocations: 22.59 kB / 0.7918 GB, free: 7.441 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001412/0.006504, allocations: 110 kB / 0.7919 GB, free: 7.332 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.006506, allocations: 4 kB / 0.7919 GB, free: 7.328 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.00651, allocations: 0 / 0.7919 GB, free: 7.328 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.006513, allocations: 0 / 0.7919 GB, free: 7.328 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002378/0.006751, allocations: 373.2 kB / 0.7923 GB, free: 6.922 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.006752, allocations: 0 / 0.7923 GB, free: 6.922 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.967e-05/0.006782, allocations: 9.594 kB / 0.7923 GB, free: 6.914 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.006784, allocations: 3.938 kB / 0.7923 GB, free: 6.91 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.205e-06/0.006792, allocations: 3.984 kB / 0.7923 GB, free: 6.906 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.006794, allocations: 4 kB / 0.7923 GB, free: 6.902 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.006795, allocations: 0 / 0.7923 GB, free: 6.902 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001418/0.006937, allocations: 252.4 kB / 0.7925 GB, free: 6.637 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 8.486e-06/0.006945, allocations: 8.516 kB / 0.7925 GB, free: 6.629 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.571e-05/0.006961, allocations: 7.984 kB / 0.7925 GB, free: 6.621 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.171e-05/0.007003, allocations: 4.531 kB / 0.7925 GB, free: 6.617 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.748e-05/0.00704, allocations: 8.609 kB / 0.7925 GB, free: 6.609 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-06/0.007048, allocations: 5.312 kB / 0.7926 GB, free: 6.605 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.58e-05/0.007084, allocations: 131.2 kB / 0.7927 GB, free: 6.477 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.007084, allocations: 0 / 0.7927 GB, free: 6.477 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001627/0.007247, allocations: 20 kB / 0.7927 GB, free: 6.457 MB / 0.7448 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.0001149/0.007362, allocations: 105.8 kB / 0.7928 GB, free: 6.344 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001348/0.007496, allocations: 71.52 kB / 0.7929 GB, free: 6.27 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.292e-06/0.007498, allocations: 0 / 0.7929 GB, free: 6.27 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 4.32e-05/0.007541, allocations: 31.67 kB / 0.7929 GB, free: 6.234 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001803/0.007721, allocations: 12.75 kB / 0.7929 GB, free: 6.223 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000449/0.00817, allocations: 173.3 kB / 0.7931 GB, free: 6.027 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.638e-05/0.008207, allocations: 59.34 kB / 0.7931 GB, free: 5.949 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.453e-05/0.008231, allocations: 9.594 kB / 0.7931 GB, free: 5.941 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.662e-05/0.008258, allocations: 16.5 kB / 0.7932 GB, free: 5.922 MB / 0.7448 GB Notification: Performance of SimCode: time 6.22e-07/0.008258, allocations: 0.8438 kB / 0.7932 GB, free: 5.922 MB / 0.7448 GB Notification: Performance of Templates: time 0.002697/0.01096, allocations: 1.151 MB / 0.7943 GB, free: 4.816 MB / 0.7448 GB " [Timeout remaining time 300] 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=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.925401329062879]