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.008108/0.008108, allocations: 99.31 kB / 15.73 MB, free: 6.047 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.002015/0.002015, allocations: 186.3 kB / 16.67 MB, free: 5.977 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.783/2.783, allocations: 461.9 MB / 0.7348 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 64.05 kB / 1.054 GB, free: 7.648 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.32, allocations: 157.4 MB / 1.207 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003459/0.3235, allocations: 1.513 MB / 1.209 GB, free: 8.613 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0004458/0.324, allocations: 123.6 kB / 1.209 GB, free: 8.492 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.339e-05/0.324, allocations: 0 / 1.209 GB, free: 8.492 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.006e-05/0.3241, allocations: 0 / 1.209 GB, free: 8.492 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.313e-05/0.3242, allocations: 3.938 kB / 1.209 GB, free: 8.488 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002834/0.3245, allocations: 27.86 kB / 1.209 GB, free: 8.461 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.831e-05/0.3246, allocations: 31.97 kB / 1.209 GB, free: 8.43 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.3247, allocations: 7.984 kB / 1.209 GB, free: 8.422 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 5.482e-05/0.3248, allocations: 15.94 kB / 1.209 GB, free: 8.406 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.634e-05/0.3248, allocations: 15.92 kB / 1.209 GB, free: 8.391 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.884e-05/0.3248, allocations: 4 kB / 1.209 GB, free: 8.387 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.367e-05/0.3249, allocations: 11.98 kB / 1.209 GB, free: 8.375 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.033e-05/0.3249, allocations: 11.98 kB / 1.209 GB, free: 8.363 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.494e-05/0.325, allocations: 11.88 kB / 1.209 GB, free: 8.352 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001336/0.3251, allocations: 35.89 kB / 1.209 GB, free: 8.316 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3251, allocations: 0 / 1.209 GB, free: 8.316 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3251, allocations: 0 / 1.209 GB, free: 8.316 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.161e-05/0.3252, allocations: 0 / 1.209 GB, free: 8.316 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.0005578/0.3257, allocations: 347.7 kB / 1.209 GB, free: 7.926 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.3258, allocations: 8.625 kB / 1.209 GB, free: 7.918 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.025e-05/0.3258, allocations: 34.73 kB / 1.209 GB, free: 7.875 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.221e-05/0.3259, allocations: 4.938 kB / 1.209 GB, free: 7.871 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001632/0.326, allocations: 168.3 kB / 1.21 GB, free: 7.668 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.045e-05/0.3261, allocations: 8.359 kB / 1.21 GB, free: 7.66 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.164e-05/0.3261, allocations: 384 / 1.21 GB, free: 7.66 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002078/0.3263, allocations: 54.23 kB / 1.21 GB, free: 7.602 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.3263, allocations: 15.86 kB / 1.21 GB, free: 7.586 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.3263, allocations: 4 kB / 1.21 GB, free: 7.582 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.3264, allocations: 0 / 1.21 GB, free: 7.582 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002173/0.3266, allocations: 43.95 kB / 1.21 GB, free: 7.539 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004427/0.327, allocations: 264.9 kB / 1.21 GB, free: 7.23 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003483/0.3274, allocations: 58.53 kB / 1.21 GB, free: 7.164 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/0.3275, allocations: 28.84 kB / 1.21 GB, free: 7.133 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001628/0.3277, allocations: 85.03 kB / 1.21 GB, free: 7.031 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.3277, allocations: 34.56 kB / 1.21 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.342e-06/0.3277, allocations: 0 / 1.21 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0004474/0.3282, allocations: 93.64 kB / 1.21 GB, free: 6.891 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.414e-05/0.3283, allocations: 55.39 kB / 1.21 GB, free: 6.824 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.872e-05/0.3283, allocations: 97.86 kB / 1.21 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.3284, allocations: 25.7 kB / 1.21 GB, free: 6.688 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.724e-05/0.3285, allocations: 88.05 kB / 1.21 GB, free: 6.598 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.518e-05/0.3285, allocations: 11.92 kB / 1.211 GB, free: 6.586 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.611e-05/0.3285, allocations: 13.72 kB / 1.211 GB, free: 6.566 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001611/0.3287, allocations: 314.8 kB / 1.211 GB, free: 6.25 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.973e-05/0.3288, allocations: 27.91 kB / 1.211 GB, free: 6.223 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.343e-05/0.3289, allocations: 15.98 kB / 1.211 GB, free: 6.207 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001798/0.3291, allocations: 52.75 kB / 1.211 GB, free: 6.152 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3291, allocations: 3.938 kB / 1.211 GB, free: 6.148 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002463/0.3294, allocations: 77.56 kB / 1.211 GB, free: 6.066 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.3294, allocations: 4 kB / 1.211 GB, free: 6.062 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.3294, allocations: 0 / 1.211 GB, free: 6.062 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.3294, allocations: 0 / 1.211 GB, free: 6.062 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.686e-05/0.3295, allocations: 11.98 kB / 1.211 GB, free: 6.051 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.3295, allocations: 3.938 kB / 1.211 GB, free: 6.047 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.28e-05/0.3296, allocations: 11.98 kB / 1.211 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.3296, allocations: 0 / 1.211 GB, free: 6.035 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 0.0001023/0.3297, allocations: 114.3 kB / 1.211 GB, free: 5.914 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.935e-05/0.3298, allocations: 4 kB / 1.211 GB, free: 5.91 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003305/0.3301, allocations: 89.12 kB / 1.211 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.3301, allocations: 0 / 1.211 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.3301, allocations: 0 / 1.211 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.3301, allocations: 0 / 1.211 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002883/0.3304, allocations: 165.6 kB / 1.211 GB, free: 5.605 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3304, allocations: 0 / 1.211 GB, free: 5.605 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.71e-05/0.3305, allocations: 11.98 kB / 1.211 GB, free: 5.594 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.3305, allocations: 4 kB / 1.211 GB, free: 5.59 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.3305, allocations: 0 / 1.211 GB, free: 5.59 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.3306, allocations: 7.875 kB / 1.211 GB, free: 5.582 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3306, allocations: 0 / 1.211 GB, free: 5.582 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002942/0.3309, allocations: 175.3 kB / 1.212 GB, free: 5.395 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.287e-05/0.3309, allocations: 81.11 kB / 1.212 GB, free: 5.297 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.423e-05/0.3309, allocations: 8 kB / 1.212 GB, free: 5.289 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.609e-05/0.331, allocations: 7.984 kB / 1.212 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.184e-05/0.3311, allocations: 7.984 kB / 1.212 GB, free: 5.273 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.388e-06/0.3311, allocations: 0 / 1.212 GB, free: 5.273 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.499e-05/0.3311, allocations: 83.28 kB / 1.212 GB, free: 5.191 MB / 0.9669 GB Notification: Performance of sort global known variables: time 9e-08/0.3312, allocations: 0 / 1.212 GB, free: 5.191 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002436/0.3314, allocations: 8 kB / 1.212 GB, free: 5.184 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.0006236/0.332, allocations: 0.7202 MB / 1.212 GB, free: 4.434 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002351/0.3323, allocations: 39.95 kB / 1.212 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3323, allocations: 0 / 1.212 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.000102/0.3324, allocations: 31.97 kB / 1.213 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002762/0.3327, allocations: 7.938 kB / 1.213 GB, free: 4.355 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005614/0.3332, allocations: 147 kB / 1.213 GB, free: 4.172 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003274/0.3336, allocations: 0.6729 MB / 1.213 GB, free: 3.473 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.225e-05/0.3336, allocations: 15.88 kB / 1.213 GB, free: 3.457 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.459e-05/0.3337, allocations: 11.44 kB / 1.213 GB, free: 3.445 MB / 0.9669 GB Notification: Performance of SimCode: time 2.51e-07/0.3337, allocations: 8 kB / 1.213 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02105/0.3548, allocations: 1.584 MB / 1.215 GB, free: 1.93 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.687/8.042, allocations: 10.5 kB / 1.215 GB, free: 1.922 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