Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_latest_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_latest_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.0008393/0.0008394, allocations: 91.22 kB / 15.06 MB, free: 1.094 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.0008461/0.0008461, allocations: 172.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.964/2.964, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005565/0.0005568, allocations: 10.72 kB / 0.9021 GB, free: 36.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4368/0.4374, allocations: 159.6 MB / 1.058 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0008756/0.4383, allocations: 318.9 kB / 1.058 GB, free: 5 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002869/0.4386, allocations: 43.89 kB / 1.058 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.51e-05/0.4387, allocations: 0 / 1.058 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.619e-05/0.4387, allocations: 0 / 1.058 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.177e-06/0.4387, allocations: 0 / 1.058 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002312/0.4389, allocations: 15.94 kB / 1.058 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.635e-05/0.439, allocations: 0 / 1.058 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.55e-05/0.4391, allocations: 7.984 kB / 1.058 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.717e-05/0.4391, allocations: 4 kB / 1.058 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.243e-05/0.4391, allocations: 0 / 1.058 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.289e-05/0.4392, allocations: 3.984 kB / 1.058 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.81e-05/0.4392, allocations: 8 kB / 1.058 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.983e-06/0.4393, allocations: 0 / 1.058 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.239e-05/0.4393, allocations: 25.7 kB / 1.058 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.43e-05/0.4394, allocations: 7.984 kB / 1.058 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.4394, allocations: 3.938 kB / 1.058 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.044e-06/0.4394, allocations: 0 / 1.058 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.015e-06/0.4394, allocations: 0 / 1.058 GB, free: 4.875 MB / 0.8106 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.0003436/0.4398, allocations: 319.3 kB / 1.059 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.4398, allocations: 8.031 kB / 1.059 GB, free: 4.508 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.499e-05/0.4399, allocations: 0 / 1.059 GB, free: 4.508 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001331/0.44, allocations: 171 kB / 1.059 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.365e-05/0.44, allocations: 3.938 kB / 1.059 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.437e-05/0.44, allocations: 3.953 kB / 1.059 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001198/0.4402, allocations: 29.7 kB / 1.059 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.4402, allocations: 0 / 1.059 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.083e-05/0.4402, allocations: 0 / 1.059 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.4402, allocations: 4 kB / 1.059 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.295e-05/0.4403, allocations: 7.984 kB / 1.059 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001944/0.4405, allocations: 145.7 kB / 1.059 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.764e-05/0.4405, allocations: 26.61 kB / 1.059 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.344e-05/0.4406, allocations: 12.84 kB / 1.059 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002172/0.4408, allocations: 85.06 kB / 1.059 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/0.4408, allocations: 34.56 kB / 1.059 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.262e-06/0.4408, allocations: 0 / 1.059 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001732/0.441, allocations: 41.69 kB / 1.059 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.18e-05/0.4411, allocations: 51.41 kB / 1.059 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.016e-05/0.4411, allocations: 93.86 kB / 1.059 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.493e-05/0.4412, allocations: 25.7 kB / 1.059 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.134e-05/0.4412, allocations: 80.14 kB / 1.06 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.632e-05/0.4412, allocations: 3.938 kB / 1.06 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.615e-06/0.4412, allocations: 128 / 1.06 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.4414, allocations: 318.8 kB / 1.06 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.403e-05/0.4414, allocations: 4 kB / 1.06 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.09e-05/0.4414, allocations: 4 kB / 1.06 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.698e-05/0.4415, allocations: 7.984 kB / 1.06 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.4415, allocations: 0 / 1.06 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.108e-05/0.4415, allocations: 37.7 kB / 1.06 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.4416, allocations: 9.828 kB / 1.06 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.4416, allocations: 0 / 1.06 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.4416, allocations: 4.094 kB / 1.06 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.659e-05/0.4417, allocations: 4 kB / 1.06 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.4417, allocations: 3.984 kB / 1.06 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.782e-05/0.4417, allocations: 3.906 kB / 1.06 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.4417, allocations: 4 kB / 1.06 GB, free: 3.125 MB / 0.8106 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 (fac,n) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.797e-05/0.4418, allocations: 109.8 kB / 1.06 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.654e-06/0.4418, allocations: 0 / 1.06 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001191/0.442, allocations: 52.98 kB / 1.06 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.442, allocations: 7.969 kB / 1.06 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.442, allocations: 0 / 1.06 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.442, allocations: 0 / 1.06 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001114/0.4421, allocations: 149.6 kB / 1.06 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.4421, allocations: 0 / 1.06 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.735e-05/0.4421, allocations: 11.98 kB / 1.06 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.4422, allocations: 0 / 1.06 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.4422, allocations: 4 kB / 1.06 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.4422, allocations: 3.953 kB / 1.06 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.4422, allocations: 0 / 1.06 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.127e-05/0.4423, allocations: 73.05 kB / 1.06 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.487e-05/0.4423, allocations: 77.11 kB / 1.06 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.328e-05/0.4424, allocations: 4 kB / 1.06 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.132e-05/0.4424, allocations: 0 / 1.06 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.579e-05/0.4424, allocations: 3.953 kB / 1.06 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-06/0.4424, allocations: 0 / 1.06 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.039e-05/0.4425, allocations: 75.28 kB / 1.06 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4425, allocations: 4 kB / 1.06 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002164/0.4427, allocations: 8.031 kB / 1.06 GB, free: 2.453 MB / 0.8106 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001892/0.4429, allocations: 103.2 kB / 1.061 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 7.81e-05/0.443, allocations: 8 kB / 1.061 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.443, allocations: 3.938 kB / 1.061 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.582e-05/0.443, allocations: 4 kB / 1.061 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001387/0.4431, allocations: 4 kB / 1.061 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000239/0.4434, allocations: 91.06 kB / 1.061 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002822/0.4437, allocations: 0.6692 MB / 1.061 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.489e-05/0.4437, allocations: 0 / 1.061 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.731e-05/0.4437, allocations: 15.42 kB / 1.061 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of SimCode: time 2e-07/0.4437, allocations: 0 / 1.061 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of Templates: time 0.002512/0.4463, allocations: 296.1 kB / 1.062 GB, free: 1.203 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches