Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.Factorial.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001569/0.001569, allocations: 116.4 kB / 16.37 MB, free: 6 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.001703/0.001703, allocations: 193.5 kB / 17.31 MB, free: 5.613 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.385/1.385, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.225/2.225, allocations: 390.3 MB / 0.6655 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002013/0.002013, allocations: 74.75 kB / 0.814 GB, free: 32.72 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.29/0.292, allocations: 140.4 MB / 0.9511 GB, free: 8.043 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002441/0.2945, allocations: 1.518 MB / 0.9526 GB, free: 6.516 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0003072/0.2948, allocations: 124.5 kB / 0.9527 GB, free: 6.391 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.113e-05/0.2949, allocations: 0 / 0.9527 GB, free: 6.391 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.441e-05/0.2949, allocations: 3.938 kB / 0.9527 GB, free: 6.387 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 3.526e-05/0.2949, allocations: 4 kB / 0.9527 GB, free: 6.383 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001939/0.2951, allocations: 15.92 kB / 0.9527 GB, free: 6.367 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.118e-05/0.2952, allocations: 35.91 kB / 0.9528 GB, free: 6.332 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.05e-05/0.2953, allocations: 11.98 kB / 0.9528 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.521e-05/0.2954, allocations: 11.94 kB / 0.9528 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.845e-05/0.2954, allocations: 15.92 kB / 0.9528 GB, free: 6.293 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.328e-05/0.2955, allocations: 4 kB / 0.9528 GB, free: 6.289 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.176e-05/0.2955, allocations: 11.98 kB / 0.9528 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.532e-05/0.2955, allocations: 8 kB / 0.9528 GB, free: 6.27 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.813e-05/0.2956, allocations: 19.91 kB / 0.9529 GB, free: 6.25 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001118/0.2957, allocations: 35.91 kB / 0.9529 GB, free: 6.215 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.2957, allocations: 0 / 0.9529 GB, free: 6.215 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.223e-06/0.2957, allocations: 0 / 0.9529 GB, free: 6.215 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.2957, allocations: 0 / 0.9529 GB, free: 6.215 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004358/0.2962, allocations: 347.4 kB / 0.9532 GB, free: 5.824 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.2962, allocations: 8.031 kB / 0.9532 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.039e-05/0.2962, allocations: 8.844 kB / 0.9532 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001045/0.2963, allocations: 164.4 kB / 0.9534 GB, free: 5.609 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.878e-05/0.2964, allocations: 384 / 0.9534 GB, free: 5.609 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.646e-05/0.2964, allocations: 8.375 kB / 0.9534 GB, free: 5.602 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001631/0.2966, allocations: 62.09 kB / 0.9535 GB, free: 5.535 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.2966, allocations: 192 / 0.9535 GB, free: 5.535 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.22e-05/0.2966, allocations: 7.938 kB / 0.9535 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.2966, allocations: 0 / 0.9535 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000167/0.2968, allocations: 39.95 kB / 0.9535 GB, free: 5.488 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003279/0.2971, allocations: 265 kB / 0.9538 GB, free: 5.18 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002939/0.2974, allocations: 62.41 kB / 0.9538 GB, free: 5.109 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.829e-05/0.2975, allocations: 24.91 kB / 0.9538 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001105/0.2976, allocations: 85.09 kB / 0.9539 GB, free: 4.98 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.039e-05/0.2977, allocations: 38.5 kB / 0.954 GB, free: 4.934 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.2977, allocations: 0 / 0.954 GB, free: 4.934 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0003347/0.298, allocations: 97.53 kB / 0.9541 GB, free: 4.832 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.558e-05/0.298, allocations: 59.34 kB / 0.9541 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.19e-05/0.2981, allocations: 97.86 kB / 0.9542 GB, free: 4.656 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.402e-05/0.2981, allocations: 25.7 kB / 0.9542 GB, free: 4.625 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.714e-05/0.2982, allocations: 84.14 kB / 0.9543 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.928e-05/0.2982, allocations: 15.83 kB / 0.9543 GB, free: 4.523 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.287e-05/0.2982, allocations: 17.72 kB / 0.9543 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.369e-05/0.2983, allocations: 310.8 kB / 0.9546 GB, free: 4.188 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.538e-05/0.2984, allocations: 19.97 kB / 0.9547 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.632e-05/0.2985, allocations: 20.36 kB / 0.9547 GB, free: 4.148 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001538/0.2987, allocations: 52.89 kB / 0.9547 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.2987, allocations: 3.938 kB / 0.9547 GB, free: 4.09 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001946/0.2989, allocations: 73.59 kB / 0.9548 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.2989, allocations: 8 kB / 0.9548 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.2989, allocations: 0 / 0.9548 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.022e-05/0.2989, allocations: 0 / 0.9548 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.967e-05/0.299, allocations: 11.98 kB / 0.9548 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.728e-06/0.299, allocations: 0 / 0.9548 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.339e-05/0.2991, allocations: 11.98 kB / 0.9548 GB, free: 3.98 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-06/0.2991, allocations: 0 / 0.9548 GB, free: 3.98 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 (rea2Int.y,fac.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 6.719e-05/0.2992, allocations: 117.8 kB / 0.9549 GB, free: 3.855 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.411e-05/0.2992, allocations: 0 / 0.9549 GB, free: 3.855 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002472/0.2994, allocations: 81.05 kB / 0.955 GB, free: 3.77 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.2995, allocations: 0 / 0.955 GB, free: 3.77 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.2995, allocations: 8 kB / 0.955 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.2995, allocations: 3.938 kB / 0.955 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001501/0.2996, allocations: 169.6 kB / 0.9552 GB, free: 3.543 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.2996, allocations: 0 / 0.9552 GB, free: 3.543 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.252e-05/0.2997, allocations: 11.98 kB / 0.9552 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.2997, allocations: 0 / 0.9552 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.919e-06/0.2997, allocations: 4 kB / 0.9552 GB, free: 3.527 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.2997, allocations: 3.938 kB / 0.9552 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2997, allocations: 3.938 kB / 0.9552 GB, free: 3.52 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002393/0.3, allocations: 175.4 kB / 0.9554 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.165e-05/0.3, allocations: 77.11 kB / 0.9555 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.29e-05/0.3, allocations: 0 / 0.9555 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.359e-05/0.3001, allocations: 7.984 kB / 0.9555 GB, free: 3.23 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.068e-05/0.3002, allocations: 11.98 kB / 0.9555 GB, free: 3.219 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-06/0.3002, allocations: 0 / 0.9555 GB, free: 3.219 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.444e-05/0.3002, allocations: 79.28 kB / 0.9556 GB, free: 3.141 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.533e-06/0.3002, allocations: 4 kB / 0.9556 GB, free: 3.137 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002212/0.3005, allocations: 15.94 kB / 0.9556 GB, free: 3.121 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 (fac.y,rea2Int.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.0001297/0.3006, allocations: 99.25 kB / 0.9557 GB, free: 3.016 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002119/0.3008, allocations: 43.94 kB / 0.9557 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.3008, allocations: 4 kB / 0.9557 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 8.993e-05/0.3009, allocations: 24.36 kB / 0.9557 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002222/0.3012, allocations: 7.938 kB / 0.9557 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002666/0.3014, allocations: 121.4 kB / 0.9559 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002001/0.3016, allocations: 0.6766 MB / 0.9565 GB, free: 2.09 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.93e-05/0.3017, allocations: 7.984 kB / 0.9565 GB, free: 2.082 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.436e-05/0.3017, allocations: 11.44 kB / 0.9565 GB, free: 2.07 MB / 0.7325 GB Notification: Performance of SimCode: time 2.71e-07/0.3017, allocations: 4 kB / 0.9565 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of Templates: time 0.002744/0.3045, allocations: 0.7119 MB / 0.9572 GB, free: 1.359 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches