Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.Factorial.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.0009012/0.0009012, allocations: 83.59 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.001088/0.001088, allocations: 169 kB / 23.82 MB, free: 0.7422 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.9433/0.9433, allocations: 177.2 MB / 204.2 MB, free: 5.629 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.853/1.853, allocations: 377.8 MB / 0.6236 GB, free: 8.531 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.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.013e-06/2.013e-06, allocations: 0 / 0.8115 GB, free: 1.707 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.281e-05/3.482e-05, allocations: 3 kB / 0.8115 GB, free: 1.703 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002693/0.002728, allocations: 1.58 MB / 0.8131 GB, free: 136 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.000395/0.003123, allocations: 125.3 kB / 0.8132 GB, free: 12 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.011e-05/0.003163, allocations: 0 / 0.8132 GB, free: 12 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 3.334e-05/0.003197, allocations: 3.938 kB / 0.8132 GB, free: 8 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 5.673e-05/0.003253, allocations: 7.938 kB / 0.8132 GB, free: 0 / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003297/0.003583, allocations: 25.5 kB / 0.8132 GB, free: 15.97 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 7.747e-05/0.003661, allocations: 27.92 kB / 0.8133 GB, free: 15.95 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 9.509e-05/0.003756, allocations: 11.89 kB / 0.8133 GB, free: 15.94 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 5.908e-05/0.003815, allocations: 19.98 kB / 0.8133 GB, free: 15.92 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 5.242e-05/0.003867, allocations: 15.92 kB / 0.8133 GB, free: 15.9 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.585e-05/0.003883, allocations: 1.75 kB / 0.8133 GB, free: 15.9 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.775e-05/0.003951, allocations: 8 kB / 0.8133 GB, free: 15.89 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 1.743e-05/0.003968, allocations: 15.97 kB / 0.8133 GB, free: 15.88 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 1.964e-05/0.003988, allocations: 4 kB / 0.8133 GB, free: 15.88 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001324/0.00412, allocations: 37.05 kB / 0.8134 GB, free: 15.84 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.004124, allocations: 0 / 0.8134 GB, free: 15.84 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.823e-06/0.004126, allocations: 0 / 0.8134 GB, free: 15.84 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.004131, allocations: 4 kB / 0.8134 GB, free: 15.84 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003783/0.00451, allocations: 362.5 kB / 0.8137 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.004545, allocations: 8.031 kB / 0.8137 GB, free: 15.44 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.831e-05/0.004584, allocations: 4.938 kB / 0.8137 GB, free: 15.43 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.308e-05/0.004667, allocations: 120.5 kB / 0.8139 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.013e-05/0.004687, allocations: 2.875 kB / 0.8139 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.498e-06/0.004696, allocations: 384 / 0.8139 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001476/0.004844, allocations: 62.94 kB / 0.8139 GB, free: 15.22 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.004851, allocations: 192 / 0.8139 GB, free: 15.22 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.578e-06/0.00486, allocations: 384 / 0.8139 GB, free: 15.22 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.004867, allocations: 384 / 0.8139 GB, free: 15.22 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.947e-05/0.004906, allocations: 16.64 kB / 0.8139 GB, free: 15.2 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003238/0.00523, allocations: 263.8 kB / 0.8142 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001854/0.005415, allocations: 47.58 kB / 0.8142 GB, free: 14.85 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.459e-05/0.00544, allocations: 13.41 kB / 0.8142 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 8.114e-05/0.005521, allocations: 11.98 kB / 0.8143 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.03e-05/0.005541, allocations: 33.39 kB / 0.8143 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=3): time 1.373e-06/0.005543, allocations: 0 / 0.8143 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3): time 0.0001474/0.00569, allocations: 58.36 kB / 0.8143 GB, free: 14.72 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.843e-05/0.005719, allocations: 52.5 kB / 0.8144 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.156e-05/0.00579, allocations: 166 kB / 0.8146 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.13e-05/0.005801, allocations: 25.7 kB / 0.8146 GB, free: 14.45 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.328e-05/0.005855, allocations: 132 kB / 0.8147 GB, free: 14.31 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.956e-05/0.005874, allocations: 7.953 kB / 0.8147 GB, free: 14.3 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.512e-05/0.005909, allocations: 19.38 kB / 0.8147 GB, free: 14.28 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.006023, allocations: 0.4936 MB / 0.8152 GB, free: 13.77 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.988e-05/0.006043, allocations: 4 kB / 0.8152 GB, free: 13.77 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.39e-05/0.006057, allocations: 4 kB / 0.8152 GB, free: 13.77 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.288e-05/0.00615, allocations: 23.67 kB / 0.8152 GB, free: 13.74 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.006152, allocations: 1.156 kB / 0.8152 GB, free: 13.74 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.029e-05/0.006222, allocations: 45.59 kB / 0.8153 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.006238, allocations: 12.61 kB / 0.8153 GB, free: 13.68 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.006242, allocations: 0 / 0.8153 GB, free: 13.68 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.006253, allocations: 0.6562 kB / 0.8153 GB, free: 13.68 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.991e-05/0.006313, allocations: 12 kB / 0.8153 GB, free: 13.66 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.006318, allocations: 0.8438 kB / 0.8153 GB, free: 13.66 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.138e-05/0.006339, allocations: 7.984 kB / 0.8153 GB, free: 13.66 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.4e-06/0.006345, allocations: 1.906 kB / 0.8153 GB, free: 13.66 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (rea2Int.y,fac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 6.77e-05/0.006413, allocations: 152.6 kB / 0.8155 GB, free: 13.5 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.482e-05/0.006427, allocations: 4 kB / 0.8155 GB, free: 13.49 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001115/0.006539, allocations: 61.23 kB / 0.8155 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.006542, allocations: 4.719 kB / 0.8155 GB, free: 13.42 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.006545, allocations: 0 / 0.8155 GB, free: 13.42 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.006548, allocations: 2.375 kB / 0.8155 GB, free: 13.42 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001017/0.00665, allocations: 116.6 kB / 0.8156 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.006652, allocations: 0 / 0.8156 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.579e-05/0.006698, allocations: 8 kB / 0.8157 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.0067, allocations: 0 / 0.8157 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.744e-06/0.006708, allocations: 4 kB / 0.8157 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.00671, allocations: 5.844 kB / 0.8157 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.006712, allocations: 0 / 0.8157 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000118/0.00683, allocations: 199.9 kB / 0.8159 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 6.372e-06/0.006836, allocations: 0 / 0.8159 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.048e-05/0.006847, allocations: 0 / 0.8159 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.383e-05/0.00688, allocations: 8.438 kB / 0.8159 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.056e-05/0.006931, allocations: 16.84 kB / 0.8159 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.958e-06/0.006935, allocations: 0 / 0.8159 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.825e-05/0.006973, allocations: 128.5 kB / 0.816 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.006973, allocations: 0 / 0.816 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.000155/0.007128, allocations: 11.94 kB / 0.816 GB, free: 12.88 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: 2 (fac.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0001226/0.007251, allocations: 103.9 kB / 0.8161 GB, free: 12.77 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 8.489e-05/0.007336, allocations: 28.33 kB / 0.8161 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.007337, allocations: 3.688 kB / 0.8161 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 2.505e-05/0.007362, allocations: 15.69 kB / 0.8162 GB, free: 12.72 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001695/0.007532, allocations: 3.938 kB / 0.8162 GB, free: 12.72 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002876/0.007819, allocations: 130.3 kB / 0.8163 GB, free: 12.56 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.738e-05/0.007857, allocations: 59.22 kB / 0.8163 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 1.866e-05/0.007875, allocations: 0 / 0.8163 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.749e-05/0.007903, allocations: 14.5 kB / 0.8164 GB, free: 12.47 MB / 0.7761 GB Notification: Performance of SimCode: time 8.72e-07/0.007904, allocations: 0 / 0.8164 GB, free: 12.47 MB / 0.7761 GB Notification: Performance of Templates: time 0.002572/0.01048, allocations: 0.8036 MB / 0.8171 GB, free: 11.7 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_Factorial.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.066492803860456]