Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_10_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.001595/0.001595, 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.002009/0.002009, allocations: 191.8 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.391/1.391, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.591/2.591, allocations: 437 MB / 0.7103 GB, free: 5.176 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 67.89 kB / 0.8692 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6252/0.6265, allocations: 151.6 MB / 1.017 GB, free: 2.535 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002703/0.6293, allocations: 1.51 MB / 1.019 GB, free: 1.012 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0003858/0.6297, allocations: 128.5 kB / 1.019 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.616e-05/0.6297, allocations: 0 / 1.019 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.194e-05/0.6298, allocations: 3.938 kB / 1.019 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.694e-05/0.6299, allocations: 0 / 1.019 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002581/0.6301, allocations: 27.91 kB / 1.019 GB, free: 0.8516 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.013e-05/0.6302, allocations: 35.91 kB / 1.019 GB, free: 0.8164 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.821e-05/0.6303, allocations: 4 kB / 1.019 GB, free: 0.8125 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.425e-05/0.6304, allocations: 15.92 kB / 1.019 GB, free: 0.7969 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.813e-05/0.6304, allocations: 15.98 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.456e-05/0.6304, allocations: 4 kB / 1.019 GB, free: 0.7773 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 5.898e-05/0.6305, allocations: 12 kB / 1.019 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.458e-05/0.6305, allocations: 7.938 kB / 1.019 GB, free: 0.7578 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.27e-05/0.6306, allocations: 19.91 kB / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001193/0.6307, allocations: 31.91 kB / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.6307, allocations: 0 / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.463e-06/0.6307, allocations: 0 / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 8.956e-06/0.6307, allocations: 0 / 1.019 GB, free: 0.707 MB / 0.7637 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.0004311/0.6312, allocations: 349.4 kB / 1.019 GB, free: 324 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.6312, allocations: 8.031 kB / 1.019 GB, free: 316 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.544e-05/0.6312, allocations: 8.844 kB / 1.019 GB, free: 308 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001157/0.6314, allocations: 164.3 kB / 1.02 GB, free: 104 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.071e-05/0.6314, allocations: 384 / 1.02 GB, free: 104 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.221e-05/0.6314, allocations: 4.375 kB / 1.02 GB, free: 100 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001866/0.6316, allocations: 70.09 kB / 1.02 GB, free: 24 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.6316, allocations: 192 / 1.02 GB, free: 24 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.6316, allocations: 3.938 kB / 1.02 GB, free: 20 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.6316, allocations: 4 kB / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001987/0.6318, allocations: 43.95 kB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003697/0.6322, allocations: 257 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003226/0.6326, allocations: 70.41 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.6327, allocations: 24.91 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001189/0.6328, allocations: 81.09 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.098e-05/0.6328, allocations: 34.56 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.6328, allocations: 0 / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003968/0.6332, allocations: 93.62 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.592e-05/0.6333, allocations: 59.34 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.482e-05/0.6334, allocations: 101.9 kB / 1.02 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.272e-05/0.6334, allocations: 25.7 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.299e-05/0.6335, allocations: 92.12 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.563e-05/0.6335, allocations: 3.906 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.636e-05/0.6335, allocations: 17.72 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001052/0.6336, allocations: 314.8 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.478e-05/0.6337, allocations: 27.97 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.059e-05/0.6338, allocations: 11.98 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001754/0.634, allocations: 48.81 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.634, allocations: 3.938 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002155/0.6342, allocations: 73.66 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.6343, allocations: 11.94 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.6343, allocations: 0 / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.6343, allocations: 0 / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.113e-05/0.6344, allocations: 11.98 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.6344, allocations: 0 / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.731e-05/0.6344, allocations: 7.984 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.6345, allocations: 0 / 1.021 GB, free: 14.48 MB / 0.7794 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 8.103e-05/0.6345, allocations: 117.8 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.484e-05/0.6346, allocations: 4 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002717/0.6349, allocations: 81.14 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-06/0.6349, allocations: 0 / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.6349, allocations: 0 / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.6349, allocations: 3.984 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001654/0.6351, allocations: 169.5 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.6351, allocations: 7.938 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.404e-05/0.6351, allocations: 11.98 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.6352, allocations: 4 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.6352, allocations: 0 / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.6352, allocations: 7.922 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.6352, allocations: 0 / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002543/0.6354, allocations: 167.5 kB / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.182e-05/0.6355, allocations: 81.05 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.441e-05/0.6355, allocations: 0 / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.626e-05/0.6356, allocations: 11.98 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.234e-05/0.6357, allocations: 11.98 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.037e-06/0.6357, allocations: 0 / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.632e-05/0.6357, allocations: 79.7 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.5e-07/0.6357, allocations: 0 / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002272/0.6359, allocations: 8 kB / 1.022 GB, free: 13.62 MB / 0.7794 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.0001381/0.6361, allocations: 115.1 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002344/0.6363, allocations: 48.08 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.6363, allocations: 0 / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.948e-05/0.6364, allocations: 23.98 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003258/0.6368, allocations: 13.19 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000311/0.6371, allocations: 109.5 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002439/0.6374, allocations: 0.6807 MB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.271e-05/0.6374, allocations: 4 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.551e-05/0.6374, allocations: 11.44 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.6374, allocations: 0 / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of Templates: time 0.002936/0.6404, allocations: 0.7111 MB / 1.023 GB, free: 11.86 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches