Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_10_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.001472/0.001472, allocations: 106.3 kB / 16.41 MB, free: 6.457 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.001483/0.001483, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.401/1.401, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.463/2.463, allocations: 437 MB / 0.7112 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 67.89 kB / 1.019 GB, free: 9.398 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8465/0.848, allocations: 151.6 MB / 1.167 GB, free: 3.828 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.003062/0.8511, allocations: 1.529 MB / 1.169 GB, free: 2.289 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0004388/0.8516, allocations: 136.4 kB / 1.169 GB, free: 2.152 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.344e-05/0.8517, allocations: 4 kB / 1.169 GB, free: 2.148 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.235e-05/0.8517, allocations: 7.938 kB / 1.169 GB, free: 2.141 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.88e-05/0.8518, allocations: 3.938 kB / 1.169 GB, free: 2.137 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003334/0.8522, allocations: 31.91 kB / 1.169 GB, free: 2.105 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 9.053e-05/0.8523, allocations: 31.92 kB / 1.169 GB, free: 2.074 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.8524, allocations: 15.97 kB / 1.169 GB, free: 2.059 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.05e-05/0.8524, allocations: 11.94 kB / 1.169 GB, free: 2.047 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.668e-05/0.8525, allocations: 23.92 kB / 1.169 GB, free: 2.023 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.52e-05/0.8525, allocations: 4 kB / 1.169 GB, free: 2.02 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 8.754e-05/0.8526, allocations: 23.97 kB / 1.169 GB, free: 1.996 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.798e-05/0.8526, allocations: 11.98 kB / 1.169 GB, free: 1.984 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.511e-05/0.8527, allocations: 11.88 kB / 1.169 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001395/0.8528, allocations: 43.88 kB / 1.169 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.8528, allocations: 0 / 1.169 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.854e-06/0.8528, allocations: 4 kB / 1.169 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.172e-06/0.8529, allocations: 0 / 1.169 GB, free: 1.926 MB / 0.8887 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.0005318/0.8534, allocations: 347.3 kB / 1.169 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.8534, allocations: 12.86 kB / 1.169 GB, free: 1.527 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.701e-05/0.8535, allocations: 12.92 kB / 1.169 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.8536, allocations: 168.3 kB / 1.17 GB, free: 1.312 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.759e-05/0.8537, allocations: 4.375 kB / 1.17 GB, free: 1.309 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.056e-05/0.8537, allocations: 8.312 kB / 1.17 GB, free: 1.301 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000208/0.8539, allocations: 62.22 kB / 1.17 GB, free: 1.234 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.8539, allocations: 4.172 kB / 1.17 GB, free: 1.23 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.8539, allocations: 7.938 kB / 1.17 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.8539, allocations: 0 / 1.17 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001906/0.8541, allocations: 47.95 kB / 1.17 GB, free: 1.176 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004158/0.8546, allocations: 282.5 kB / 1.17 GB, free: 0.8516 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003361/0.8549, allocations: 54.53 kB / 1.17 GB, free: 0.7891 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.354e-05/0.855, allocations: 32.84 kB / 1.17 GB, free: 0.7539 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002985/0.8553, allocations: 405.5 kB / 1.171 GB, free: 272 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.123e-05/0.8553, allocations: 34.56 kB / 1.171 GB, free: 228 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=3): time 1.422e-06/0.8554, allocations: 0 / 1.171 GB, free: 228 kB / 0.8887 GB Notification: Performance of matching and sorting (n=3): time 0.0003738/0.8557, allocations: 89.58 kB / 1.171 GB, free: 132 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.511e-05/0.8558, allocations: 55.41 kB / 1.171 GB, free: 64 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.594e-05/0.8559, allocations: 113.8 kB / 1.171 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.304e-05/0.8559, allocations: 25.7 kB / 1.171 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.266e-05/0.856, allocations: 88.12 kB / 1.171 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.344e-05/0.856, allocations: 3.906 kB / 1.171 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.795e-05/0.8561, allocations: 17.72 kB / 1.171 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001265/0.8562, allocations: 322.8 kB / 1.171 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.926e-05/0.8563, allocations: 15.98 kB / 1.171 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.088e-05/0.8564, allocations: 23.98 kB / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001711/0.8565, allocations: 44.81 kB / 1.171 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.8566, allocations: 0 / 1.171 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002115/0.8568, allocations: 77.5 kB / 1.171 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.8568, allocations: 11.98 kB / 1.171 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.8568, allocations: 0 / 1.171 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.8568, allocations: 0 / 1.171 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.602e-05/0.8569, allocations: 15.98 kB / 1.171 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.8569, allocations: 0 / 1.171 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.979e-05/0.857, allocations: 7.938 kB / 1.171 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.69e-06/0.857, allocations: 0 / 1.171 GB, free: 15.27 MB / 0.9044 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 8.77e-05/0.8571, allocations: 121.8 kB / 1.172 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.588e-05/0.8571, allocations: 0 / 1.172 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002688/0.8574, allocations: 89.8 kB / 1.172 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.8574, allocations: 384 / 1.172 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.8574, allocations: 0 / 1.172 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.8574, allocations: 0 / 1.172 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001806/0.8576, allocations: 177.6 kB / 1.172 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.8576, allocations: 0 / 1.172 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.541e-05/0.8577, allocations: 11.98 kB / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.82e-06/0.8577, allocations: 3.984 kB / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.577e-06/0.8577, allocations: 7.938 kB / 1.172 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.8577, allocations: 0 / 1.172 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.8578, allocations: 0 / 1.172 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002634/0.858, allocations: 183.3 kB / 1.172 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.563e-05/0.8581, allocations: 77.11 kB / 1.172 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.448e-05/0.8581, allocations: 0 / 1.172 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.618e-05/0.8582, allocations: 7.984 kB / 1.172 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.232e-05/0.8582, allocations: 11.94 kB / 1.172 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/0.8582, allocations: 0 / 1.172 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.513e-05/0.8583, allocations: 95.25 kB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8583, allocations: 0 / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002368/0.8586, allocations: 16 kB / 1.172 GB, free: 14.38 MB / 0.9044 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.0001612/0.8587, allocations: 99.25 kB / 1.172 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002474/0.859, allocations: 51.94 kB / 1.172 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.859, allocations: 0 / 1.172 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 9.408e-05/0.8591, allocations: 19.98 kB / 1.172 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002901/0.8594, allocations: 19.88 kB / 1.172 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003711/0.8598, allocations: 147.1 kB / 1.173 GB, free: 14 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000264/0.8601, allocations: 0.6807 MB / 1.173 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.295e-05/0.8601, allocations: 7.438 kB / 1.173 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of SimCode: time 3.4e-07/0.8601, allocations: 0 / 1.173 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of Templates: time 0.00247/0.8626, allocations: 0.8027 MB / 1.174 GB, free: 12.49 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches