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.00118/0.00118, allocations: 110.2 kB / 16.37 MB, free: 6.012 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.001165/0.001165, allocations: 191.4 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.21/1.21, 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 2.039/2.039, allocations: 390.3 MB / 0.6655 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 68.64 kB / 0.814 GB, free: 32.73 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.2309, allocations: 140.4 MB / 0.9511 GB, free: 8.098 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002475/0.2334, allocations: 1.518 MB / 0.9526 GB, free: 6.57 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.000365/0.2338, allocations: 128.5 kB / 0.9527 GB, free: 6.441 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.205e-05/0.2338, allocations: 4 kB / 0.9527 GB, free: 6.438 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.781e-05/0.2338, allocations: 3.938 kB / 0.9527 GB, free: 6.434 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 3.085e-05/0.2339, allocations: 0 / 0.9527 GB, free: 6.434 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001862/0.2341, allocations: 23.91 kB / 0.9527 GB, free: 6.41 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 6.466e-05/0.2342, allocations: 31.91 kB / 0.9528 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.733e-05/0.2342, allocations: 8 kB / 0.9528 GB, free: 6.371 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.988e-05/0.2343, allocations: 19.92 kB / 0.9528 GB, free: 6.352 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.413e-05/0.2343, allocations: 19.91 kB / 0.9528 GB, free: 6.332 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.085e-05/0.2344, allocations: 0 / 0.9528 GB, free: 6.332 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 4.932e-05/0.2344, allocations: 12 kB / 0.9528 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.267e-05/0.2344, allocations: 4 kB / 0.9528 GB, free: 6.316 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.741e-05/0.2345, allocations: 15.92 kB / 0.9529 GB, free: 6.301 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 9.339e-05/0.2346, allocations: 39.89 kB / 0.9529 GB, free: 6.262 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.474e-06/0.2346, allocations: 0 / 0.9529 GB, free: 6.262 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2346, allocations: 4 kB / 0.9529 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.2346, allocations: 3.938 kB / 0.9529 GB, free: 6.254 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.0004409/0.235, allocations: 347.4 kB / 0.9532 GB, free: 5.863 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.2351, allocations: 8.031 kB / 0.9532 GB, free: 5.855 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.175e-05/0.2351, allocations: 4.844 kB / 0.9532 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001342/0.2353, allocations: 168.3 kB / 0.9534 GB, free: 5.648 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.246e-05/0.2353, allocations: 4.375 kB / 0.9534 GB, free: 5.645 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.197e-05/0.2353, allocations: 384 / 0.9534 GB, free: 5.645 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001653/0.2355, allocations: 62.22 kB / 0.9535 GB, free: 5.578 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.2355, allocations: 192 / 0.9535 GB, free: 5.578 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.287e-06/0.2355, allocations: 3.938 kB / 0.9535 GB, free: 5.574 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.2355, allocations: 4 kB / 0.9535 GB, free: 5.57 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001591/0.2357, allocations: 39.95 kB / 0.9535 GB, free: 5.531 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003108/0.236, allocations: 260.9 kB / 0.9538 GB, free: 5.227 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002907/0.2363, allocations: 62.47 kB / 0.9538 GB, free: 5.156 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.369e-05/0.2364, allocations: 24.91 kB / 0.9538 GB, free: 5.129 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000105/0.2365, allocations: 85.09 kB / 0.9539 GB, free: 5.027 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.863e-05/0.2365, allocations: 38.5 kB / 0.954 GB, free: 4.98 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.2365, allocations: 0 / 0.954 GB, free: 4.98 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0003409/0.2369, allocations: 101.5 kB / 0.9541 GB, free: 4.875 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.928e-05/0.2369, allocations: 55.41 kB / 0.9541 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.965e-05/0.237, allocations: 97.86 kB / 0.9542 GB, free: 4.703 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.237, allocations: 25.7 kB / 0.9542 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.193e-05/0.237, allocations: 88.12 kB / 0.9543 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.387e-05/0.2371, allocations: 11.84 kB / 0.9543 GB, free: 4.57 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.354e-05/0.2371, allocations: 17.72 kB / 0.9543 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001071/0.2372, allocations: 314.8 kB / 0.9546 GB, free: 4.23 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.285e-05/0.2373, allocations: 19.97 kB / 0.9547 GB, free: 4.211 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.966e-05/0.2374, allocations: 15.98 kB / 0.9547 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001417/0.2375, allocations: 48.81 kB / 0.9547 GB, free: 4.145 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.2375, allocations: 3.938 kB / 0.9547 GB, free: 4.141 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001795/0.2377, allocations: 77.59 kB / 0.9548 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.2377, allocations: 4 kB / 0.9548 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-06/0.2378, allocations: 0 / 0.9548 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/0.2378, allocations: 4 kB / 0.9548 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.866e-05/0.2378, allocations: 7.984 kB / 0.9548 GB, free: 4.043 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.2379, allocations: 4 kB / 0.9548 GB, free: 4.039 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.159e-05/0.2379, allocations: 11.98 kB / 0.9548 GB, free: 4.027 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.2379, allocations: 0 / 0.9548 GB, free: 4.027 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 7.56e-05/0.238, allocations: 113.8 kB / 0.9549 GB, free: 3.906 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.407e-05/0.238, allocations: 4 kB / 0.9549 GB, free: 3.902 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002219/0.2383, allocations: 84.98 kB / 0.955 GB, free: 3.812 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.2383, allocations: 0 / 0.955 GB, free: 3.812 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.2383, allocations: 7.938 kB / 0.955 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2383, allocations: 7.984 kB / 0.955 GB, free: 3.797 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001435/0.2384, allocations: 165.6 kB / 0.9552 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.2384, allocations: 0 / 0.9552 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.692e-05/0.2385, allocations: 11.98 kB / 0.9552 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.2385, allocations: 0 / 0.9552 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.272e-06/0.2385, allocations: 0 / 0.9552 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.2385, allocations: 3.984 kB / 0.9552 GB, free: 3.57 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2385, allocations: 7.938 kB / 0.9552 GB, free: 3.562 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000221/0.2388, allocations: 168 kB / 0.9554 GB, free: 3.383 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.828e-05/0.2388, allocations: 81.11 kB / 0.9555 GB, free: 3.285 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.09e-05/0.2388, allocations: 0 / 0.9555 GB, free: 3.285 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.894e-05/0.2389, allocations: 7.984 kB / 0.9555 GB, free: 3.277 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.648e-05/0.239, allocations: 15.92 kB / 0.9555 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.818e-06/0.239, allocations: 0 / 0.9555 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.071e-05/0.239, allocations: 83.31 kB / 0.9556 GB, free: 3.18 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.239, allocations: 4 kB / 0.9556 GB, free: 3.176 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002082/0.2392, allocations: 8 kB / 0.9556 GB, free: 3.168 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.0001198/0.2394, allocations: 103.2 kB / 0.9557 GB, free: 3.059 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002048/0.2396, allocations: 43.95 kB / 0.9557 GB, free: 3.016 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2396, allocations: 0 / 0.9557 GB, free: 3.016 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 8.455e-05/0.2397, allocations: 19.98 kB / 0.9557 GB, free: 2.996 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002094/0.2399, allocations: 19.88 kB / 0.9558 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002416/0.2401, allocations: 117.5 kB / 0.9559 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000218/0.2404, allocations: 0.6844 MB / 0.9565 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.369e-05/0.2404, allocations: 0 / 0.9565 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.506e-05/0.2404, allocations: 11.44 kB / 0.9565 GB, free: 2.113 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.2404, allocations: 0 / 0.9565 GB, free: 2.113 MB / 0.7325 GB Notification: Performance of Templates: time 0.002456/0.2429, allocations: 0.7121 MB / 0.9572 GB, free: 1.41 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 cvode -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