Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_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.005455/0.005455, allocations: 104.5 kB / 15.74 MB, free: 5.988 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.001913/0.001913, allocations: 196.2 kB / 16.67 MB, free: 5.914 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.366/1.366, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.781/2.781, allocations: 461.9 MB / 0.7348 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 64.11 kB / 1.054 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8933/0.8946, allocations: 157.4 MB / 1.207 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002542/0.8972, allocations: 1.524 MB / 1.209 GB, free: 12.01 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0003488/0.8976, allocations: 147.5 kB / 1.209 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.663e-05/0.8976, allocations: 0 / 1.209 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.684e-05/0.8977, allocations: 3.938 kB / 1.209 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.491e-05/0.8977, allocations: 3.938 kB / 1.209 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002548/0.898, allocations: 31.91 kB / 1.209 GB, free: 11.83 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 6.867e-05/0.8981, allocations: 35.92 kB / 1.209 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 8.804e-05/0.8982, allocations: 19.97 kB / 1.209 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 3.126e-05/0.8982, allocations: 15.92 kB / 1.209 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.182e-05/0.8983, allocations: 23.92 kB / 1.209 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.354e-05/0.8983, allocations: 4 kB / 1.209 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.876e-05/0.8984, allocations: 19.98 kB / 1.209 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.484e-05/0.8984, allocations: 7.984 kB / 1.209 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.111e-05/0.8984, allocations: 19.86 kB / 1.209 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001175/0.8985, allocations: 35.89 kB / 1.209 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.8985, allocations: 0 / 1.209 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.112e-06/0.8985, allocations: 0 / 1.209 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.999e-06/0.8986, allocations: 0 / 1.209 GB, free: 11.65 MB / 0.9356 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.0004452/0.899, allocations: 361.7 kB / 1.209 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.8991, allocations: 8.031 kB / 1.209 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.249e-05/0.8991, allocations: 30.75 kB / 1.209 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.715e-05/0.8991, allocations: 4.938 kB / 1.209 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.8992, allocations: 176.2 kB / 1.21 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.8993, allocations: 8.375 kB / 1.21 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.229e-05/0.8993, allocations: 4.312 kB / 1.21 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001863/0.8995, allocations: 66.22 kB / 1.21 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.8995, allocations: 3.938 kB / 1.21 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.295e-06/0.8995, allocations: 4 kB / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.8995, allocations: 3.984 kB / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001824/0.8997, allocations: 43.95 kB / 1.21 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003535/0.9001, allocations: 280.7 kB / 1.21 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003042/0.9004, allocations: 66.48 kB / 1.21 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.478e-05/0.9005, allocations: 24.83 kB / 1.21 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002604/0.9008, allocations: 401.5 kB / 1.211 GB, free: 9.938 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.908e-05/0.9008, allocations: 30.56 kB / 1.211 GB, free: 9.898 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.9008, allocations: 0 / 1.211 GB, free: 9.898 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0003639/0.9012, allocations: 105.6 kB / 1.211 GB, free: 9.789 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.318e-05/0.9012, allocations: 51.41 kB / 1.211 GB, free: 9.727 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.524e-05/0.9013, allocations: 105.8 kB / 1.211 GB, free: 9.613 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.248e-05/0.9013, allocations: 25.7 kB / 1.211 GB, free: 9.582 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.932e-05/0.9014, allocations: 88.14 kB / 1.211 GB, free: 9.492 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.322e-05/0.9014, allocations: 3.906 kB / 1.211 GB, free: 9.488 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.383e-05/0.9014, allocations: 21.7 kB / 1.211 GB, free: 9.461 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001055/0.9015, allocations: 314.8 kB / 1.211 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.076e-05/0.9016, allocations: 23.98 kB / 1.211 GB, free: 9.121 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.036e-05/0.9017, allocations: 23.97 kB / 1.211 GB, free: 9.098 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001592/0.9019, allocations: 44.81 kB / 1.211 GB, free: 9.051 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.9019, allocations: 0 / 1.211 GB, free: 9.051 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002131/0.9021, allocations: 77.5 kB / 1.211 GB, free: 8.969 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.9021, allocations: 13.88 kB / 1.211 GB, free: 8.957 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.9021, allocations: 0 / 1.211 GB, free: 8.957 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.052e-05/0.9022, allocations: 0 / 1.211 GB, free: 8.957 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.332e-05/0.9022, allocations: 15.98 kB / 1.211 GB, free: 8.941 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.097e-06/0.9023, allocations: 0 / 1.211 GB, free: 8.941 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.122e-05/0.9023, allocations: 11.92 kB / 1.211 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.5e-06/0.9023, allocations: 0 / 1.211 GB, free: 8.93 MB / 0.9356 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 7.879e-05/0.9024, allocations: 113.8 kB / 1.212 GB, free: 8.809 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.59e-05/0.9024, allocations: 0 / 1.212 GB, free: 8.809 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002512/0.9027, allocations: 93.8 kB / 1.212 GB, free: 8.699 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.9027, allocations: 0 / 1.212 GB, free: 8.699 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.9027, allocations: 0 / 1.212 GB, free: 8.699 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.9027, allocations: 0 / 1.212 GB, free: 8.699 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001619/0.9029, allocations: 169.7 kB / 1.212 GB, free: 8.484 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.9029, allocations: 384 / 1.212 GB, free: 8.484 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.813e-05/0.903, allocations: 15.98 kB / 1.212 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.903, allocations: 0 / 1.212 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.903, allocations: 4 kB / 1.212 GB, free: 8.465 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-05/0.903, allocations: 3.938 kB / 1.212 GB, free: 8.461 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.026e-05/0.903, allocations: 15.97 kB / 1.212 GB, free: 8.445 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002687/0.9033, allocations: 175.3 kB / 1.212 GB, free: 8.258 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.919e-05/0.9034, allocations: 77.11 kB / 1.212 GB, free: 8.164 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.464e-05/0.9034, allocations: 0 / 1.212 GB, free: 8.164 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.827e-05/0.9035, allocations: 11.98 kB / 1.212 GB, free: 8.152 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.113e-05/0.9035, allocations: 19.86 kB / 1.212 GB, free: 8.133 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.389e-06/0.9036, allocations: 0 / 1.212 GB, free: 8.133 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.559e-05/0.9036, allocations: 87.28 kB / 1.212 GB, free: 8.047 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9036, allocations: 0 / 1.212 GB, free: 8.047 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002431/0.9039, allocations: 8 kB / 1.212 GB, free: 8.039 MB / 0.9356 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.0006015/0.9045, allocations: 0.7123 MB / 1.213 GB, free: 7.301 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000231/0.9047, allocations: 51.88 kB / 1.213 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.9047, allocations: 0 / 1.213 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 9.819e-05/0.9048, allocations: 23.98 kB / 1.213 GB, free: 7.227 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003022/0.9051, allocations: 8 kB / 1.213 GB, free: 7.219 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00156/0.9067, allocations: 1.284 MB / 1.214 GB, free: 5.855 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002887/0.907, allocations: 0.6807 MB / 1.215 GB, free: 5.148 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.44e-05/0.9071, allocations: 4 kB / 1.215 GB, free: 5.145 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.557e-05/0.9071, allocations: 23.42 kB / 1.215 GB, free: 5.121 MB / 0.9356 GB Notification: Performance of SimCode: time 3.2e-07/0.9071, allocations: 0 / 1.215 GB, free: 5.121 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01818/0.9253, allocations: 1.709 MB / 1.217 GB, free: 3.508 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.691/8.616, allocations: 7.922 kB / 1.217 GB, free: 3.5 MB / 0.9356 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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