Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.FallingFactorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_FallingFactorial",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.006945/0.006945, allocations: 100.9 kB / 15.73 MB, free: 6.473 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.001601/0.001601, allocations: 195 kB / 16.67 MB, free: 6.379 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.427/1.427, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.665/2.665, allocations: 437.1 MB / 0.7105 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001638/0.001638, allocations: 63.91 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3284/0.33, allocations: 151.6 MB / 1.166 GB, free: 7.324 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.003013/0.3331, allocations: 1.527 MB / 1.168 GB, free: 5.777 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.000444/0.3336, allocations: 132.4 kB / 1.168 GB, free: 5.645 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.976e-05/0.3336, allocations: 3.938 kB / 1.168 GB, free: 5.641 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.444e-05/0.3337, allocations: 7.938 kB / 1.168 GB, free: 5.633 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.275e-05/0.3338, allocations: 3.938 kB / 1.168 GB, free: 5.629 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003231/0.3341, allocations: 31.95 kB / 1.168 GB, free: 5.598 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 8.963e-05/0.3342, allocations: 39.86 kB / 1.168 GB, free: 5.559 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000121/0.3343, allocations: 11.98 kB / 1.168 GB, free: 5.547 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 5.622e-05/0.3344, allocations: 19.92 kB / 1.168 GB, free: 5.527 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.21e-05/0.3345, allocations: 19.91 kB / 1.168 GB, free: 5.508 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.041e-05/0.3345, allocations: 4 kB / 1.168 GB, free: 5.504 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001013/0.3346, allocations: 23.98 kB / 1.168 GB, free: 5.48 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.001e-05/0.3346, allocations: 4 kB / 1.168 GB, free: 5.477 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.023e-05/0.3347, allocations: 19.92 kB / 1.168 GB, free: 5.457 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001624/0.3348, allocations: 51.75 kB / 1.168 GB, free: 5.406 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3349, allocations: 0 / 1.168 GB, free: 5.406 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.493e-06/0.3349, allocations: 0 / 1.168 GB, free: 5.406 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.62e-06/0.3349, allocations: 0 / 1.168 GB, free: 5.406 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004792/0.3354, allocations: 352.5 kB / 1.168 GB, free: 5.016 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.3354, allocations: 12.03 kB / 1.168 GB, free: 5.004 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.91e-05/0.3355, allocations: 34.75 kB / 1.168 GB, free: 4.961 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.254e-05/0.3355, allocations: 4.938 kB / 1.168 GB, free: 4.957 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001037/0.3356, allocations: 164.6 kB / 1.169 GB, free: 4.758 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.3357, allocations: 8.375 kB / 1.169 GB, free: 4.75 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.05e-05/0.3357, allocations: 384 / 1.169 GB, free: 4.75 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002012/0.3359, allocations: 62.22 kB / 1.169 GB, free: 4.684 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.3359, allocations: 11.88 kB / 1.169 GB, free: 4.672 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.3359, allocations: 0 / 1.169 GB, free: 4.672 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.3359, allocations: 0 / 1.169 GB, free: 4.672 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.3361, allocations: 47.95 kB / 1.169 GB, free: 4.625 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003942/0.3365, allocations: 284.7 kB / 1.169 GB, free: 4.297 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003247/0.3369, allocations: 58.48 kB / 1.169 GB, free: 4.23 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.863e-05/0.337, allocations: 32.89 kB / 1.169 GB, free: 4.195 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002686/0.3372, allocations: 397.5 kB / 1.169 GB, free: 3.715 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.114e-05/0.3373, allocations: 30.56 kB / 1.169 GB, free: 3.676 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.3373, allocations: 0 / 1.169 GB, free: 3.676 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0003979/0.3377, allocations: 97.62 kB / 1.17 GB, free: 3.574 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.387e-05/0.3377, allocations: 51.41 kB / 1.17 GB, free: 3.512 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.206e-05/0.3378, allocations: 109.8 kB / 1.17 GB, free: 3.395 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.519e-05/0.3379, allocations: 29.64 kB / 1.17 GB, free: 3.359 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.774e-05/0.3379, allocations: 92.08 kB / 1.17 GB, free: 3.266 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.66e-05/0.3379, allocations: 3.906 kB / 1.17 GB, free: 3.262 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.058e-05/0.338, allocations: 21.7 kB / 1.17 GB, free: 3.234 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001074/0.3381, allocations: 314.8 kB / 1.17 GB, free: 2.918 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.371e-05/0.3382, allocations: 23.92 kB / 1.17 GB, free: 2.895 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.262e-05/0.3383, allocations: 28.16 kB / 1.17 GB, free: 2.867 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001724/0.3385, allocations: 48.89 kB / 1.17 GB, free: 2.816 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3385, allocations: 0 / 1.17 GB, free: 2.816 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002199/0.3387, allocations: 73.56 kB / 1.17 GB, free: 2.738 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.3387, allocations: 4 kB / 1.17 GB, free: 2.734 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.3388, allocations: 4 kB / 1.17 GB, free: 2.73 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.3388, allocations: 4 kB / 1.17 GB, free: 2.727 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.601e-05/0.3389, allocations: 15.92 kB / 1.17 GB, free: 2.711 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.3389, allocations: 0 / 1.17 GB, free: 2.711 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.365e-05/0.339, allocations: 11.98 kB / 1.17 GB, free: 2.699 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.161e-06/0.339, allocations: 0 / 1.17 GB, free: 2.699 MB / 0.92 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 (falFac.y,rea2Int.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.928e-05/0.3391, allocations: 113.8 kB / 1.17 GB, free: 2.578 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.72e-05/0.3391, allocations: 0 / 1.17 GB, free: 2.578 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002665/0.3394, allocations: 89.55 kB / 1.171 GB, free: 2.48 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.3394, allocations: 0 / 1.171 GB, free: 2.48 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.341e-06/0.3394, allocations: 0 / 1.171 GB, free: 2.48 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.3394, allocations: 0 / 1.171 GB, free: 2.48 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001764/0.3396, allocations: 165.6 kB / 1.171 GB, free: 2.27 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.3396, allocations: 4 kB / 1.171 GB, free: 2.266 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.633e-05/0.3397, allocations: 15.92 kB / 1.171 GB, free: 2.25 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.3397, allocations: 0 / 1.171 GB, free: 2.25 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.041e-05/0.3397, allocations: 4 kB / 1.171 GB, free: 2.246 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.3397, allocations: 3.984 kB / 1.171 GB, free: 2.242 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3397, allocations: 4 kB / 1.171 GB, free: 2.238 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002636/0.34, allocations: 171.4 kB / 1.171 GB, free: 2.055 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.599e-05/0.34, allocations: 85.05 kB / 1.171 GB, free: 1.953 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.395e-05/0.3401, allocations: 0 / 1.171 GB, free: 1.953 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.463e-05/0.3401, allocations: 7.984 kB / 1.171 GB, free: 1.945 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.542e-05/0.3402, allocations: 15.98 kB / 1.171 GB, free: 1.93 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-06/0.3402, allocations: 0 / 1.171 GB, free: 1.93 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.252e-05/0.3403, allocations: 87.58 kB / 1.171 GB, free: 1.844 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3403, allocations: 7.938 kB / 1.171 GB, free: 1.836 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.000246/0.3405, allocations: 8 kB / 1.171 GB, free: 1.828 MB / 0.92 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 (rea2Int.y,falFac.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.0006011/0.3411, allocations: 0.724 MB / 1.172 GB, free: 1.078 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002364/0.3414, allocations: 48.12 kB / 1.172 GB, free: 1.031 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3414, allocations: 0 / 1.172 GB, free: 1.031 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001016/0.3415, allocations: 27.92 kB / 1.172 GB, free: 1.004 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003164/0.3418, allocations: 7.938 kB / 1.172 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001584/0.3434, allocations: 1.282 MB / 1.173 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000242/0.3437, allocations: 0.6807 MB / 1.174 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.39e-05/0.3437, allocations: 4 kB / 1.174 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.006e-05/0.3438, allocations: 19.42 kB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of SimCode: time 2.11e-07/0.3438, allocations: 0 / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02009/0.3639, allocations: 1.703 MB / 1.175 GB, free: 13.29 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.804/8.168, allocations: 11.7 kB / 1.175 GB, free: 13.28 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,falFac.y Variables in the result:falFac.k,falFac.n,falFac.y,k.duration,k.height,k.offset,k.startTime,k.y,n.k,n.y,rea2Int.u,rea2Int.y,time