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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001271/0.001271, allocations: 97.88 kB / 15.36 MB, free: 0.7344 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.007681/0.007681, allocations: 171.8 kB / 16.27 MB, free: 6.648 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.318/1.318, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.533/2.533, allocations: 462.6 MB / 0.7364 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000302/0.000302, allocations: 13.78 kB / 0.9029 GB, free: 36.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.2508, allocations: 159.6 MB / 1.059 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.0006258/0.2515, allocations: 326.8 kB / 1.059 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002616/0.2518, allocations: 63.78 kB / 1.059 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.145e-05/0.2518, allocations: 0 / 1.059 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.157e-05/0.2518, allocations: 3.938 kB / 1.059 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.328e-06/0.2518, allocations: 0 / 1.059 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002048/0.252, allocations: 15.98 kB / 1.059 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.639e-05/0.2521, allocations: 27.92 kB / 1.059 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.473e-05/0.2522, allocations: 0 / 1.059 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.243e-05/0.2522, allocations: 19.97 kB / 1.059 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.678e-05/0.2522, allocations: 8 kB / 1.059 GB, free: 4.367 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.222e-05/0.2522, allocations: 4 kB / 1.059 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.612e-05/0.2523, allocations: 15.98 kB / 1.059 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.527e-05/0.2523, allocations: 15.91 kB / 1.059 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.041e-05/0.2524, allocations: 37.64 kB / 1.059 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.411e-05/0.2525, allocations: 35.89 kB / 1.059 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.2525, allocations: 0 / 1.059 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.423e-06/0.2525, allocations: 4 kB / 1.059 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.186e-06/0.2525, allocations: 0 / 1.059 GB, free: 4.25 MB / 0.8106 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.0002646/0.2528, allocations: 323.6 kB / 1.06 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.2528, allocations: 11.97 kB / 1.06 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.368e-05/0.2528, allocations: 34.75 kB / 1.06 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.283e-05/0.2529, allocations: 4.922 kB / 1.06 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.689e-05/0.253, allocations: 168.6 kB / 1.06 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.478e-06/0.253, allocations: 4.375 kB / 1.06 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.316e-05/0.253, allocations: 4.375 kB / 1.06 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001224/0.2531, allocations: 66.17 kB / 1.06 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.2531, allocations: 3.938 kB / 1.06 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.2531, allocations: 8 kB / 1.06 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.2532, allocations: 3.984 kB / 1.06 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001318/0.2533, allocations: 103.8 kB / 1.06 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000144/0.2534, allocations: 169.6 kB / 1.06 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000101/0.2536, allocations: 70.55 kB / 1.06 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.645e-05/0.2536, allocations: 36.78 kB / 1.06 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002875/0.2539, allocations: 409.5 kB / 1.061 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.2539, allocations: 38.55 kB / 1.061 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.113e-06/0.2539, allocations: 0 / 1.061 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0002176/0.2542, allocations: 114.2 kB / 1.061 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.52e-05/0.2542, allocations: 51.41 kB / 1.061 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.779e-05/0.2542, allocations: 97.77 kB / 1.061 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.2543, allocations: 29.7 kB / 1.061 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.035e-05/0.2543, allocations: 80.14 kB / 1.061 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.562e-05/0.2543, allocations: 27.73 kB / 1.061 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.062e-05/0.2544, allocations: 21.66 kB / 1.061 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.712e-05/0.2545, allocations: 318.8 kB / 1.061 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.719e-05/0.2545, allocations: 19.98 kB / 1.061 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.912e-05/0.2545, allocations: 31.97 kB / 1.061 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.888e-05/0.2546, allocations: 48.84 kB / 1.062 GB, free: 1.676 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.2546, allocations: 0 / 1.062 GB, free: 1.676 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001319/0.2548, allocations: 97.52 kB / 1.062 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.2548, allocations: 15.92 kB / 1.062 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.2548, allocations: 4 kB / 1.062 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.907e-06/0.2548, allocations: 0 / 1.062 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.627e-05/0.2549, allocations: 19.94 kB / 1.062 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.2549, allocations: 0 / 1.062 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.89e-05/0.255, allocations: 0 / 1.062 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.255, allocations: 11.98 kB / 1.062 GB, free: 1.523 MB / 0.8106 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.0001092/0.2551, allocations: 117.8 kB / 1.062 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.516e-05/0.2551, allocations: 11.83 kB / 1.062 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001984/0.2553, allocations: 129.5 kB / 1.062 GB, free: 1.254 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.2553, allocations: 3.938 kB / 1.062 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.2553, allocations: 0 / 1.062 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.2553, allocations: 0 / 1.062 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001145/0.2555, allocations: 177.5 kB / 1.062 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.2555, allocations: 8 kB / 1.062 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.685e-05/0.2555, allocations: 12 kB / 1.062 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.652e-06/0.2556, allocations: 7.938 kB / 1.062 GB, free: 1 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.308e-06/0.2556, allocations: 11.97 kB / 1.062 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.2556, allocations: 0 / 1.062 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2556, allocations: 0 / 1.062 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001467/0.2557, allocations: 117 kB / 1.062 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.316e-05/0.2558, allocations: 96.91 kB / 1.062 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.104e-05/0.2558, allocations: 0 / 1.062 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.547e-05/0.2558, allocations: 0 / 1.062 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.85e-05/0.2558, allocations: 11.98 kB / 1.062 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-06/0.2559, allocations: 8 kB / 1.062 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.462e-05/0.2559, allocations: 75.28 kB / 1.062 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2559, allocations: 0 / 1.062 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001966/0.2561, allocations: 12 kB / 1.062 GB, free: 0.6367 MB / 0.8106 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.0004324/0.2565, allocations: 0.6714 MB / 1.063 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001221/0.2567, allocations: 75.88 kB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.2567, allocations: 0 / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.689e-05/0.2567, allocations: 31.92 kB / 1.063 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001348/0.2569, allocations: 11.94 kB / 1.063 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003353/0.2572, allocations: 184.3 kB / 1.063 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001958/0.2574, allocations: 0.6888 MB / 1.064 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.448e-05/0.2575, allocations: 39.8 kB / 1.064 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.293e-05/0.2575, allocations: 15.44 kB / 1.064 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.2575, allocations: 0 / 1.064 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01035/0.2679, allocations: 1.357 MB / 1.065 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001768/0.2681, allocations: 211.5 kB / 1.066 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.249/2.517, allocations: 0 / 1.066 GB, free: 13.37 MB / 0.8262 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