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.008702/0.008702, allocations: 99.64 kB / 15.73 MB, free: 6.023 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.001699/0.0017, allocations: 187.2 kB / 16.67 MB, free: 5.957 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.384/1.384, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.81/2.81, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 63.91 kB / 1.054 GB, free: 7.703 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3093/0.3108, allocations: 157.4 MB / 1.207 GB, free: 10.2 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.00347/0.3143, allocations: 1.509 MB / 1.209 GB, free: 8.672 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0004249/0.3148, allocations: 115.7 kB / 1.209 GB, free: 8.559 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.584e-05/0.3148, allocations: 4 kB / 1.209 GB, free: 8.555 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.745e-05/0.3149, allocations: 3.938 kB / 1.209 GB, free: 8.551 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.791e-05/0.3149, allocations: 3.938 kB / 1.209 GB, free: 8.547 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002541/0.3152, allocations: 23.97 kB / 1.209 GB, free: 8.523 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.249e-05/0.3153, allocations: 27.92 kB / 1.209 GB, free: 8.496 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001115/0.3154, allocations: 15.98 kB / 1.209 GB, free: 8.48 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 5.484e-05/0.3155, allocations: 15.94 kB / 1.209 GB, free: 8.465 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.987e-05/0.3156, allocations: 15.97 kB / 1.209 GB, free: 8.449 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.653e-05/0.3156, allocations: 4 kB / 1.209 GB, free: 8.445 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.614e-05/0.3157, allocations: 15.92 kB / 1.209 GB, free: 8.43 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.899e-05/0.3157, allocations: 8 kB / 1.209 GB, free: 8.422 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.295e-05/0.3157, allocations: 7.938 kB / 1.209 GB, free: 8.414 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001288/0.3159, allocations: 35.88 kB / 1.209 GB, free: 8.379 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3159, allocations: 4 kB / 1.209 GB, free: 8.375 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.844e-06/0.3159, allocations: 0 / 1.209 GB, free: 8.375 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.272e-06/0.3159, allocations: 0 / 1.209 GB, free: 8.375 MB / 0.9669 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.0005137/0.3164, allocations: 347.7 kB / 1.209 GB, free: 7.984 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.3165, allocations: 8.625 kB / 1.209 GB, free: 7.977 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.44e-05/0.3165, allocations: 42.61 kB / 1.209 GB, free: 7.926 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.428e-05/0.3166, allocations: 4.938 kB / 1.209 GB, free: 7.922 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001449/0.3167, allocations: 164.3 kB / 1.21 GB, free: 7.723 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.842e-05/0.3168, allocations: 384 / 1.21 GB, free: 7.723 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.726e-05/0.3168, allocations: 12.36 kB / 1.21 GB, free: 7.711 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001981/0.317, allocations: 58.22 kB / 1.21 GB, free: 7.648 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.317, allocations: 7.938 kB / 1.21 GB, free: 7.641 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.357e-06/0.317, allocations: 0 / 1.21 GB, free: 7.641 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.317, allocations: 0 / 1.21 GB, free: 7.641 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001966/0.3172, allocations: 39.95 kB / 1.21 GB, free: 7.602 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000449/0.3177, allocations: 264.9 kB / 1.21 GB, free: 7.293 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003588/0.3181, allocations: 62.53 kB / 1.21 GB, free: 7.223 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.667e-05/0.3182, allocations: 28.91 kB / 1.21 GB, free: 7.191 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001298/0.3183, allocations: 81.09 kB / 1.21 GB, free: 7.094 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.602e-05/0.3183, allocations: 34.56 kB / 1.21 GB, free: 7.051 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.3183, allocations: 0 / 1.21 GB, free: 7.051 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0004072/0.3188, allocations: 97.58 kB / 1.21 GB, free: 6.949 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.09e-05/0.3188, allocations: 55.39 kB / 1.21 GB, free: 6.883 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.997e-05/0.3189, allocations: 101.8 kB / 1.21 GB, free: 6.773 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.3189, allocations: 25.7 kB / 1.21 GB, free: 6.742 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.118e-05/0.319, allocations: 88.05 kB / 1.211 GB, free: 6.652 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.762e-05/0.319, allocations: 7.922 kB / 1.211 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.899e-05/0.3191, allocations: 17.72 kB / 1.211 GB, free: 6.621 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.3192, allocations: 310.8 kB / 1.211 GB, free: 6.309 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.965e-05/0.3193, allocations: 27.97 kB / 1.211 GB, free: 6.281 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.838e-05/0.3194, allocations: 15.98 kB / 1.211 GB, free: 6.266 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001651/0.3195, allocations: 52.69 kB / 1.211 GB, free: 6.211 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3195, allocations: 0 / 1.211 GB, free: 6.211 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002112/0.3198, allocations: 73.56 kB / 1.211 GB, free: 6.133 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.3198, allocations: 13.72 kB / 1.211 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.3198, allocations: 0 / 1.211 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.3198, allocations: 0 / 1.211 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.461e-05/0.3199, allocations: 11.98 kB / 1.211 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.77e-06/0.3199, allocations: 0 / 1.211 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.93e-05/0.32, allocations: 7.984 kB / 1.211 GB, free: 6.102 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-06/0.32, allocations: 0 / 1.211 GB, free: 6.102 MB / 0.9669 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.803e-05/0.3201, allocations: 118.3 kB / 1.211 GB, free: 5.977 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.614e-05/0.3201, allocations: 4 kB / 1.211 GB, free: 5.973 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002898/0.3204, allocations: 85.06 kB / 1.211 GB, free: 5.883 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.3204, allocations: 4 kB / 1.211 GB, free: 5.879 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3204, allocations: 0 / 1.211 GB, free: 5.879 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.3205, allocations: 0 / 1.211 GB, free: 5.879 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001722/0.3206, allocations: 169.5 kB / 1.211 GB, free: 5.664 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3206, allocations: 4 kB / 1.211 GB, free: 5.66 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.598e-05/0.3207, allocations: 7.984 kB / 1.211 GB, free: 5.652 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.3208, allocations: 8 kB / 1.211 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.676e-06/0.3208, allocations: 0 / 1.211 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.3208, allocations: 0 / 1.211 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3208, allocations: 0 / 1.211 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002693/0.3211, allocations: 179.3 kB / 1.212 GB, free: 5.453 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.846e-05/0.3211, allocations: 77.11 kB / 1.212 GB, free: 5.359 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.529e-05/0.3211, allocations: 0 / 1.212 GB, free: 5.359 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.15e-05/0.3212, allocations: 19.92 kB / 1.212 GB, free: 5.34 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.813e-05/0.3213, allocations: 11.98 kB / 1.212 GB, free: 5.328 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.429e-06/0.3213, allocations: 0 / 1.212 GB, free: 5.328 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.467e-05/0.3213, allocations: 83.28 kB / 1.212 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3213, allocations: 0 / 1.212 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002331/0.3216, allocations: 8 kB / 1.212 GB, free: 5.238 MB / 0.9669 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.0006448/0.3222, allocations: 0.7163 MB / 1.212 GB, free: 4.492 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002495/0.3225, allocations: 47.89 kB / 1.213 GB, free: 4.445 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.3225, allocations: 0 / 1.213 GB, free: 4.445 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.988e-05/0.3226, allocations: 27.97 kB / 1.213 GB, free: 4.418 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002941/0.3229, allocations: 8 kB / 1.213 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005201/0.3235, allocations: 147 kB / 1.213 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003042/0.3238, allocations: 0.6729 MB / 1.213 GB, free: 3.527 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.676e-05/0.3238, allocations: 11.94 kB / 1.213 GB, free: 3.516 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.706e-05/0.3239, allocations: 11.44 kB / 1.213 GB, free: 3.504 MB / 0.9669 GB Notification: Performance of SimCode: time 3.9e-07/0.3239, allocations: 4 kB / 1.213 GB, free: 3.5 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02049/0.3444, allocations: 1.594 MB / 1.215 GB, free: 1.984 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.741/8.085, allocations: 5.594 kB / 1.215 GB, free: 1.984 MB / 0.9669 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) "" Variables in the reference:time,fac.y Variables in the result:fac.u,fac.y,rea2Int.u,rea2Int.y,time,x.duration,x.height,x.offset,x.startTime,x.y