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.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: translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009673/0.0009674, allocations: 97.78 kB / 16.02 MB, free: 76 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.00133/0.00133, allocations: 182 kB / 16.92 MB, free: 6.918 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.417/1.417, allocations: 223.3 MB / 241 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.76/2.76, allocations: 462.7 MB / 0.7371 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003801/0.0003801, allocations: 8.844 kB / 0.9034 GB, free: 36.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3301/0.3305, allocations: 159.6 MB / 1.059 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.001872/0.3325, allocations: 1.259 MB / 1.061 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000417/0.3329, allocations: 127.6 kB / 1.061 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.282e-05/0.333, allocations: 4 kB / 1.061 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.985e-05/0.333, allocations: 7.984 kB / 1.061 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.221e-05/0.333, allocations: 0 / 1.061 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000246/0.3333, allocations: 23.92 kB / 1.061 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.819e-05/0.3334, allocations: 35.92 kB / 1.061 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.584e-05/0.3335, allocations: 15.97 kB / 1.061 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.939e-05/0.3335, allocations: 11.94 kB / 1.061 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.776e-05/0.3335, allocations: 15.92 kB / 1.061 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.423e-05/0.3336, allocations: 0 / 1.061 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.937e-05/0.3336, allocations: 19.98 kB / 1.061 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.503e-05/0.3337, allocations: 4 kB / 1.061 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.965e-05/0.3337, allocations: 45.55 kB / 1.061 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.578e-05/0.3338, allocations: 27.95 kB / 1.061 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3338, allocations: 4 kB / 1.061 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3338, allocations: 0 / 1.061 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.3338, allocations: 3.938 kB / 1.061 GB, free: 3.34 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004477/0.3343, allocations: 351.7 kB / 1.061 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.3343, allocations: 11.97 kB / 1.061 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.214e-05/0.3344, allocations: 4.844 kB / 1.061 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.3345, allocations: 168.4 kB / 1.061 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.97e-05/0.3345, allocations: 384 / 1.061 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.464e-05/0.3345, allocations: 4.375 kB / 1.061 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002169/0.3348, allocations: 66.17 kB / 1.061 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.3348, allocations: 4.188 kB / 1.061 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.3348, allocations: 11.94 kB / 1.061 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.3348, allocations: 3.984 kB / 1.061 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002052/0.335, allocations: 43.97 kB / 1.062 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004225/0.3355, allocations: 292.7 kB / 1.062 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000328/0.3358, allocations: 70.41 kB / 1.062 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001116/0.3359, allocations: 32.91 kB / 1.062 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000276/0.3362, allocations: 401.5 kB / 1.062 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.393e-05/0.3362, allocations: 34.55 kB / 1.062 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.3362, allocations: 0 / 1.062 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004083/0.3367, allocations: 105.6 kB / 1.062 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.031e-05/0.3367, allocations: 55.34 kB / 1.062 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.664e-05/0.3368, allocations: 117.8 kB / 1.063 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.394e-05/0.3368, allocations: 25.7 kB / 1.063 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.129e-05/0.3369, allocations: 88.12 kB / 1.063 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.506e-05/0.3369, allocations: 7.906 kB / 1.063 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.405e-05/0.3369, allocations: 9.719 kB / 1.063 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001066/0.337, allocations: 322.8 kB / 1.063 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.958e-05/0.3371, allocations: 23.97 kB / 1.063 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.095e-05/0.3372, allocations: 23.98 kB / 1.063 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001947/0.3374, allocations: 60.81 kB / 1.063 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3374, allocations: 0 / 1.063 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002346/0.3377, allocations: 89.94 kB / 1.063 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.3377, allocations: 7.938 kB / 1.063 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.3377, allocations: 48 / 1.063 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.3377, allocations: 3.984 kB / 1.063 GB, free: 0.6289 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.617e-05/0.3378, allocations: 15.98 kB / 1.063 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.187e-06/0.3378, allocations: 0 / 1.063 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.166e-05/0.3379, allocations: 7.984 kB / 1.063 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-06/0.3379, allocations: 4 kB / 1.063 GB, free: 0.6016 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: 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.912e-05/0.338, allocations: 117.8 kB / 1.063 GB, free: 488 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.756e-05/0.338, allocations: 7.906 kB / 1.063 GB, free: 480 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002762/0.3383, allocations: 89.55 kB / 1.063 GB, free: 380 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.3383, allocations: 4 kB / 1.063 GB, free: 376 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.3383, allocations: 3.938 kB / 1.063 GB, free: 372 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.3383, allocations: 0 / 1.063 GB, free: 372 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001642/0.3385, allocations: 173.6 kB / 1.064 GB, free: 148 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.3385, allocations: 7.938 kB / 1.064 GB, free: 140 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.028e-05/0.3386, allocations: 12 kB / 1.064 GB, free: 128 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.3386, allocations: 7.922 kB / 1.064 GB, free: 120 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.3386, allocations: 0 / 1.064 GB, free: 120 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3386, allocations: 0 / 1.064 GB, free: 120 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3386, allocations: 0 / 1.064 GB, free: 120 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002971/0.3389, allocations: 183.5 kB / 1.064 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.624e-05/0.339, allocations: 85 kB / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.339, allocations: 0 / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.101e-05/0.3391, allocations: 16 kB / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.686e-05/0.3392, allocations: 3.984 kB / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.3392, allocations: 4 kB / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.318e-05/0.3392, allocations: 91.56 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.91e-07/0.3392, allocations: 0 / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002256/0.3395, allocations: 8 kB / 1.064 GB, free: 15.7 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.0001531/0.3396, allocations: 107.2 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002382/0.3399, allocations: 59.95 kB / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3399, allocations: 0 / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001094/0.34, allocations: 35.97 kB / 1.064 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002636/0.3403, allocations: 13.36 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003263/0.3406, allocations: 158.3 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002355/0.3409, allocations: 0.6848 MB / 1.065 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.838e-05/0.3409, allocations: 7.438 kB / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.3409, allocations: 0 / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of Templates: time 0.002271/0.3432, allocations: 0.7977 MB / 1.066 GB, free: 13.77 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (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 & ./Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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) Reference file matches