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.0008601/0.0008601, allocations: 81.86 kB / 20.68 MB, free: 3.816 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.001005/0.001005, allocations: 181 kB / 24.09 MB, free: 416 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 0.9946/0.9946, allocations: 177.1 MB / 204.5 MB, free: 5.52 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.877/1.877, allocations: 377.9 MB / 0.6239 GB, free: 8.426 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 1.673e-06/1.673e-06, allocations: 0 / 0.812 GB, free: 344 kB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.675e-05/1.843e-05, allocations: 2.312 kB / 0.812 GB, free: 340 kB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001872/0.001891, allocations: 1.576 MB / 0.8135 GB, free: 14.76 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.000277/0.002168, allocations: 125.2 kB / 0.8137 GB, free: 14.64 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.383e-05/0.002201, allocations: 4 kB / 0.8137 GB, free: 14.64 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 2.433e-05/0.002226, allocations: 4.438 kB / 0.8137 GB, free: 14.63 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 3.949e-05/0.002265, allocations: 1.469 kB / 0.8137 GB, free: 14.63 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002041/0.002469, allocations: 32.7 kB / 0.8137 GB, free: 14.6 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 5.546e-05/0.002525, allocations: 28.58 kB / 0.8137 GB, free: 14.57 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 7.461e-05/0.002599, allocations: 4 kB / 0.8137 GB, free: 14.57 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 5.941e-05/0.002659, allocations: 29.09 kB / 0.8138 GB, free: 14.54 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 3.884e-05/0.002698, allocations: 11.98 kB / 0.8138 GB, free: 14.53 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 1.295e-05/0.002711, allocations: 4 kB / 0.8138 GB, free: 14.53 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 5.185e-05/0.002762, allocations: 4.562 kB / 0.8138 GB, free: 14.52 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 1.38e-05/0.002776, allocations: 12.77 kB / 0.8138 GB, free: 14.51 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 1.581e-05/0.002792, allocations: 11.92 kB / 0.8138 GB, free: 14.5 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 8.946e-05/0.002881, allocations: 23.97 kB / 0.8138 GB, free: 14.48 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.002884, allocations: 5.594 kB / 0.8138 GB, free: 14.47 MB / 0.7292 GB Notification: Performance of FrontEnd: time 5.11e-07/0.002885, allocations: 0 / 0.8138 GB, free: 14.47 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 3.566e-06/0.002888, allocations: 0 / 0.8138 GB, free: 14.47 MB / 0.7292 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.0003159/0.003204, allocations: 365.3 kB / 0.8142 GB, free: 14.08 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.003243, allocations: 12.03 kB / 0.8142 GB, free: 14.07 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.799e-05/0.003271, allocations: 4.891 kB / 0.8142 GB, free: 14.06 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.32e-05/0.003344, allocations: 113.3 kB / 0.8143 GB, free: 13.93 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.508e-05/0.003359, allocations: 384 / 0.8143 GB, free: 13.93 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.446e-06/0.003368, allocations: 6.062 kB / 0.8143 GB, free: 13.92 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001067/0.003474, allocations: 62.92 kB / 0.8144 GB, free: 13.85 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.5e-06/0.00348, allocations: 192 / 0.8144 GB, free: 13.85 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.632e-06/0.003486, allocations: 4.312 kB / 0.8144 GB, free: 13.85 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.003493, allocations: 5.906 kB / 0.8144 GB, free: 13.84 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.42e-05/0.003518, allocations: 11.92 kB / 0.8144 GB, free: 13.83 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002353/0.003753, allocations: 252.2 kB / 0.8146 GB, free: 13.56 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001365/0.003889, allocations: 44.27 kB / 0.8147 GB, free: 13.5 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.698e-05/0.003906, allocations: 15.75 kB / 0.8147 GB, free: 13.48 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 6.15e-05/0.003968, allocations: 7.984 kB / 0.8147 GB, free: 13.48 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.764e-05/0.003985, allocations: 34.77 kB / 0.8147 GB, free: 13.43 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 8.92e-07/0.003986, allocations: 4 kB / 0.8147 GB, free: 13.43 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.0001077/0.004094, allocations: 53.56 kB / 0.8148 GB, free: 13.37 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.377e-05/0.004118, allocations: 53.16 kB / 0.8148 GB, free: 13.31 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.989e-05/0.004178, allocations: 161.9 kB / 0.815 GB, free: 13.13 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 9.698e-06/0.004187, allocations: 25.7 kB / 0.815 GB, free: 13.1 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 4.043e-05/0.004228, allocations: 130.9 kB / 0.8151 GB, free: 12.97 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.162e-05/0.004239, allocations: 3.953 kB / 0.8151 GB, free: 12.96 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.677e-05/0.004266, allocations: 24.5 kB / 0.8152 GB, free: 12.93 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.004377, allocations: 0.4884 MB / 0.8156 GB, free: 12.43 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.093e-05/0.004388, allocations: 4 kB / 0.8156 GB, free: 12.43 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.015e-06/0.004396, allocations: 1.531 kB / 0.8156 GB, free: 12.43 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.338e-05/0.00442, allocations: 15.69 kB / 0.8157 GB, free: 12.41 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.004421, allocations: 0 / 0.8157 GB, free: 12.41 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.209e-05/0.004473, allocations: 53.58 kB / 0.8157 GB, free: 12.35 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 8.917e-06/0.004482, allocations: 6.594 kB / 0.8157 GB, free: 12.35 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.004486, allocations: 0 / 0.8157 GB, free: 12.35 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.03e-05/0.004496, allocations: 11.92 kB / 0.8157 GB, free: 12.34 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.633e-05/0.004592, allocations: 4 kB / 0.8157 GB, free: 12.33 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.375e-06/0.004595, allocations: 0 / 0.8157 GB, free: 12.33 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.786e-05/0.004613, allocations: 4 kB / 0.8157 GB, free: 12.33 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.029e-06/0.004618, allocations: 4.5 kB / 0.8157 GB, free: 12.32 MB / 0.7292 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 5.594e-05/0.004674, allocations: 161.3 kB / 0.8159 GB, free: 12.16 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.247e-05/0.004686, allocations: 0.5156 kB / 0.8159 GB, free: 12.16 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.832e-05/0.004754, allocations: 53.84 kB / 0.8159 GB, free: 12.1 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.004758, allocations: 9.625 kB / 0.8159 GB, free: 12.09 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-06/0.00476, allocations: 0 / 0.8159 GB, free: 12.09 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.004763, allocations: 7.922 kB / 0.816 GB, free: 12.08 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.434e-05/0.004847, allocations: 101.2 kB / 0.8161 GB, free: 11.96 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.004848, allocations: 0.5 kB / 0.8161 GB, free: 11.96 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.36e-05/0.004872, allocations: 12.58 kB / 0.8161 GB, free: 11.95 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.004873, allocations: 0 / 0.8161 GB, free: 11.95 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.938e-06/0.004877, allocations: 0.7812 kB / 0.8161 GB, free: 11.95 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.51e-07/0.004878, allocations: 0 / 0.8161 GB, free: 11.95 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.004879, allocations: 0.5 kB / 0.8161 GB, free: 11.95 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001025/0.004981, allocations: 196.9 kB / 0.8163 GB, free: 11.73 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 6.722e-06/0.004988, allocations: 7.891 kB / 0.8163 GB, free: 11.73 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.743e-06/0.004995, allocations: 0 / 0.8163 GB, free: 11.73 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.238e-05/0.005027, allocations: 8.891 kB / 0.8163 GB, free: 11.72 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.261e-05/0.00506, allocations: 11.92 kB / 0.8163 GB, free: 11.71 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.005063, allocations: 4.844 kB / 0.8163 GB, free: 11.7 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 2.902e-05/0.005092, allocations: 119.2 kB / 0.8164 GB, free: 11.59 MB / 0.7292 GB Notification: Performance of sort global known variables: time 4e-08/0.005092, allocations: 0 / 0.8164 GB, free: 11.59 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0001375/0.00523, allocations: 10.22 kB / 0.8164 GB, free: 11.58 MB / 0.7292 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 8.828e-05/0.005318, allocations: 103.2 kB / 0.8165 GB, free: 11.46 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 5.352e-05/0.005372, allocations: 19.67 kB / 0.8165 GB, free: 11.44 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.011e-06/0.005373, allocations: 0 / 0.8165 GB, free: 11.44 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 2.305e-05/0.005396, allocations: 30.33 kB / 0.8166 GB, free: 11.41 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001517/0.005547, allocations: 11.88 kB / 0.8166 GB, free: 11.4 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001815/0.005729, allocations: 122.1 kB / 0.8167 GB, free: 11.25 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.871e-05/0.005758, allocations: 59.34 kB / 0.8167 GB, free: 11.17 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 1.695e-05/0.005774, allocations: 1.562 kB / 0.8167 GB, free: 11.17 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.091e-05/0.005815, allocations: 74.2 kB / 0.8168 GB, free: 11.1 MB / 0.7292 GB Notification: Performance of SimCode: time 4.7e-07/0.005816, allocations: 0 / 0.8168 GB, free: 11.1 MB / 0.7292 GB Notification: Performance of Templates: time 0.002075/0.007891, allocations: 0.8298 MB / 0.8176 GB, free: 10.3 MB / 0.7292 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.00652898196131]