Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_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.001632/0.001632, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002096/0.002096, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.36/1.36, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.866/2.866, allocations: 472.7 MB / 0.7451 GB, free: 4.609 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 64.84 kB / 0.9121 GB, free: 33.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3207/0.3219, allocations: 159.9 MB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002885/0.3248, allocations: 1.508 MB / 1.07 GB, free: 8.867 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0003555/0.3252, allocations: 127.6 kB / 1.07 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.301e-05/0.3253, allocations: 0 / 1.07 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.048e-05/0.3253, allocations: 7.938 kB / 1.07 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.814e-05/0.3254, allocations: 0 / 1.07 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002196/0.3256, allocations: 19.92 kB / 1.07 GB, free: 8.715 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.751e-05/0.3257, allocations: 31.92 kB / 1.07 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.671e-05/0.3258, allocations: 7.984 kB / 1.07 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.603e-05/0.3258, allocations: 15.92 kB / 1.07 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.457e-05/0.3259, allocations: 15.92 kB / 1.07 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.491e-05/0.3259, allocations: 4 kB / 1.07 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.454e-05/0.326, allocations: 12 kB / 1.07 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.598e-05/0.326, allocations: 11.98 kB / 1.07 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.787e-05/0.326, allocations: 11.94 kB / 1.07 GB, free: 8.605 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001057/0.3261, allocations: 39.88 kB / 1.07 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.3261, allocations: 3.938 kB / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3261, allocations: 0 / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.711e-06/0.3262, allocations: 0 / 1.07 GB, free: 8.562 MB / 0.8262 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.000438/0.3266, allocations: 343.7 kB / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.3266, allocations: 8.031 kB / 1.07 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.021e-05/0.3267, allocations: 4.938 kB / 1.07 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001129/0.3268, allocations: 168.4 kB / 1.07 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.26e-05/0.3268, allocations: 4.375 kB / 1.07 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.393e-05/0.3269, allocations: 4.359 kB / 1.07 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001935/0.3271, allocations: 62.17 kB / 1.071 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.3271, allocations: 192 / 1.071 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.3271, allocations: 3.938 kB / 1.071 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.3271, allocations: 0 / 1.071 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001859/0.3273, allocations: 47.95 kB / 1.071 GB, free: 7.836 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000366/0.3277, allocations: 260.9 kB / 1.071 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003146/0.328, allocations: 62.42 kB / 1.071 GB, free: 7.461 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/0.3281, allocations: 32.89 kB / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001167/0.3282, allocations: 81.11 kB / 1.071 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.989e-05/0.3282, allocations: 34.56 kB / 1.071 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.483e-06/0.3283, allocations: 0 / 1.071 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0003787/0.3286, allocations: 93.62 kB / 1.071 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.673e-05/0.3287, allocations: 51.41 kB / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.383e-05/0.3288, allocations: 109.7 kB / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.966e-05/0.3288, allocations: 29.7 kB / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.297e-05/0.3289, allocations: 84.14 kB / 1.071 GB, free: 6.887 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.018e-05/0.3289, allocations: 11.83 kB / 1.071 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.444e-05/0.3289, allocations: 21.7 kB / 1.071 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000107/0.3291, allocations: 310.8 kB / 1.072 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.351e-05/0.3292, allocations: 19.98 kB / 1.072 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.419e-05/0.3292, allocations: 27.97 kB / 1.072 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001634/0.3294, allocations: 36.83 kB / 1.072 GB, free: 6.449 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3294, allocations: 3.938 kB / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002133/0.3296, allocations: 81.55 kB / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.3297, allocations: 4 kB / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.3297, allocations: 3.984 kB / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.3297, allocations: 0 / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.33e-05/0.3298, allocations: 19.92 kB / 1.072 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.3298, allocations: 0 / 1.072 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.837e-05/0.3299, allocations: 7.984 kB / 1.072 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-06/0.3299, allocations: 0 / 1.072 GB, free: 6.324 MB / 0.8262 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 0.0001174/0.33, allocations: 119.8 kB / 1.072 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.403e-05/0.33, allocations: 0 / 1.072 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002686/0.3303, allocations: 93.06 kB / 1.072 GB, free: 6.094 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.3303, allocations: 0 / 1.072 GB, free: 6.094 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3303, allocations: 0 / 1.072 GB, free: 6.094 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.3303, allocations: 0 / 1.072 GB, free: 6.094 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000161/0.3305, allocations: 169.6 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.3305, allocations: 0 / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.417e-05/0.3306, allocations: 15.92 kB / 1.072 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.3306, allocations: 0 / 1.072 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.3306, allocations: 0 / 1.072 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.033e-06/0.3306, allocations: 0 / 1.072 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3306, allocations: 0 / 1.072 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002797/0.3309, allocations: 175.4 kB / 1.072 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.65e-05/0.331, allocations: 81.02 kB / 1.073 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.621e-05/0.331, allocations: 0 / 1.073 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.097e-05/0.3311, allocations: 11.92 kB / 1.073 GB, free: 5.566 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.823e-05/0.3311, allocations: 12 kB / 1.073 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.3312, allocations: 4 kB / 1.073 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.688e-05/0.3312, allocations: 83.27 kB / 1.073 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3312, allocations: 0 / 1.073 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002222/0.3314, allocations: 12 kB / 1.073 GB, free: 5.457 MB / 0.8262 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.000158/0.3316, allocations: 103.7 kB / 1.073 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002387/0.3318, allocations: 39.95 kB / 1.073 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.3318, allocations: 4 kB / 1.073 GB, free: 5.301 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001011/0.332, allocations: 27.97 kB / 1.073 GB, free: 5.273 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002909/0.3323, allocations: 11.94 kB / 1.073 GB, free: 5.262 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003399/0.3326, allocations: 109.5 kB / 1.073 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002982/0.3329, allocations: 0.6806 MB / 1.074 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.451e-05/0.3329, allocations: 8 kB / 1.074 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.073e-05/0.333, allocations: 15.44 kB / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.333, allocations: 0 / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of Templates: time 0.003108/0.3361, allocations: 0.707 MB / 1.074 GB, free: 3.695 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches