Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.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.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_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.00871/0.00871, allocations: 101.2 kB / 15.73 MB, free: 6.043 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.002082/0.002082, allocations: 197.5 kB / 16.68 MB, free: 5.961 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.457/1.457, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.758/2.758, allocations: 461.9 MB / 0.7348 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001497, allocations: 67.91 kB / 1.054 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9258/0.9273, allocations: 157.4 MB / 1.207 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.002226/0.9296, allocations: 0.5752 MB / 1.208 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0003978/0.93, allocations: 73.67 kB / 1.208 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.869e-05/0.9301, allocations: 0 / 1.208 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.382e-05/0.9302, allocations: 0 / 1.208 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 1.106e-05/0.9302, allocations: 0 / 1.208 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003695/0.9305, allocations: 27.86 kB / 1.208 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001051/0.9307, allocations: 23.97 kB / 1.208 GB, free: 12.86 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.527e-05/0.9307, allocations: 4 kB / 1.208 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 2.966e-05/0.9308, allocations: 11.98 kB / 1.208 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 3.816e-05/0.9308, allocations: 15.98 kB / 1.208 GB, free: 12.82 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.485e-05/0.9308, allocations: 0 / 1.208 GB, free: 12.82 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001006/0.9309, allocations: 15.98 kB / 1.208 GB, free: 12.81 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.505e-05/0.931, allocations: 11.98 kB / 1.208 GB, free: 12.8 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.688e-05/0.931, allocations: 19.88 kB / 1.208 GB, free: 12.78 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001297/0.9312, allocations: 31.89 kB / 1.208 GB, free: 12.75 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.9312, allocations: 0 / 1.208 GB, free: 12.75 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.673e-06/0.9312, allocations: 4 kB / 1.208 GB, free: 12.74 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.004e-05/0.9312, allocations: 0 / 1.208 GB, free: 12.74 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004374/0.9316, allocations: 335.6 kB / 1.208 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.9317, allocations: 12.03 kB / 1.208 GB, free: 12.35 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.221e-05/0.9317, allocations: 30.75 kB / 1.208 GB, free: 12.31 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.642e-05/0.9318, allocations: 8.844 kB / 1.208 GB, free: 12.3 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.9319, allocations: 162.6 kB / 1.209 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.486e-05/0.9319, allocations: 4.375 kB / 1.209 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.439e-05/0.932, allocations: 4.375 kB / 1.209 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001703/0.9321, allocations: 74.16 kB / 1.209 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.9322, allocations: 3.938 kB / 1.209 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.9322, allocations: 0 / 1.209 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.9322, allocations: 0 / 1.209 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001572/0.9323, allocations: 103.9 kB / 1.209 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002165/0.9326, allocations: 177.5 kB / 1.209 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001325/0.9327, allocations: 74.53 kB / 1.209 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.15e-05/0.9328, allocations: 36.78 kB / 1.209 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004238/0.9332, allocations: 401.5 kB / 1.209 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.561e-05/0.9332, allocations: 34.56 kB / 1.209 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=11): time 1.473e-06/0.9333, allocations: 0 / 1.209 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.000294/0.9336, allocations: 113.8 kB / 1.21 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.9336, allocations: 59.33 kB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.255e-05/0.9337, allocations: 101.8 kB / 1.21 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.016e-05/0.9337, allocations: 25.7 kB / 1.21 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.074e-05/0.9337, allocations: 80.14 kB / 1.21 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.546e-05/0.9338, allocations: 23.72 kB / 1.21 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.552e-05/0.9338, allocations: 33.7 kB / 1.21 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001275/0.934, allocations: 310.8 kB / 1.21 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.837e-05/0.934, allocations: 23.92 kB / 1.21 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.707e-05/0.9341, allocations: 23.98 kB / 1.21 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001007/0.9342, allocations: 65.42 kB / 1.21 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.9342, allocations: 0 / 1.21 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001421/0.9343, allocations: 93.61 kB / 1.21 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.9344, allocations: 7.938 kB / 1.21 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.9344, allocations: 7.984 kB / 1.21 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.9344, allocations: 0 / 1.21 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001179/0.9345, allocations: 19.94 kB / 1.21 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.9345, allocations: 0 / 1.21 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.614e-05/0.9346, allocations: 11.84 kB / 1.21 GB, free: 10 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.168e-05/0.9346, allocations: 11.97 kB / 1.21 GB, free: 9.992 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: 11 (n,falFac[10],falFac[9],falFac[8],falFac[7],falFac[6],falFac[5],falFac[4],falFac[3],falFac[2],falFac[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001856/0.9348, allocations: 113.8 kB / 1.211 GB, free: 9.871 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.764e-05/0.9348, allocations: 7.938 kB / 1.211 GB, free: 9.863 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002457/0.935, allocations: 129.5 kB / 1.211 GB, free: 9.723 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.9351, allocations: 4 kB / 1.211 GB, free: 9.719 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.9351, allocations: 0 / 1.211 GB, free: 9.719 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.9351, allocations: 3.984 kB / 1.211 GB, free: 9.715 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001549/0.9352, allocations: 173.5 kB / 1.211 GB, free: 9.496 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.9353, allocations: 3.984 kB / 1.211 GB, free: 9.492 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.327e-05/0.9353, allocations: 20 kB / 1.211 GB, free: 9.473 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.9353, allocations: 3.938 kB / 1.211 GB, free: 9.469 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.9354, allocations: 4 kB / 1.211 GB, free: 9.465 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.9354, allocations: 7.969 kB / 1.211 GB, free: 9.457 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.9354, allocations: 4 kB / 1.211 GB, free: 9.453 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001737/0.9356, allocations: 113 kB / 1.211 GB, free: 9.324 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.174e-05/0.9356, allocations: 88.95 kB / 1.211 GB, free: 9.219 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.823e-05/0.9356, allocations: 7.984 kB / 1.211 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.756e-05/0.9357, allocations: 0 / 1.211 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.608e-05/0.9357, allocations: 7.938 kB / 1.211 GB, free: 9.203 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.9357, allocations: 7.984 kB / 1.211 GB, free: 9.195 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.411e-05/0.9358, allocations: 79.28 kB / 1.211 GB, free: 9.117 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9358, allocations: 0 / 1.211 GB, free: 9.117 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002206/0.936, allocations: 20 kB / 1.211 GB, free: 9.098 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: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0005973/0.9366, allocations: 0.6709 MB / 1.212 GB, free: 8.398 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001719/0.9368, allocations: 68.33 kB / 1.212 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.9368, allocations: 4 kB / 1.212 GB, free: 8.328 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 5.517e-05/0.9369, allocations: 32.14 kB / 1.212 GB, free: 8.297 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001538/0.937, allocations: 8.219 kB / 1.212 GB, free: 8.289 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004913/0.9375, allocations: 182.4 kB / 1.212 GB, free: 8.07 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002836/0.9378, allocations: 0.6846 MB / 1.213 GB, free: 7.359 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 9.543e-05/0.9379, allocations: 39.94 kB / 1.213 GB, free: 7.32 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.503e-05/0.938, allocations: 15.44 kB / 1.213 GB, free: 7.305 MB / 0.9356 GB Notification: Performance of SimCode: time 9.62e-07/0.938, allocations: 0 / 1.213 GB, free: 7.305 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0216/0.9596, allocations: 1.575 MB / 1.214 GB, free: 5.848 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.497/8.457, allocations: 11.91 kB / 1.214 GB, free: 5.836 MB / 0.9356 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches