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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001167/0.001167, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001116/0.001116, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.425/1.425, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.197/2.197, allocations: 390.3 MB / 0.6655 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001976/0.001976, allocations: 63.91 kB / 0.9515 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8496/0.8516, allocations: 140.4 MB / 1.089 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003177/0.8548, allocations: 1.508 MB / 1.09 GB, free: 4.469 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0004/0.8553, allocations: 127.7 kB / 1.09 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.713e-05/0.8553, allocations: 0.9375 kB / 1.09 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.916e-05/0.8554, allocations: 4.688 kB / 1.09 GB, free: 4.379 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.518e-05/0.8554, allocations: 1.125 kB / 1.09 GB, free: 4.379 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002689/0.8557, allocations: 23.33 kB / 1.09 GB, free: 4.367 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.429e-05/0.8558, allocations: 40.53 kB / 1.09 GB, free: 4.344 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.8559, allocations: 6.203 kB / 1.09 GB, free: 4.344 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.445e-05/0.856, allocations: 13.97 kB / 1.09 GB, free: 4.336 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.638e-05/0.856, allocations: 16.88 kB / 1.09 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.65e-05/0.856, allocations: 2.844 kB / 1.09 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.687e-05/0.8561, allocations: 12.34 kB / 1.09 GB, free: 4.324 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.721e-05/0.8561, allocations: 7 kB / 1.09 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.211e-05/0.8562, allocations: 12.59 kB / 1.09 GB, free: 4.312 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001345/0.8563, allocations: 34.72 kB / 1.09 GB, free: 4.297 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.8563, allocations: 4.516 kB / 1.09 GB, free: 4.293 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.272e-06/0.8563, allocations: 0 / 1.09 GB, free: 4.293 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.8564, allocations: 1.375 kB / 1.09 GB, free: 4.293 MB / 0.8575 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.0004365/0.8568, allocations: 339.8 kB / 1.091 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.8568, allocations: 9 kB / 1.091 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.392e-05/0.8569, allocations: 7.156 kB / 1.091 GB, free: 3.934 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.392e-05/0.857, allocations: 162.8 kB / 1.091 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.433e-05/0.857, allocations: 7.016 kB / 1.091 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.214e-05/0.857, allocations: 5.344 kB / 1.091 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001965/0.8572, allocations: 63.3 kB / 1.091 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.8572, allocations: 192 / 1.091 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.8573, allocations: 4.969 kB / 1.091 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.8573, allocations: 0 / 1.091 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001973/0.8575, allocations: 50.33 kB / 1.091 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003496/0.8578, allocations: 260.6 kB / 1.091 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003322/0.8582, allocations: 68.67 kB / 1.091 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.8583, allocations: 25.75 kB / 1.091 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001125/0.8584, allocations: 81.77 kB / 1.091 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.645e-05/0.8584, allocations: 32.25 kB / 1.091 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.8584, allocations: 4 kB / 1.091 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.000386/0.8588, allocations: 97.12 kB / 1.092 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.67e-05/0.8589, allocations: 56.05 kB / 1.092 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.01e-05/0.8589, allocations: 97.62 kB / 1.092 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.658e-06/0.859, allocations: 30.31 kB / 1.092 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.966e-05/0.859, allocations: 81.83 kB / 1.092 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.699e-05/0.859, allocations: 11.89 kB / 1.092 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.34e-05/0.859, allocations: 22.39 kB / 1.092 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.689e-05/0.8591, allocations: 313.4 kB / 1.092 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.276e-05/0.8592, allocations: 20.23 kB / 1.092 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.275e-05/0.8593, allocations: 20.64 kB / 1.092 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001673/0.8595, allocations: 41.36 kB / 1.092 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.8595, allocations: 7.938 kB / 1.092 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000228/0.8597, allocations: 77.73 kB / 1.092 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.8597, allocations: 5.219 kB / 1.092 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.8597, allocations: 1.438 kB / 1.092 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.8598, allocations: 0 / 1.092 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.136e-05/0.8598, allocations: 11.14 kB / 1.092 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.8599, allocations: 1.438 kB / 1.092 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.795e-05/0.8599, allocations: 5.75 kB / 1.092 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.442e-06/0.8599, allocations: 5.562 kB / 1.092 GB, free: 2.453 MB / 0.8575 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 6.096e-05/0.86, allocations: 118.3 kB / 1.092 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.632e-05/0.86, allocations: 10 kB / 1.092 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002498/0.8603, allocations: 78.56 kB / 1.093 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.8603, allocations: 1.375 kB / 1.093 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.8603, allocations: 0.5625 kB / 1.093 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.8603, allocations: 0.7031 kB / 1.093 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000128/0.8604, allocations: 176.2 kB / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.8605, allocations: 0 / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.615e-05/0.8605, allocations: 10.72 kB / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.8605, allocations: 0.75 kB / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.8606, allocations: 0.9688 kB / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.8606, allocations: 1.297 kB / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.8606, allocations: 0 / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002478/0.8608, allocations: 177.9 kB / 1.093 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.24e-05/0.8609, allocations: 82.78 kB / 1.093 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.8609, allocations: 4.781 kB / 1.093 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.58e-05/0.861, allocations: 6.031 kB / 1.093 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.209e-05/0.861, allocations: 12.98 kB / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.454e-06/0.861, allocations: 2.312 kB / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.644e-05/0.8611, allocations: 79.98 kB / 1.093 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.1e-07/0.8611, allocations: 0 / 1.093 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002288/0.8613, allocations: 19.03 kB / 1.093 GB, free: 1.73 MB / 0.8575 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.0001412/0.8615, allocations: 104.5 kB / 1.093 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002515/0.8617, allocations: 41.67 kB / 1.093 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.8617, allocations: 0 / 1.093 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.8618, allocations: 24.81 kB / 1.093 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002893/0.8621, allocations: 14.77 kB / 1.093 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002949/0.8624, allocations: 140.2 kB / 1.093 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000104/0.8625, allocations: 0.6771 MB / 1.094 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.045e-05/0.8626, allocations: 10.94 kB / 1.094 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of SimCode: time 3.2e-07/0.8626, allocations: 0 / 1.094 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of Templates: time 0.002717/0.8653, allocations: 0.7379 MB / 1.095 GB, free: 0.7188 MB / 0.8575 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 -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