Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_11_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.001241/0.001241, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 194.7 kB / 16.53 MB, free: 6.699 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.426/1.426, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.746/2.746, allocations: 469.8 MB / 0.7424 GB, free: 7.488 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001747/0.001747, allocations: 64.91 kB / 0.9087 GB, free: 34.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2522/0.254, allocations: 159.2 MB / 1.064 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002506/0.2565, allocations: 1.533 MB / 1.066 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0003171/0.2569, allocations: 129.5 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.311e-05/0.2569, allocations: 4 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.594e-05/0.2569, allocations: 7.938 kB / 1.066 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.413e-05/0.257, allocations: 11.86 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002225/0.2572, allocations: 27.97 kB / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.57e-05/0.2573, allocations: 35.92 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.129e-05/0.2574, allocations: 8 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.367e-05/0.2574, allocations: 23.91 kB / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.17e-05/0.2575, allocations: 19.92 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.251e-05/0.2575, allocations: 8 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.041e-05/0.2575, allocations: 15.98 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.476e-05/0.2576, allocations: 11.88 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.188e-05/0.2576, allocations: 19.92 kB / 1.066 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 9.835e-05/0.2577, allocations: 39.88 kB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.2577, allocations: 0 / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of FrontEnd: time 7.71e-07/0.2577, allocations: 0 / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.434e-06/0.2577, allocations: 0 / 1.066 GB, free: 12.36 MB / 0.8262 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.0004301/0.2582, allocations: 355.7 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.147e-05/0.2582, allocations: 16.03 kB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.321e-05/0.2582, allocations: 30.75 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.001e-05/0.2583, allocations: 0.9375 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001105/0.2584, allocations: 168.3 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.906e-05/0.2584, allocations: 4.375 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.117e-06/0.2584, allocations: 4.375 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001719/0.2586, allocations: 62.22 kB / 1.067 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.2586, allocations: 3.938 kB / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.2586, allocations: 0 / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.2586, allocations: 11.94 kB / 1.067 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001806/0.2588, allocations: 51.88 kB / 1.067 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003556/0.2592, allocations: 276.8 kB / 1.067 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002882/0.2595, allocations: 66.47 kB / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.435e-05/0.2596, allocations: 28.89 kB / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002844/0.2599, allocations: 397.5 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.133e-05/0.2599, allocations: 30.56 kB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.2599, allocations: 0 / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0003543/0.2603, allocations: 97.53 kB / 1.067 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.062e-05/0.2603, allocations: 59.41 kB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.633e-05/0.2604, allocations: 105.8 kB / 1.068 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.38e-05/0.2604, allocations: 25.7 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.815e-05/0.2605, allocations: 88.14 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.156e-05/0.2605, allocations: 7.844 kB / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.409e-05/0.2605, allocations: 21.7 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001221/0.2607, allocations: 314.8 kB / 1.068 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.954e-05/0.2607, allocations: 27.97 kB / 1.068 GB, free: 9.832 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.841e-05/0.2608, allocations: 19.98 kB / 1.068 GB, free: 9.812 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001595/0.261, allocations: 48.75 kB / 1.068 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.261, allocations: 0 / 1.068 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002017/0.2612, allocations: 73.56 kB / 1.068 GB, free: 9.684 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.2612, allocations: 8 kB / 1.068 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.2612, allocations: 0 / 1.068 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.022e-05/0.2613, allocations: 0 / 1.068 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.409e-05/0.2613, allocations: 15.92 kB / 1.068 GB, free: 9.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.2613, allocations: 0 / 1.068 GB, free: 9.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.582e-05/0.2614, allocations: 11.98 kB / 1.068 GB, free: 9.648 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.503e-06/0.2614, allocations: 8.312 kB / 1.068 GB, free: 9.641 MB / 0.8262 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.27e-05/0.2615, allocations: 109.8 kB / 1.068 GB, free: 9.523 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.465e-05/0.2615, allocations: 4 kB / 1.068 GB, free: 9.52 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002416/0.2618, allocations: 89.53 kB / 1.068 GB, free: 9.422 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.2618, allocations: 4 kB / 1.068 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.2618, allocations: 0 / 1.068 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.2618, allocations: 0 / 1.068 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001652/0.262, allocations: 165.6 kB / 1.069 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.262, allocations: 7.922 kB / 1.069 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.205e-05/0.2621, allocations: 12 kB / 1.069 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.247e-06/0.2621, allocations: 7.938 kB / 1.069 GB, free: 9.18 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.2621, allocations: 3.984 kB / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.2621, allocations: 0 / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2621, allocations: 0 / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002493/0.2623, allocations: 175.7 kB / 1.069 GB, free: 8.988 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.46e-05/0.2624, allocations: 81.11 kB / 1.069 GB, free: 8.891 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.495e-05/0.2624, allocations: 3.984 kB / 1.069 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.776e-05/0.2625, allocations: 8 kB / 1.069 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.245e-05/0.2625, allocations: 7.984 kB / 1.069 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.743e-06/0.2626, allocations: 4 kB / 1.069 GB, free: 8.867 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.371e-05/0.2626, allocations: 83.28 kB / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2626, allocations: 0 / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000215/0.2628, allocations: 15.92 kB / 1.069 GB, free: 8.77 MB / 0.8262 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.0005699/0.2634, allocations: 0.7287 MB / 1.07 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002086/0.2636, allocations: 43.95 kB / 1.07 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.624e-06/0.2636, allocations: 0 / 1.07 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.202e-05/0.2637, allocations: 23.92 kB / 1.07 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002415/0.264, allocations: 17.39 kB / 1.07 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001339/0.2653, allocations: 1.278 MB / 1.071 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002657/0.2656, allocations: 0.6807 MB / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.568e-05/0.2656, allocations: 4 kB / 1.072 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.504e-05/0.2657, allocations: 19.42 kB / 1.072 GB, free: 5.848 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.2657, allocations: 0 / 1.072 GB, free: 5.848 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.17/2.436, allocations: 1.667 MB / 1.073 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.289/11.72, allocations: 5.625 kB / 1.073 GB, free: 4.242 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches