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.001101/0.001105, allocations: 105.2 kB / 16.35 MB, free: 5.824 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.001147/0.001147, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.369/1.369, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.42/2.42, allocations: 442.6 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 71.86 kB / 0.8773 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.2868, allocations: 153 MB / 1.027 GB, free: 2.023 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002863/0.2897, allocations: 1.548 MB / 1.028 GB, free: 480 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0003607/0.2901, allocations: 136.4 kB / 1.028 GB, free: 340 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.56e-05/0.2901, allocations: 0 / 1.028 GB, free: 340 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.888e-05/0.2902, allocations: 3.938 kB / 1.028 GB, free: 336 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.745e-05/0.2902, allocations: 3.938 kB / 1.028 GB, free: 332 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002936/0.2905, allocations: 31.91 kB / 1.028 GB, free: 300 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 7.977e-05/0.2906, allocations: 39.91 kB / 1.028 GB, free: 260 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.2907, allocations: 19.98 kB / 1.028 GB, free: 240 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 3.091e-05/0.2908, allocations: 15.92 kB / 1.028 GB, free: 224 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 4.594e-05/0.2908, allocations: 19.92 kB / 1.028 GB, free: 204 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.44e-05/0.2908, allocations: 4 kB / 1.028 GB, free: 200 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 7.112e-05/0.2909, allocations: 19.98 kB / 1.029 GB, free: 180 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.823e-05/0.2909, allocations: 11.92 kB / 1.029 GB, free: 168 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.103e-05/0.291, allocations: 15.92 kB / 1.029 GB, free: 152 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001173/0.2911, allocations: 35.89 kB / 1.029 GB, free: 116 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.738e-06/0.2911, allocations: 0 / 1.029 GB, free: 116 kB / 0.795 GB Notification: Performance of FrontEnd: time 1.583e-06/0.2911, allocations: 0 / 1.029 GB, free: 116 kB / 0.795 GB Notification: Performance of Transformations before backend: time 4.88e-06/0.2911, allocations: 4 kB / 1.029 GB, free: 112 kB / 0.795 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.0005161/0.2916, allocations: 363.4 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.2917, allocations: 8.031 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.701e-05/0.2917, allocations: 4.875 kB / 1.029 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001203/0.2919, allocations: 172.2 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.095e-05/0.2919, allocations: 384 / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.271e-05/0.2919, allocations: 4.375 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001937/0.2921, allocations: 70.2 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.134e-06/0.2921, allocations: 192 / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.2921, allocations: 7.938 kB / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.2921, allocations: 4 kB / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001757/0.2923, allocations: 39.95 kB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003832/0.2927, allocations: 276.7 kB / 1.029 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003077/0.293, allocations: 62.53 kB / 1.03 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.2932, allocations: 24.91 kB / 1.03 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002779/0.2934, allocations: 405.5 kB / 1.03 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.308e-05/0.2935, allocations: 30.56 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/0.2935, allocations: 0 / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003791/0.2939, allocations: 101.5 kB / 1.03 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.326e-05/0.2939, allocations: 55.41 kB / 1.03 GB, free: 14.24 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.836e-05/0.294, allocations: 109.8 kB / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.339e-05/0.294, allocations: 25.7 kB / 1.03 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.953e-05/0.294, allocations: 84.14 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.275e-05/0.2941, allocations: 7.984 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.509e-05/0.2941, allocations: 13.72 kB / 1.03 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001064/0.2942, allocations: 330.7 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.783e-05/0.2943, allocations: 19.98 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.567e-05/0.2944, allocations: 20.14 kB / 1.031 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001546/0.2946, allocations: 44.83 kB / 1.031 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2946, allocations: 0 / 1.031 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002038/0.2948, allocations: 85.58 kB / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.2948, allocations: 4 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.2948, allocations: 0 / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.2948, allocations: 0 / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.025e-05/0.2949, allocations: 11.98 kB / 1.031 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.2949, allocations: 0 / 1.031 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.686e-05/0.295, allocations: 11.84 kB / 1.031 GB, free: 13.44 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.654e-06/0.295, allocations: 4 kB / 1.031 GB, free: 13.44 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 8.011e-05/0.2951, allocations: 125.7 kB / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.624e-05/0.2951, allocations: 4 kB / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00024/0.2954, allocations: 81.48 kB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.2954, allocations: 4 kB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.2954, allocations: 0 / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.2954, allocations: 0 / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001606/0.2956, allocations: 173.6 kB / 1.031 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.2956, allocations: 0 / 1.031 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.59e-05/0.2956, allocations: 15.98 kB / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.2957, allocations: 0 / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.766e-06/0.2957, allocations: 4 kB / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2957, allocations: 0 / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2957, allocations: 0 / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002496/0.2959, allocations: 179.3 kB / 1.031 GB, free: 12.78 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.193e-05/0.296, allocations: 85.05 kB / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.369e-05/0.296, allocations: 4 kB / 1.032 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.788e-05/0.2961, allocations: 7.984 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.217e-05/0.2961, allocations: 0 / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.876e-06/0.2962, allocations: 7.984 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.86e-05/0.2962, allocations: 83.28 kB / 1.032 GB, free: 12.57 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2962, allocations: 0 / 1.032 GB, free: 12.57 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002319/0.2964, allocations: 12 kB / 1.032 GB, free: 12.56 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: 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.0001488/0.2966, allocations: 111.2 kB / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002239/0.2968, allocations: 44.19 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2968, allocations: 0 / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.43e-05/0.2969, allocations: 27.92 kB / 1.032 GB, free: 12.37 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/0.2972, allocations: 12.06 kB / 1.032 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002991/0.2975, allocations: 121.4 kB / 1.032 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002338/0.2978, allocations: 0.6885 MB / 1.033 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.013e-05/0.2978, allocations: 4 kB / 1.033 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.698e-05/0.2979, allocations: 11.44 kB / 1.033 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of SimCode: time 3.91e-07/0.2979, allocations: 4 kB / 1.033 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of Templates: time 0.003078/0.3009, allocations: 0.7589 MB / 1.033 GB, free: 10.73 MB / 0.8106 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 -s gbode -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