Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_9_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.006881/0.006881, allocations: 103.9 kB / 15.73 MB, free: 6.039 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.001623/0.001623, allocations: 193.6 kB / 16.67 MB, free: 5.973 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.382/1.382, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.275/2.275, allocations: 390.2 MB / 0.6648 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 64.19 kB / 0.9504 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3124/0.3137, allocations: 140.4 MB / 1.087 GB, free: 2.023 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002966/0.3167, allocations: 1.515 MB / 1.089 GB, free: 0.4922 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0003855/0.3171, allocations: 120.5 kB / 1.089 GB, free: 380 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.835e-05/0.3172, allocations: 4 kB / 1.089 GB, free: 376 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.223e-05/0.3172, allocations: 3.938 kB / 1.089 GB, free: 372 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.862e-05/0.3173, allocations: 7.922 kB / 1.089 GB, free: 364 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002519/0.3176, allocations: 23.97 kB / 1.089 GB, free: 340 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.691e-05/0.3177, allocations: 27.92 kB / 1.089 GB, free: 312 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.3178, allocations: 8 kB / 1.089 GB, free: 304 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 4.936e-05/0.3178, allocations: 15.92 kB / 1.089 GB, free: 288 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.404e-05/0.3179, allocations: 19.91 kB / 1.089 GB, free: 268 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.611e-05/0.3179, allocations: 4 kB / 1.089 GB, free: 264 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.917e-05/0.318, allocations: 20 kB / 1.089 GB, free: 244 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.672e-05/0.318, allocations: 7.984 kB / 1.089 GB, free: 236 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.896e-05/0.318, allocations: 11.94 kB / 1.089 GB, free: 224 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000143/0.3182, allocations: 35.88 kB / 1.089 GB, free: 188 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3182, allocations: 3.938 kB / 1.089 GB, free: 184 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.172e-06/0.3182, allocations: 0 / 1.089 GB, free: 184 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.3182, allocations: 0 / 1.089 GB, free: 184 kB / 0.8419 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.0005004/0.3187, allocations: 342.3 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.3188, allocations: 8.031 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.521e-05/0.3188, allocations: 38.75 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.973e-05/0.3189, allocations: 0.9375 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001217/0.319, allocations: 164.4 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.319, allocations: 4.375 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.186e-05/0.319, allocations: 4.375 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002303/0.3193, allocations: 54.23 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.3193, allocations: 3.938 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.3193, allocations: 0 / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.3193, allocations: 0 / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000199/0.3195, allocations: 51.89 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003915/0.3199, allocations: 269.6 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003382/0.3203, allocations: 58.53 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.3204, allocations: 28.91 kB / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001438/0.3206, allocations: 85.05 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/0.3206, allocations: 34.5 kB / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.663e-06/0.3206, allocations: 0 / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0004245/0.321, allocations: 97.61 kB / 1.09 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.695e-05/0.3211, allocations: 51.41 kB / 1.09 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.151e-05/0.3212, allocations: 105.8 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.3212, allocations: 29.7 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.198e-05/0.3213, allocations: 84.08 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.666e-05/0.3213, allocations: 3.906 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.847e-05/0.3213, allocations: 21.7 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001205/0.3215, allocations: 310.8 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.585e-05/0.3216, allocations: 19.98 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.757e-05/0.3217, allocations: 27.97 kB / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001763/0.3218, allocations: 48.69 kB / 1.091 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3219, allocations: 0 / 1.091 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002307/0.3221, allocations: 73.66 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.3221, allocations: 4 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.3221, allocations: 0 / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.155e-05/0.3222, allocations: 4 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.657e-05/0.3223, allocations: 11.98 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.3223, allocations: 0 / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.208e-05/0.3223, allocations: 11.89 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.3224, allocations: 4 kB / 1.091 GB, free: 13.91 MB / 0.8575 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.743e-05/0.3224, allocations: 117.7 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.82e-05/0.3225, allocations: 0 / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002794/0.3228, allocations: 89.14 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.3228, allocations: 0 / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.3228, allocations: 0 / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.3228, allocations: 0 / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001894/0.323, allocations: 169.6 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.323, allocations: 0 / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.596e-05/0.3231, allocations: 11.98 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.3231, allocations: 0 / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.3231, allocations: 0 / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.3231, allocations: 3.938 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3231, allocations: 4 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002975/0.3234, allocations: 175.9 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.2e-05/0.3235, allocations: 81.02 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.6e-05/0.3235, allocations: 4 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.706e-05/0.3236, allocations: 11.92 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.516e-05/0.3237, allocations: 8 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-06/0.3237, allocations: 4 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.73e-05/0.3237, allocations: 83.3 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3237, allocations: 0 / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002309/0.324, allocations: 12 kB / 1.092 GB, free: 13.05 MB / 0.8575 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.0006573/0.3246, allocations: 0.7123 MB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002522/0.3249, allocations: 47.95 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3249, allocations: 0 / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001019/0.325, allocations: 23.97 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003307/0.3254, allocations: 5.406 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004807/0.3259, allocations: 156.6 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002477/0.3261, allocations: 0.6768 MB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.375e-05/0.3262, allocations: 4 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.063e-05/0.3262, allocations: 19.42 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.3262, allocations: 0 / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01875/0.345, allocations: 1.573 MB / 1.095 GB, free: 9.82 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.223/7.568, allocations: 2.5 kB / 1.095 GB, free: 9.82 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches