Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001379/0.001379, allocations: 107.3 kB / 16.36 MB, free: 6.285 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.001274/0.001275, allocations: 191.6 kB / 17.29 MB, free: 5.863 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.193/1.193, allocations: 222.9 MB / 241 MB, free: 15.18 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 1.999/1.999, allocations: 390.3 MB / 0.6655 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 64.75 kB / 0.814 GB, free: 32.8 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.2291, allocations: 140.4 MB / 0.9511 GB, free: 8.082 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001761/0.2309, allocations: 0.5859 MB / 0.9517 GB, free: 7.492 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0002482/0.2311, allocations: 55.84 kB / 0.9517 GB, free: 7.438 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.411e-05/0.2312, allocations: 0 / 0.9517 GB, free: 7.438 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.335e-05/0.2312, allocations: 3.938 kB / 0.9517 GB, free: 7.434 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.25e-06/0.2312, allocations: 4 kB / 0.9518 GB, free: 7.43 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001813/0.2314, allocations: 11.98 kB / 0.9518 GB, free: 7.418 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 3.655e-05/0.2314, allocations: 4 kB / 0.9518 GB, free: 7.414 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.162e-05/0.2315, allocations: 3.984 kB / 0.9518 GB, free: 7.41 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 1.254e-05/0.2315, allocations: 3.938 kB / 0.9518 GB, free: 7.406 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 1.796e-05/0.2315, allocations: 4 kB / 0.9518 GB, free: 7.402 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 8.275e-06/0.2315, allocations: 0 / 0.9518 GB, free: 7.402 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 5.953e-05/0.2316, allocations: 8 kB / 0.9518 GB, free: 7.395 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 7.474e-06/0.2316, allocations: 0 / 0.9518 GB, free: 7.395 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 1.639e-05/0.2316, allocations: 3.984 kB / 0.9518 GB, free: 7.391 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 6.894e-05/0.2317, allocations: 11.98 kB / 0.9518 GB, free: 7.379 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.2317, allocations: 4 kB / 0.9518 GB, free: 7.375 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.906e-06/0.2317, allocations: 0 / 0.9518 GB, free: 7.375 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 3.937e-06/0.2317, allocations: 3.938 kB / 0.9518 GB, free: 7.371 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002787/0.232, allocations: 319.6 kB / 0.9521 GB, free: 7.008 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.2321, allocations: 8.031 kB / 0.9521 GB, free: 7 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.986e-05/0.2321, allocations: 4.844 kB / 0.9521 GB, free: 6.996 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.2322, allocations: 164.3 kB / 0.9523 GB, free: 6.797 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.075e-05/0.2322, allocations: 384 / 0.9523 GB, free: 6.797 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.227e-06/0.2323, allocations: 4.375 kB / 0.9523 GB, free: 6.793 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.329e-05/0.2324, allocations: 38.25 kB / 0.9523 GB, free: 6.75 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.961e-06/0.2324, allocations: 4.188 kB / 0.9523 GB, free: 6.746 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.686e-06/0.2324, allocations: 3.938 kB / 0.9523 GB, free: 6.742 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.2324, allocations: 0 / 0.9523 GB, free: 6.742 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.656e-05/0.2324, allocations: 4 kB / 0.9523 GB, free: 6.738 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001409/0.2326, allocations: 145.7 kB / 0.9525 GB, free: 6.547 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 4.756e-05/0.2326, allocations: 26.53 kB / 0.9525 GB, free: 6.512 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.774e-05/0.2326, allocations: 12.92 kB / 0.9525 GB, free: 6.496 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001511/0.2328, allocations: 85.09 kB / 0.9526 GB, free: 6.395 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.924e-05/0.2328, allocations: 34.56 kB / 0.9526 GB, free: 6.352 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.2328, allocations: 0 / 0.9526 GB, free: 6.352 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0001263/0.233, allocations: 45.56 kB / 0.9527 GB, free: 6.301 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/0.233, allocations: 55.34 kB / 0.9527 GB, free: 6.234 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.892e-05/0.2331, allocations: 93.86 kB / 0.9528 GB, free: 6.133 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 7.009e-05/0.2331, allocations: 25.83 kB / 0.9528 GB, free: 6.102 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 2.715e-05/0.2332, allocations: 88.14 kB / 0.9529 GB, free: 6.012 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.017e-05/0.2332, allocations: 0 / 0.9529 GB, free: 6.012 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.611e-05/0.2332, allocations: 13.7 kB / 0.9529 GB, free: 5.992 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.899e-05/0.2333, allocations: 314.8 kB / 0.9532 GB, free: 5.676 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.203e-05/0.2333, allocations: 4 kB / 0.9532 GB, free: 5.672 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.915e-06/0.2334, allocations: 4 kB / 0.9532 GB, free: 5.668 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.612e-05/0.2334, allocations: 8.859 kB / 0.9532 GB, free: 5.656 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2334, allocations: 4.062 kB / 0.9533 GB, free: 5.652 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.067e-05/0.2335, allocations: 41.69 kB / 0.9533 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/0.2335, allocations: 4 kB / 0.9533 GB, free: 5.602 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.2335, allocations: 0 / 0.9533 GB, free: 5.602 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.2335, allocations: 11.88 kB / 0.9533 GB, free: 5.59 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.426e-05/0.2335, allocations: 3.938 kB / 0.9533 GB, free: 5.586 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.2336, allocations: 0 / 0.9533 GB, free: 5.586 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.473e-05/0.2336, allocations: 4 kB / 0.9533 GB, free: 5.582 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.679e-06/0.2336, allocations: 4 kB / 0.9533 GB, free: 5.578 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.319e-05/0.2336, allocations: 113.4 kB / 0.9534 GB, free: 5.461 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.895e-06/0.2337, allocations: 3.984 kB / 0.9534 GB, free: 5.457 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.408e-05/0.2337, allocations: 48.67 kB / 0.9535 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.2337, allocations: 0 / 0.9535 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.2337, allocations: 0 / 0.9535 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.983e-06/0.2338, allocations: 0 / 0.9535 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.57e-05/0.2338, allocations: 157.6 kB / 0.9536 GB, free: 5.199 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.2338, allocations: 0 / 0.9536 GB, free: 5.199 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.143e-05/0.2339, allocations: 7.938 kB / 0.9536 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.2339, allocations: 4.031 kB / 0.9536 GB, free: 5.188 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.032e-06/0.2339, allocations: 3.938 kB / 0.9536 GB, free: 5.184 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.2339, allocations: 0 / 0.9536 GB, free: 5.184 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.2339, allocations: 3.984 kB / 0.9536 GB, free: 5.18 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.858e-05/0.234, allocations: 61.14 kB / 0.9537 GB, free: 5.102 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 2.724e-05/0.234, allocations: 77.11 kB / 0.9538 GB, free: 5.008 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.171e-05/0.234, allocations: 7.922 kB / 0.9538 GB, free: 5 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.658e-06/0.234, allocations: 32 / 0.9538 GB, free: 5 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.065e-05/0.2341, allocations: 4 kB / 0.9538 GB, free: 4.996 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.557e-06/0.2341, allocations: 4 kB / 0.9538 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.07e-05/0.2341, allocations: 77.39 kB / 0.9539 GB, free: 4.918 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1e-07/0.2341, allocations: 0 / 0.9539 GB, free: 4.918 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0001711/0.2343, allocations: 4 kB / 0.9539 GB, free: 4.914 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001209/0.2344, allocations: 107.2 kB / 0.954 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 6.678e-05/0.2345, allocations: 15.92 kB / 0.954 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2345, allocations: 4.062 kB / 0.954 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.281e-05/0.2345, allocations: 4 kB / 0.954 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001142/0.2346, allocations: 1.031 kB / 0.954 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002143/0.2349, allocations: 81.06 kB / 0.9541 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002273/0.2351, allocations: 0.6766 MB / 0.9547 GB, free: 3.969 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 1.028e-05/0.2351, allocations: 3.938 kB / 0.9547 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.28e-05/0.2351, allocations: 7.438 kB / 0.9547 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of SimCode: time 2.7e-07/0.2351, allocations: 4 kB / 0.9547 GB, free: 3.953 MB / 0.7325 GB Notification: Performance of Templates: time 0.001863/0.237, allocations: 326.8 kB / 0.9551 GB, free: 3.637 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches