Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_9_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.001458/0.001458, allocations: 102 kB / 16.27 MB, free: 6.414 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.001748/0.001748, allocations: 189.4 kB / 17.2 MB, free: 5.953 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.478/1.478, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.243/2.243, allocations: 390.3 MB / 0.6653 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 67.2 kB / 0.8132 GB, free: 32.95 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2616, allocations: 140.4 MB / 0.9503 GB, free: 8.887 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.00363/0.2653, allocations: 1.538 MB / 0.9518 GB, free: 7.332 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0004315/0.2658, allocations: 124.5 kB / 0.9519 GB, free: 7.207 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.782e-05/0.2658, allocations: 3.938 kB / 0.9519 GB, free: 7.203 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.181e-05/0.2659, allocations: 3.938 kB / 0.9519 GB, free: 7.199 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.557e-05/0.2659, allocations: 7.938 kB / 0.9519 GB, free: 7.191 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003485/0.2663, allocations: 35.89 kB / 0.9519 GB, free: 7.156 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 8.301e-05/0.2664, allocations: 35.92 kB / 0.952 GB, free: 7.121 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001095/0.2665, allocations: 15.98 kB / 0.952 GB, free: 7.105 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 3.595e-05/0.2665, allocations: 11.94 kB / 0.952 GB, free: 7.094 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.905e-05/0.2666, allocations: 23.91 kB / 0.952 GB, free: 7.07 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.828e-05/0.2666, allocations: 4 kB / 0.952 GB, free: 7.066 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.12e-05/0.2667, allocations: 15.98 kB / 0.952 GB, free: 7.051 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.182e-05/0.2667, allocations: 11.98 kB / 0.952 GB, free: 7.039 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.241e-05/0.2668, allocations: 11.88 kB / 0.9521 GB, free: 7.027 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001412/0.2669, allocations: 47.86 kB / 0.9521 GB, free: 6.98 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.2669, allocations: 4 kB / 0.9521 GB, free: 6.977 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.883e-06/0.2669, allocations: 0 / 0.9521 GB, free: 6.977 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.573e-06/0.267, allocations: 0 / 0.9521 GB, free: 6.977 MB / 0.7325 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.0005586/0.2675, allocations: 351.7 kB / 0.9524 GB, free: 6.582 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.2676, allocations: 8.031 kB / 0.9524 GB, free: 6.574 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.505e-05/0.2676, allocations: 8.844 kB / 0.9525 GB, free: 6.566 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001401/0.2678, allocations: 172.4 kB / 0.9526 GB, free: 6.359 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.434e-05/0.2678, allocations: 4.375 kB / 0.9526 GB, free: 6.355 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.078e-05/0.2678, allocations: 4.375 kB / 0.9526 GB, free: 6.352 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000217/0.268, allocations: 66.17 kB / 0.9527 GB, free: 6.281 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.2681, allocations: 192 / 0.9527 GB, free: 6.281 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.2681, allocations: 3.938 kB / 0.9527 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.2681, allocations: 0 / 0.9527 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002019/0.2683, allocations: 43.95 kB / 0.9527 GB, free: 6.234 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004571/0.2688, allocations: 292.6 kB / 0.953 GB, free: 5.898 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003343/0.2691, allocations: 62.47 kB / 0.9531 GB, free: 5.828 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.92e-05/0.2692, allocations: 24.91 kB / 0.9531 GB, free: 5.801 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003317/0.2696, allocations: 397.6 kB / 0.9535 GB, free: 5.32 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.825e-05/0.2696, allocations: 42.55 kB / 0.9535 GB, free: 5.27 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.303e-06/0.2696, allocations: 0 / 0.9535 GB, free: 5.27 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0004309/0.2701, allocations: 89.64 kB / 0.9536 GB, free: 5.176 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.814e-05/0.2701, allocations: 55.34 kB / 0.9537 GB, free: 5.109 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/0.2702, allocations: 109.8 kB / 0.9538 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.2703, allocations: 33.7 kB / 0.9538 GB, free: 4.953 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.905e-05/0.2703, allocations: 84.12 kB / 0.9539 GB, free: 4.867 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.945e-05/0.2703, allocations: 11.84 kB / 0.9539 GB, free: 4.855 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.802e-05/0.2704, allocations: 17.72 kB / 0.9539 GB, free: 4.832 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002232/0.2706, allocations: 318.8 kB / 0.9542 GB, free: 4.512 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.759e-05/0.2707, allocations: 19.97 kB / 0.9542 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.55e-05/0.2708, allocations: 19.98 kB / 0.9542 GB, free: 4.473 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000177/0.271, allocations: 49.09 kB / 0.9543 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.271, allocations: 4 kB / 0.9543 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002373/0.2713, allocations: 77.58 kB / 0.9544 GB, free: 4.336 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.2713, allocations: 8 kB / 0.9544 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.2713, allocations: 0 / 0.9544 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.2713, allocations: 0 / 0.9544 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.2714, allocations: 11.98 kB / 0.9544 GB, free: 4.316 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.2715, allocations: 0 / 0.9544 GB, free: 4.316 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.196e-05/0.2715, allocations: 11.98 kB / 0.9544 GB, free: 4.305 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.2715, allocations: 0 / 0.9544 GB, free: 4.305 MB / 0.7325 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.63e-05/0.2716, allocations: 115.8 kB / 0.9545 GB, free: 4.184 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.946e-05/0.2717, allocations: 3.906 kB / 0.9545 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002777/0.2719, allocations: 85.55 kB / 0.9546 GB, free: 4.086 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.272, allocations: 3.984 kB / 0.9546 GB, free: 4.082 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.272, allocations: 3.938 kB / 0.9546 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.272, allocations: 4 kB / 0.9546 GB, free: 4.074 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001826/0.2722, allocations: 169.6 kB / 0.9548 GB, free: 3.859 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.2722, allocations: 0 / 0.9548 GB, free: 3.859 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.343e-05/0.2722, allocations: 11.98 kB / 0.9548 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.2723, allocations: 0 / 0.9548 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.717e-06/0.2723, allocations: 0 / 0.9548 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.2723, allocations: 8 kB / 0.9548 GB, free: 3.84 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2723, allocations: 0 / 0.9548 GB, free: 3.84 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002674/0.2726, allocations: 175.4 kB / 0.955 GB, free: 3.652 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.134e-05/0.2726, allocations: 81.02 kB / 0.955 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.567e-05/0.2726, allocations: 0 / 0.955 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.194e-05/0.2727, allocations: 7.938 kB / 0.955 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.177e-05/0.2728, allocations: 11.98 kB / 0.9551 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-06/0.2728, allocations: 0 / 0.9551 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.423e-05/0.2729, allocations: 95.56 kB / 0.9551 GB, free: 3.441 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.422e-06/0.2729, allocations: 3.938 kB / 0.9551 GB, free: 3.438 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002307/0.2731, allocations: 15.94 kB / 0.9552 GB, free: 3.422 MB / 0.7325 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.0001929/0.2733, allocations: 99.25 kB / 0.9553 GB, free: 3.316 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002402/0.2735, allocations: 47.95 kB / 0.9553 GB, free: 3.27 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.2736, allocations: 4 kB / 0.9553 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 9.723e-05/0.2737, allocations: 23.97 kB / 0.9553 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003311/0.274, allocations: 18.38 kB / 0.9553 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004269/0.2744, allocations: 151.2 kB / 0.9555 GB, free: 3.047 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/0.2748, allocations: 0.6844 MB / 0.9562 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.587e-05/0.2748, allocations: 11.44 kB / 0.9562 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of SimCode: time 2.1e-07/0.2748, allocations: 0 / 0.9562 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of Templates: time 0.002483/0.2773, allocations: 0.8103 MB / 0.957 GB, free: 1.52 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches