Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 99.7 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.001367/0.001367, allocations: 177.3 kB / 15.95 MB, free: 216 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.508/1.508, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.679/2.679, allocations: 436.5 MB / 0.7104 GB, free: 7.859 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003869/0.0003869, allocations: 20 kB / 0.8708 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8167/0.8171, allocations: 153.7 MB / 1.021 GB, free: 1.098 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.00117/0.8184, allocations: 321.1 kB / 1.021 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0003165/0.8187, allocations: 51.83 kB / 1.021 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.806e-05/0.8187, allocations: 0 / 1.021 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.388e-05/0.8188, allocations: 0 / 1.021 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.322e-06/0.8188, allocations: 0 / 1.021 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002955/0.8191, allocations: 7.984 kB / 1.021 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.985e-05/0.8192, allocations: 0 / 1.021 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.859e-05/0.8193, allocations: 4 kB / 1.021 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.671e-05/0.8193, allocations: 4 kB / 1.021 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.93e-05/0.8194, allocations: 3.938 kB / 1.021 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.167e-05/0.8194, allocations: 4 kB / 1.021 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.255e-05/0.8195, allocations: 7.984 kB / 1.021 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 9.448e-06/0.8195, allocations: 3.984 kB / 1.021 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.07e-05/0.8195, allocations: 25.7 kB / 1.021 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 8.121e-05/0.8196, allocations: 4 kB / 1.021 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.8196, allocations: 0 / 1.021 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of FrontEnd: time 3.948e-06/0.8196, allocations: 0 / 1.021 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 8.415e-06/0.8196, allocations: 0 / 1.021 GB, free: 0.6641 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003727/0.82, allocations: 319.4 kB / 1.022 GB, free: 312 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.8201, allocations: 11.98 kB / 1.022 GB, free: 300 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.413e-05/0.8201, allocations: 4 kB / 1.022 GB, free: 296 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001172/0.8202, allocations: 163.1 kB / 1.022 GB, free: 92 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.8203, allocations: 0 / 1.022 GB, free: 92 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.435e-05/0.8203, allocations: 0 / 1.022 GB, free: 92 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001597/0.8205, allocations: 37.64 kB / 1.022 GB, free: 48 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.8205, allocations: 0 / 1.022 GB, free: 48 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.8205, allocations: 3.938 kB / 1.022 GB, free: 44 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.8205, allocations: 0 / 1.022 GB, free: 44 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.191e-05/0.8206, allocations: 8 kB / 1.022 GB, free: 36 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002452/0.8208, allocations: 145.7 kB / 1.022 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 7.163e-05/0.8209, allocations: 30.59 kB / 1.022 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002321/0.8211, allocations: 77.11 kB / 1.022 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.576e-05/0.8212, allocations: 34.62 kB / 1.022 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.8212, allocations: 0 / 1.022 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.000207/0.8214, allocations: 53.48 kB / 1.022 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/0.8215, allocations: 55.53 kB / 1.022 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.837e-05/0.8215, allocations: 89.86 kB / 1.022 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.23e-05/0.8216, allocations: 25.7 kB / 1.022 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.241e-05/0.8216, allocations: 84.08 kB / 1.022 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.598e-05/0.8216, allocations: 0 / 1.022 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.11e-06/0.8216, allocations: 4 kB / 1.022 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001801/0.8218, allocations: 314.8 kB / 1.023 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.563e-05/0.8219, allocations: 3.984 kB / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.053e-05/0.8219, allocations: 4 kB / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.98e-05/0.8219, allocations: 4.062 kB / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.8219, allocations: 0 / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.203e-05/0.822, allocations: 41.64 kB / 1.023 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.822, allocations: 8 kB / 1.023 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.822, allocations: 0 / 1.023 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.19e-05/0.822, allocations: 3.953 kB / 1.023 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.581e-05/0.8221, allocations: 7.984 kB / 1.023 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.8221, allocations: 0 / 1.023 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.477e-05/0.8222, allocations: 3.938 kB / 1.023 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.298e-06/0.8222, allocations: 4.031 kB / 1.023 GB, free: 14.92 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.424e-05/0.8223, allocations: 105.8 kB / 1.023 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.286e-06/0.8223, allocations: 4 kB / 1.023 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001102/0.8224, allocations: 46.72 kB / 1.023 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.8224, allocations: 0 / 1.023 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.218e-06/0.8224, allocations: 11.95 kB / 1.023 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.8224, allocations: 0 / 1.023 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001233/0.8226, allocations: 149.6 kB / 1.023 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.8226, allocations: 4.031 kB / 1.023 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.328e-05/0.8226, allocations: 4 kB / 1.023 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.8226, allocations: 0 / 1.023 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.038e-05/0.8226, allocations: 4 kB / 1.023 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.8226, allocations: 0 / 1.023 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.8226, allocations: 4 kB / 1.023 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.448e-05/0.8227, allocations: 65.08 kB / 1.023 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.393e-05/0.8228, allocations: 77.11 kB / 1.023 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.656e-05/0.8228, allocations: 8.016 kB / 1.023 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.131e-05/0.8228, allocations: 0 / 1.023 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.507e-05/0.8229, allocations: 4 kB / 1.023 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.8229, allocations: 0 / 1.023 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.146e-05/0.8229, allocations: 83.17 kB / 1.023 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8229, allocations: 0 / 1.023 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002199/0.8232, allocations: 7.984 kB / 1.023 GB, free: 14.25 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0002369/0.8234, allocations: 99.25 kB / 1.023 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001024/0.8235, allocations: 16 kB / 1.023 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.8235, allocations: 0 / 1.023 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.735e-05/0.8235, allocations: 4 kB / 1.023 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000111/0.8237, allocations: 7.922 kB / 1.023 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002128/0.8239, allocations: 82.7 kB / 1.023 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002424/0.8241, allocations: 0.6809 MB / 1.024 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.361e-05/0.8242, allocations: 3.938 kB / 1.024 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.537e-05/0.8242, allocations: 11.56 kB / 1.024 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of SimCode: time 8.92e-07/0.8242, allocations: 4 kB / 1.024 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of Templates: time 0.002438/0.8266, allocations: 288.1 kB / 1.024 GB, free: 13.01 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches