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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000963/0.0009631, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.007206/0.007206, allocations: 169.2 kB / 16.26 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.683/2.683, allocations: 462.6 MB / 0.7364 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003251/0.0003251, allocations: 10.72 kB / 0.9029 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2815/0.2819, allocations: 159.6 MB / 1.059 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001464/0.2834, allocations: 1.239 MB / 1.06 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0003378/0.2837, allocations: 123.6 kB / 1.06 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.258e-05/0.2838, allocations: 0 / 1.06 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.343e-05/0.2838, allocations: 3.938 kB / 1.06 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.765e-05/0.2838, allocations: 0 / 1.06 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001682/0.284, allocations: 27.91 kB / 1.06 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.059e-05/0.2841, allocations: 23.98 kB / 1.06 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.666e-05/0.2842, allocations: 8 kB / 1.06 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.558e-05/0.2842, allocations: 15.92 kB / 1.06 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.029e-05/0.2842, allocations: 11.94 kB / 1.06 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.095e-05/0.2843, allocations: 0 / 1.06 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.109e-05/0.2843, allocations: 7.984 kB / 1.06 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.396e-05/0.2843, allocations: 15.92 kB / 1.06 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.597e-05/0.2844, allocations: 33.62 kB / 1.06 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.329e-05/0.2845, allocations: 35.91 kB / 1.06 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.2845, allocations: 0 / 1.06 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.523e-06/0.2845, allocations: 0 / 1.06 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.356e-06/0.2845, allocations: 4 kB / 1.06 GB, free: 3.281 MB / 0.8106 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.0003604/0.2849, allocations: 339.8 kB / 1.061 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.2849, allocations: 11.97 kB / 1.061 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.332e-05/0.2849, allocations: 38.75 kB / 1.061 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.154e-05/0.285, allocations: 4.844 kB / 1.061 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.003e-05/0.2851, allocations: 168.4 kB / 1.061 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.79e-05/0.2851, allocations: 4.375 kB / 1.061 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.165e-06/0.2851, allocations: 384 / 1.061 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001739/0.2853, allocations: 66.22 kB / 1.061 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.2853, allocations: 3.938 kB / 1.061 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.374e-06/0.2853, allocations: 0 / 1.061 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.2853, allocations: 0 / 1.061 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001872/0.2855, allocations: 59.89 kB / 1.061 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002987/0.2858, allocations: 264.9 kB / 1.061 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002941/0.2861, allocations: 70.52 kB / 1.061 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001023/0.2862, allocations: 24.91 kB / 1.061 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001023/0.2863, allocations: 89.09 kB / 1.061 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.989e-05/0.2864, allocations: 38.5 kB / 1.061 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.2864, allocations: 0 / 1.061 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003617/0.2867, allocations: 109.5 kB / 1.062 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.772e-05/0.2868, allocations: 55.41 kB / 1.062 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.741e-05/0.2868, allocations: 97.86 kB / 1.062 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.199e-05/0.2869, allocations: 25.7 kB / 1.062 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.53e-05/0.2869, allocations: 96.06 kB / 1.062 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.363e-05/0.2869, allocations: 7.844 kB / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.242e-05/0.2869, allocations: 9.719 kB / 1.062 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.204e-05/0.287, allocations: 318.8 kB / 1.062 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.105e-05/0.2871, allocations: 23.97 kB / 1.062 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.377e-05/0.2872, allocations: 31.86 kB / 1.062 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001736/0.2874, allocations: 64.75 kB / 1.062 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.2874, allocations: 0 / 1.062 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002107/0.2876, allocations: 77.66 kB / 1.062 GB, free: 0.9688 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.2876, allocations: 8 kB / 1.062 GB, free: 0.9609 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.206e-06/0.2877, allocations: 0 / 1.062 GB, free: 0.9609 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.775e-06/0.2877, allocations: 4 kB / 1.062 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.777e-05/0.2877, allocations: 11.98 kB / 1.062 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.607e-06/0.2878, allocations: 0 / 1.062 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.891e-05/0.2878, allocations: 15.98 kB / 1.062 GB, free: 0.9297 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.029e-06/0.2878, allocations: 0 / 1.062 GB, free: 0.9297 MB / 0.8106 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.371e-05/0.2879, allocations: 117.7 kB / 1.062 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.347e-05/0.2879, allocations: 7.906 kB / 1.062 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002471/0.2882, allocations: 93.14 kB / 1.063 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.2882, allocations: 0 / 1.063 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-06/0.2882, allocations: 0 / 1.063 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.2882, allocations: 0 / 1.063 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001369/0.2884, allocations: 170.2 kB / 1.063 GB, free: 496 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.2884, allocations: 0 / 1.063 GB, free: 496 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.503e-05/0.2884, allocations: 15.98 kB / 1.063 GB, free: 480 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.053e-06/0.2884, allocations: 0 / 1.063 GB, free: 480 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.62e-06/0.2885, allocations: 0 / 1.063 GB, free: 480 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.2885, allocations: 0 / 1.063 GB, free: 480 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.2885, allocations: 0 / 1.063 GB, free: 480 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002444/0.2887, allocations: 191.4 kB / 1.063 GB, free: 272 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.097e-05/0.2888, allocations: 85.11 kB / 1.063 GB, free: 168 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.141e-05/0.2888, allocations: 0 / 1.063 GB, free: 168 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.629e-05/0.2889, allocations: 7.984 kB / 1.063 GB, free: 160 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.603e-05/0.2889, allocations: 7.984 kB / 1.063 GB, free: 152 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.6e-06/0.2889, allocations: 4 kB / 1.063 GB, free: 148 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.991e-05/0.289, allocations: 87.22 kB / 1.063 GB, free: 60 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.289, allocations: 0 / 1.063 GB, free: 60 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002111/0.2892, allocations: 8 kB / 1.063 GB, free: 52 kB / 0.8106 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.000493/0.2897, allocations: 0.724 MB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002144/0.2899, allocations: 55.95 kB / 1.064 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.2899, allocations: 0 / 1.064 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.873e-05/0.29, allocations: 31.97 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002417/0.2903, allocations: 4 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003562/0.2906, allocations: 162.2 kB / 1.064 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001771/0.2908, allocations: 0.677 MB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.895e-05/0.2908, allocations: 8 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.098e-05/0.2909, allocations: 15.42 kB / 1.065 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of SimCode: time 2.81e-07/0.2909, allocations: 0 / 1.065 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.298/1.589, allocations: 1.291 MB / 1.066 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001976/1.59, allocations: 201.8 kB / 1.066 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.061/3.65, allocations: 0 / 1.066 GB, free: 12.85 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_Factorial.fmu > 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches