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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.295/2.295, allocations: 390.5 MB / 398 MB, free: 10.95 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001541/0.001541, allocations: 175.8 kB / 491.2 MB, free: 1.602 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.646/1.646, allocations: 221.5 MB / 0.7868 GB, free: 13.27 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 101.9 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.57e-05/2.573e-05, allocations: 8 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3432/0.3433, allocations: 143 MB / 1.212 GB, free: 39.51 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.058/1.401, allocations: 148.6 MB / 1.357 GB, free: 17.53 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002434/1.402, allocations: 73.89 kB / 1.358 GB, free: 17.53 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.001847/1.404, allocations: 0.5306 MB / 1.358 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.573e-06/1.404, allocations: 0 / 1.358 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.212e-06/1.404, allocations: 2.062 kB / 1.358 GB, free: 33.2 MB / 0.8386 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.0002327/1.404, allocations: 313.2 kB / 1.358 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.432e-05/1.404, allocations: 9.734 kB / 1.358 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.044e-05/1.404, allocations: 3.969 kB / 1.358 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.983e-05/1.404, allocations: 168.2 kB / 1.359 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/1.404, allocations: 0 / 1.359 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.793e-06/1.404, allocations: 4.531 kB / 1.359 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.656e-05/1.404, allocations: 8.672 kB / 1.359 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.373e-05/1.404, allocations: 34.44 kB / 1.359 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/1.404, allocations: 0 / 1.359 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.325e-06/1.404, allocations: 0 / 1.359 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/1.404, allocations: 0 / 1.359 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001087/1.404, allocations: 132 kB / 1.359 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.379e-05/1.404, allocations: 26.42 kB / 1.359 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.54e-05/1.404, allocations: 4.859 kB / 1.359 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001257/1.405, allocations: 86.89 kB / 1.359 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.559e-05/1.405, allocations: 30.56 kB / 1.359 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/1.405, allocations: 3.938 kB / 1.359 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0001569/1.405, allocations: 38.97 kB / 1.359 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.24e-05/1.405, allocations: 52.11 kB / 1.359 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.104e-05/1.405, allocations: 85 kB / 1.359 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 7.073e-06/1.405, allocations: 25.7 kB / 1.359 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.387e-05/1.405, allocations: 84.97 kB / 1.359 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.273e-05/1.405, allocations: 8.469 kB / 1.359 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.505e-06/1.405, allocations: 3.906 kB / 1.359 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.884e-05/1.405, allocations: 311.5 kB / 1.359 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.07e-05/1.405, allocations: 3.875 kB / 1.359 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.003e-06/1.405, allocations: 4.766 kB / 1.359 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.558e-05/1.405, allocations: 0.8438 kB / 1.359 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/1.405, allocations: 0 / 1.359 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.381e-05/1.405, allocations: 43.33 kB / 1.359 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/1.405, allocations: 7.719 kB / 1.359 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.127e-06/1.405, allocations: 0 / 1.359 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/1.405, allocations: 0.5625 kB / 1.359 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.994e-05/1.405, allocations: 4.531 kB / 1.359 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.037e-06/1.405, allocations: 0 / 1.359 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.315e-05/1.405, allocations: 0.6562 kB / 1.359 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.118e-06/1.405, allocations: 0 / 1.359 GB, free: 31.62 MB / 0.8386 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 () * 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 5.912e-05/1.405, allocations: 101.7 kB / 1.36 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.766e-06/1.405, allocations: 11.8 kB / 1.36 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.98e-05/1.406, allocations: 43.86 kB / 1.36 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/1.406, allocations: 4.5 kB / 1.36 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/1.406, allocations: 2.812 kB / 1.36 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/1.406, allocations: 0 / 1.36 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.745e-05/1.406, allocations: 124.5 kB / 1.36 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/1.406, allocations: 3.938 kB / 1.36 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.106e-05/1.406, allocations: 4.406 kB / 1.36 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/1.406, allocations: 0 / 1.36 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/1.406, allocations: 8.641 kB / 1.36 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/1.406, allocations: 4.031 kB / 1.36 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/1.406, allocations: 3.844 kB / 1.36 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.387e-05/1.406, allocations: 66.7 kB / 1.36 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.573e-05/1.406, allocations: 77.67 kB / 1.36 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.232e-05/1.406, allocations: 0.6094 kB / 1.36 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.099e-05/1.406, allocations: 3.953 kB / 1.36 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.854e-05/1.406, allocations: 4.656 kB / 1.36 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.015e-06/1.406, allocations: 4.781 kB / 1.36 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 2.99e-05/1.406, allocations: 75.28 kB / 1.36 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.2e-07/1.406, allocations: 0 / 1.36 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000202/1.406, allocations: 4.5 kB / 1.36 GB, free: 31.06 MB / 0.8386 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 () * 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.0001569/1.406, allocations: 107.8 kB / 1.36 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 6.775e-05/1.406, allocations: 8.422 kB / 1.36 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/1.406, allocations: 3 kB / 1.36 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 1.43e-05/1.406, allocations: 8.5 kB / 1.36 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.214e-05/1.406, allocations: 4.125 kB / 1.36 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001636/1.407, allocations: 53.89 kB / 1.36 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003005/1.407, allocations: 0.6755 MB / 1.361 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 1.411e-05/1.407, allocations: 3.969 kB / 1.361 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.273e-05/1.407, allocations: 8.141 kB / 1.361 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/1.407, allocations: 0 / 1.361 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of Templates: time 0.002063/1.409, allocations: 303.8 kB / 1.361 GB, free: 30.14 MB / 0.8386 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