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.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.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.00127/0.00127, allocations: 108 kB / 16.41 MB, free: 6.027 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.001443/0.001443, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.429/1.429, 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 9.1.3-maint.9.1.x/package.mo): time 2.392/2.392, allocations: 390.3 MB / 0.6655 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 59.91 kB / 0.9515 GB, free: 7.648 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7611/0.7625, allocations: 140.4 MB / 1.089 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002504/0.765, allocations: 1.518 MB / 1.09 GB, free: 4.469 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0003457/0.7654, allocations: 126.7 kB / 1.09 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.453e-05/0.7655, allocations: 0.9375 kB / 1.09 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.765e-05/0.7655, allocations: 0.5625 kB / 1.09 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.199e-05/0.7655, allocations: 9.672 kB / 1.09 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002557/0.7658, allocations: 31.47 kB / 1.09 GB, free: 4.355 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.503e-05/0.7659, allocations: 27.95 kB / 1.09 GB, free: 4.344 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.766, allocations: 13.94 kB / 1.09 GB, free: 4.336 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.006e-05/0.7661, allocations: 14.75 kB / 1.09 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.34e-05/0.7661, allocations: 17.27 kB / 1.09 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.43e-05/0.7661, allocations: 1.812 kB / 1.09 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.424e-05/0.7662, allocations: 13.86 kB / 1.09 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.354e-05/0.7662, allocations: 1.828 kB / 1.09 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.741e-05/0.7663, allocations: 12.44 kB / 1.09 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001181/0.7664, allocations: 38.67 kB / 1.09 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.7664, allocations: 0.9062 kB / 1.09 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.485e-06/0.7664, allocations: 4 kB / 1.09 GB, free: 4.285 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.06e-06/0.7664, allocations: 0 / 1.09 GB, free: 4.285 MB / 0.8575 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.0004105/0.7668, allocations: 345.6 kB / 1.091 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.7669, allocations: 9.781 kB / 1.091 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.737e-05/0.7669, allocations: 5.719 kB / 1.091 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.3e-05/0.767, allocations: 164.4 kB / 1.091 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.28e-05/0.767, allocations: 1.469 kB / 1.091 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.09e-05/0.767, allocations: 5.406 kB / 1.091 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001767/0.7672, allocations: 63.55 kB / 1.091 GB, free: 3.68 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.7672, allocations: 192 / 1.091 GB, free: 3.68 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.7673, allocations: 3.938 kB / 1.091 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.79e-06/0.7673, allocations: 1.797 kB / 1.091 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001898/0.7675, allocations: 41.95 kB / 1.091 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003002/0.7678, allocations: 260 kB / 1.091 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003264/0.7681, allocations: 61.17 kB / 1.091 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.7682, allocations: 25.64 kB / 1.091 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.772e-05/0.7683, allocations: 81.77 kB / 1.091 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.019e-05/0.7683, allocations: 39.62 kB / 1.091 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.7684, allocations: 0 / 1.091 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003879/0.7687, allocations: 101.5 kB / 1.092 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.665e-05/0.7688, allocations: 52.16 kB / 1.092 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.393e-05/0.7688, allocations: 101.5 kB / 1.092 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.759e-06/0.7689, allocations: 25.7 kB / 1.092 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.792e-05/0.7689, allocations: 82.83 kB / 1.092 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.643e-05/0.7689, allocations: 11.2 kB / 1.092 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.44e-05/0.7689, allocations: 19.39 kB / 1.092 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.519e-05/0.769, allocations: 317.2 kB / 1.092 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.491e-05/0.7691, allocations: 16.31 kB / 1.092 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.903e-05/0.7692, allocations: 20.22 kB / 1.092 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001724/0.7694, allocations: 50.05 kB / 1.092 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.7694, allocations: 3.938 kB / 1.092 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000222/0.7696, allocations: 80.7 kB / 1.092 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.7696, allocations: 5.062 kB / 1.092 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.7696, allocations: 1.156 kB / 1.092 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.7697, allocations: 0.6094 kB / 1.092 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.187e-05/0.7697, allocations: 11.12 kB / 1.092 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.531e-06/0.7698, allocations: 1.156 kB / 1.092 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.721e-05/0.7698, allocations: 6.078 kB / 1.092 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-06/0.7698, allocations: 1.672 kB / 1.092 GB, free: 2.457 MB / 0.8575 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 5.463e-05/0.7699, allocations: 122.3 kB / 1.092 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.558e-05/0.7699, allocations: 5.5 kB / 1.092 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002554/0.7702, allocations: 86.17 kB / 1.093 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.7702, allocations: 5.156 kB / 1.093 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.7702, allocations: 0 / 1.093 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.7702, allocations: 0.5156 kB / 1.093 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001217/0.7703, allocations: 171.9 kB / 1.093 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.7703, allocations: 0.5625 kB / 1.093 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.367e-05/0.7704, allocations: 10.12 kB / 1.093 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.7704, allocations: 1.984 kB / 1.093 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.7704, allocations: 1.438 kB / 1.093 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.7705, allocations: 0.7969 kB / 1.093 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.7705, allocations: 0 / 1.093 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002429/0.7707, allocations: 181.4 kB / 1.093 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.012e-05/0.7707, allocations: 82.78 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.505e-05/0.7708, allocations: 1.281 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.539e-05/0.7708, allocations: 5.984 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.587e-05/0.7709, allocations: 5.406 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.993e-06/0.7709, allocations: 9.75 kB / 1.093 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 1.98e-05/0.7709, allocations: 79.89 kB / 1.093 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7709, allocations: 0 / 1.093 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002273/0.7712, allocations: 10.75 kB / 1.093 GB, free: 1.734 MB / 0.8575 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.0001358/0.7713, allocations: 105.4 kB / 1.093 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002464/0.7716, allocations: 49.92 kB / 1.093 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.7716, allocations: 0 / 1.093 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.968e-05/0.7717, allocations: 23.61 kB / 1.093 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002743/0.772, allocations: 7.297 kB / 1.093 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002664/0.7722, allocations: 143.2 kB / 1.093 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000104/0.7724, allocations: 0.6775 MB / 1.094 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.995e-05/0.7724, allocations: 11.38 kB / 1.094 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of SimCode: time 2.21e-07/0.7724, allocations: 0 / 1.094 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of Templates: time 0.002234/0.7746, allocations: 0.7375 MB / 1.095 GB, free: 0.7188 MB / 0.8575 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 -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