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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001245/0.001245, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001292/0.001292, allocations: 195.9 kB / 16.26 MB, free: 6.625 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.386/1.386, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.764/2.764, allocations: 461.9 MB / 0.7344 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001794/0.001795, allocations: 63.25 kB / 0.8987 GB, free: 37.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3139/0.3157, allocations: 157.4 MB / 1.052 GB, free: 8.633 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002787/0.3186, allocations: 1.57 MB / 1.054 GB, free: 7.047 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000361/0.319, allocations: 127.7 kB / 1.054 GB, free: 6.922 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.695e-05/0.319, allocations: 4 kB / 1.054 GB, free: 6.918 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.183e-05/0.3191, allocations: 3.938 kB / 1.054 GB, free: 6.914 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.825e-05/0.3191, allocations: 0 / 1.054 GB, free: 6.914 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001999/0.3193, allocations: 19.92 kB / 1.054 GB, free: 6.895 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.423e-05/0.3194, allocations: 27.92 kB / 1.054 GB, free: 6.867 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.81e-05/0.3195, allocations: 11.98 kB / 1.054 GB, free: 6.855 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.313e-05/0.3195, allocations: 19.92 kB / 1.054 GB, free: 6.836 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.326e-05/0.3196, allocations: 15.92 kB / 1.054 GB, free: 6.82 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.2e-05/0.3196, allocations: 4 kB / 1.054 GB, free: 6.816 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.865e-05/0.3197, allocations: 11.98 kB / 1.054 GB, free: 6.805 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.17e-05/0.3197, allocations: 4 kB / 1.054 GB, free: 6.801 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.455e-05/0.3197, allocations: 11.94 kB / 1.054 GB, free: 6.789 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.895e-05/0.3198, allocations: 39.88 kB / 1.054 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3198, allocations: 0 / 1.054 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3198, allocations: 0 / 1.054 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.3199, allocations: 4 kB / 1.054 GB, free: 6.746 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.0004374/0.3203, allocations: 339.8 kB / 1.055 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.3203, allocations: 12.62 kB / 1.055 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.41e-05/0.3204, allocations: 42.67 kB / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.646e-05/0.3204, allocations: 8.844 kB / 1.055 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001/0.3205, allocations: 160.4 kB / 1.055 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.3205, allocations: 384 / 1.055 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.322e-05/0.3206, allocations: 8.359 kB / 1.055 GB, free: 6.09 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001799/0.3207, allocations: 54.23 kB / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.3208, allocations: 7.922 kB / 1.055 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.3208, allocations: 4 kB / 1.055 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.3208, allocations: 4 kB / 1.055 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001805/0.321, allocations: 39.95 kB / 1.055 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003459/0.3213, allocations: 264.9 kB / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003129/0.3216, allocations: 62.59 kB / 1.055 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.237e-05/0.3217, allocations: 20.84 kB / 1.055 GB, free: 5.574 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001197/0.3219, allocations: 85.09 kB / 1.055 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.096e-05/0.3219, allocations: 30.56 kB / 1.055 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.3219, allocations: 3.938 kB / 1.055 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003648/0.3223, allocations: 97.48 kB / 1.055 GB, free: 5.328 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.451e-05/0.3223, allocations: 59.39 kB / 1.055 GB, free: 5.258 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.28e-05/0.3224, allocations: 97.86 kB / 1.056 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.38e-05/0.3224, allocations: 25.7 kB / 1.056 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.64e-05/0.3225, allocations: 84.14 kB / 1.056 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.81e-05/0.3225, allocations: 11.84 kB / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.419e-05/0.3225, allocations: 21.7 kB / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001008/0.3226, allocations: 310.8 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.124e-05/0.3227, allocations: 23.97 kB / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.488e-05/0.3228, allocations: 15.98 kB / 1.056 GB, free: 4.645 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001911/0.323, allocations: 56.69 kB / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.323, allocations: 3.938 kB / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002092/0.3232, allocations: 69.66 kB / 1.056 GB, free: 4.508 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.3233, allocations: 12.94 kB / 1.056 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.3233, allocations: 3.984 kB / 1.056 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/0.3233, allocations: 0 / 1.056 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.126e-05/0.3234, allocations: 11.98 kB / 1.056 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.3234, allocations: 0 / 1.056 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.817e-05/0.3234, allocations: 7.984 kB / 1.056 GB, free: 4.473 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.6e-06/0.3235, allocations: 0 / 1.056 GB, free: 4.473 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 8.92e-05/0.3235, allocations: 118.3 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.61e-05/0.3236, allocations: 11.91 kB / 1.056 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002491/0.3238, allocations: 85.06 kB / 1.056 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.3238, allocations: 4 kB / 1.056 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.3239, allocations: 0 / 1.056 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.3239, allocations: 0 / 1.056 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001568/0.324, allocations: 165.6 kB / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.324, allocations: 0 / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.795e-05/0.3241, allocations: 15.98 kB / 1.057 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.3241, allocations: 4 kB / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.3241, allocations: 4 kB / 1.057 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3241, allocations: 0 / 1.057 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.3241, allocations: 0 / 1.057 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002507/0.3244, allocations: 179.3 kB / 1.057 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.216e-05/0.3244, allocations: 77.11 kB / 1.057 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.316e-05/0.3245, allocations: 4 kB / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.613e-05/0.3246, allocations: 7.984 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.343e-05/0.3246, allocations: 8 kB / 1.057 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.703e-06/0.3246, allocations: 3.984 kB / 1.057 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.193e-05/0.3247, allocations: 79.28 kB / 1.057 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3247, allocations: 0 / 1.057 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000226/0.3249, allocations: 8 kB / 1.057 GB, free: 3.613 MB / 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.0005436/0.3254, allocations: 0.7123 MB / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002235/0.3257, allocations: 47.89 kB / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3257, allocations: 0 / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.974e-05/0.3258, allocations: 31.97 kB / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002851/0.3261, allocations: 2.25 kB / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004239/0.3265, allocations: 159.1 kB / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000232/0.3268, allocations: 0.6729 MB / 1.059 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.353e-05/0.3268, allocations: 11.92 kB / 1.059 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.008e-05/0.3269, allocations: 15.44 kB / 1.059 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of SimCode: time 2.5e-07/0.3269, allocations: 3.938 kB / 1.059 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7326/1.059, allocations: 1.395 MB / 1.06 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003293/1.06, allocations: 205 kB / 1.06 GB, free: 316 kB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.057/3.116, allocations: 4 kB / 1.06 GB, free: 312 kB / 0.8106 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