Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 99.47 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 223.2 MB / 239.9 MB, free: 5.219 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.743/2.743, allocations: 436.5 MB / 0.7104 GB, free: 7.844 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004631/0.0004636, allocations: 12 kB / 0.8707 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7751/0.7755, allocations: 153.7 MB / 1.021 GB, free: 1.156 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001837/0.7774, allocations: 1.229 MB / 1.022 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0003224/0.7778, allocations: 116.5 kB / 1.022 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.672e-05/0.7778, allocations: 0 / 1.022 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.771e-05/0.7778, allocations: 7.938 kB / 1.022 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.697e-05/0.7779, allocations: 4 kB / 1.022 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001849/0.7781, allocations: 19.91 kB / 1.022 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.544e-05/0.7782, allocations: 11.98 kB / 1.022 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.767e-05/0.7783, allocations: 11.98 kB / 1.022 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.023e-05/0.7783, allocations: 8 kB / 1.022 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.175e-05/0.7784, allocations: 23.86 kB / 1.022 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.341e-05/0.7784, allocations: 0 / 1.022 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.696e-05/0.7785, allocations: 7.984 kB / 1.022 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.041e-05/0.7785, allocations: 4 kB / 1.022 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.983e-05/0.7785, allocations: 33.64 kB / 1.022 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 7.906e-05/0.7786, allocations: 19.95 kB / 1.022 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.7786, allocations: 0 / 1.022 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.907e-06/0.7786, allocations: 3.984 kB / 1.022 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.913e-06/0.7786, allocations: 0 / 1.022 GB, free: 15.64 MB / 0.7794 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.0004834/0.7791, allocations: 345.3 kB / 1.023 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.7792, allocations: 11.98 kB / 1.023 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.002e-05/0.7792, allocations: 4 kB / 1.023 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001126/0.7793, allocations: 163 kB / 1.023 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.344e-05/0.7794, allocations: 4 kB / 1.023 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.225e-05/0.7794, allocations: 4 kB / 1.023 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002026/0.7796, allocations: 73.61 kB / 1.023 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/0.7796, allocations: 0 / 1.023 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.7796, allocations: 4 kB / 1.023 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.7796, allocations: 0 / 1.023 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001892/0.7798, allocations: 51.89 kB / 1.023 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003903/0.7802, allocations: 264.8 kB / 1.023 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003216/0.7805, allocations: 62.53 kB / 1.023 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001398/0.7807, allocations: 85.17 kB / 1.023 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.7807, allocations: 34.5 kB / 1.023 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.7807, allocations: 0 / 1.023 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0005288/0.7813, allocations: 117.7 kB / 1.023 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.22e-05/0.7813, allocations: 51.41 kB / 1.023 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.268e-05/0.7814, allocations: 101.8 kB / 1.024 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.7815, allocations: 29.7 kB / 1.024 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.681e-05/0.7816, allocations: 84.08 kB / 1.024 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.7816, allocations: 7.906 kB / 1.024 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.817e-06/0.7816, allocations: 0 / 1.024 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.7817, allocations: 314.8 kB / 1.024 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.437e-05/0.7818, allocations: 27.97 kB / 1.024 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.744e-05/0.7819, allocations: 19.98 kB / 1.024 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001006/0.782, allocations: 35.91 kB / 1.024 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.7821, allocations: 3.938 kB / 1.024 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002284/0.7823, allocations: 89.52 kB / 1.024 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.7823, allocations: 8 kB / 1.024 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.7823, allocations: 0 / 1.024 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.7823, allocations: 0 / 1.024 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.281e-05/0.7824, allocations: 15.98 kB / 1.024 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.7824, allocations: 0 / 1.024 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.106e-05/0.7825, allocations: 11.98 kB / 1.024 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.661e-06/0.7825, allocations: 0 / 1.024 GB, free: 13.43 MB / 0.7794 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 (fac.y,rea2Int.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.822e-05/0.7826, allocations: 113.8 kB / 1.024 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.466e-05/0.7826, allocations: 3.953 kB / 1.024 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000266/0.7829, allocations: 97.08 kB / 1.024 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.7829, allocations: 0 / 1.024 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.7829, allocations: 0 / 1.024 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.7829, allocations: 0 / 1.024 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001635/0.7831, allocations: 169.6 kB / 1.025 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.7831, allocations: 0 / 1.025 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.248e-05/0.7832, allocations: 15.98 kB / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/0.7832, allocations: 7.953 kB / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.153e-06/0.7832, allocations: 0 / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.7832, allocations: 0 / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.7832, allocations: 0 / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002745/0.7835, allocations: 191.3 kB / 1.025 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.666e-05/0.7836, allocations: 81.05 kB / 1.025 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.572e-05/0.7836, allocations: 8.562 kB / 1.025 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.528e-05/0.7837, allocations: 11.98 kB / 1.025 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.729e-05/0.7838, allocations: 11.98 kB / 1.025 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.84e-06/0.7838, allocations: 0 / 1.025 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.122e-05/0.7838, allocations: 91.2 kB / 1.025 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.7838, allocations: 0 / 1.025 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002231/0.784, allocations: 8 kB / 1.025 GB, free: 12.53 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000175/0.7842, allocations: 103.2 kB / 1.025 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002315/0.7845, allocations: 51.95 kB / 1.025 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.7845, allocations: 0 / 1.025 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.7846, allocations: 35.91 kB / 1.025 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002032/0.7848, allocations: 4 kB / 1.025 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003339/0.7851, allocations: 116.7 kB / 1.025 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002702/0.7854, allocations: 0.6848 MB / 1.026 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.083e-05/0.7855, allocations: 4 kB / 1.026 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.541e-05/0.7855, allocations: 7.438 kB / 1.026 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.7855, allocations: 3.938 kB / 1.026 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of Templates: time 0.00331/0.7888, allocations: 0.5817 MB / 1.027 GB, free: 10.88 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches