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.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.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.001596/0.001596, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001728/0.001728, allocations: 197.9 kB / 16.14 MB, free: 6.711 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.455/1.455, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.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.566/2.566, allocations: 390.2 MB / 0.6642 GB, free: 0.6367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 67.91 kB / 0.8119 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7599/0.7613, allocations: 140.4 MB / 0.9489 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001857/0.7632, allocations: 0.6552 MB / 0.9496 GB, free: 8.656 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002782/0.7635, allocations: 48.11 kB / 0.9496 GB, free: 8.621 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.032e-05/0.7635, allocations: 0 / 0.9496 GB, free: 8.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.791e-05/0.7635, allocations: 0 / 0.9496 GB, free: 8.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.768e-06/0.7635, allocations: 3.938 kB / 0.9496 GB, free: 8.617 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001921/0.7637, allocations: 8.609 kB / 0.9496 GB, free: 8.613 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.942e-05/0.7638, allocations: 1.281 kB / 0.9496 GB, free: 8.613 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.749e-05/0.7638, allocations: 1.125 kB / 0.9496 GB, free: 8.613 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.59e-05/0.7638, allocations: 5.391 kB / 0.9496 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.254e-05/0.7639, allocations: 9.562 kB / 0.9496 GB, free: 8.602 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.071e-05/0.7639, allocations: 4 kB / 0.9496 GB, free: 8.598 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.945e-05/0.764, allocations: 7.703 kB / 0.9496 GB, free: 8.594 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.09e-05/0.764, allocations: 0.9062 kB / 0.9497 GB, free: 8.594 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.098e-05/0.764, allocations: 4.688 kB / 0.9497 GB, free: 8.59 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.326e-05/0.7641, allocations: 15.95 kB / 0.9497 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.748e-06/0.7641, allocations: 0 / 0.9497 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.683e-06/0.7641, allocations: 0 / 0.9497 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.988e-06/0.7641, allocations: 5.312 kB / 0.9497 GB, free: 8.574 MB / 0.7169 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.000256/0.7644, allocations: 315.6 kB / 0.95 GB, free: 8.219 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.7644, allocations: 13.78 kB / 0.95 GB, free: 8.215 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.48e-05/0.7645, allocations: 0.9375 kB / 0.95 GB, free: 8.215 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.359e-05/0.7645, allocations: 164.4 kB / 0.9501 GB, free: 8.016 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.081e-05/0.7645, allocations: 1.75 kB / 0.9501 GB, free: 8.016 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.526e-06/0.7645, allocations: 1.812 kB / 0.9502 GB, free: 8.016 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001074/0.7647, allocations: 29.02 kB / 0.9502 GB, free: 7.984 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.7647, allocations: 192 / 0.9502 GB, free: 7.984 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.728e-06/0.7647, allocations: 3.938 kB / 0.9502 GB, free: 7.98 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.7647, allocations: 1.438 kB / 0.9502 GB, free: 7.98 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.691e-05/0.7647, allocations: 3 kB / 0.9502 GB, free: 7.98 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001345/0.7649, allocations: 155.1 kB / 0.9503 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.076e-05/0.7649, allocations: 23.7 kB / 0.9504 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.173e-05/0.765, allocations: 11.39 kB / 0.9504 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001643/0.7651, allocations: 84.59 kB / 0.9504 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.943e-05/0.7652, allocations: 30.56 kB / 0.9505 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.7652, allocations: 0 / 0.9505 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.000137/0.7653, allocations: 54.52 kB / 0.9505 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.496e-05/0.7653, allocations: 57.02 kB / 0.9506 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.91e-05/0.7654, allocations: 89.86 kB / 0.9507 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.375e-06/0.7654, allocations: 25.7 kB / 0.9507 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.196e-05/0.7654, allocations: 80.14 kB / 0.9508 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.335e-05/0.7654, allocations: 1.375 kB / 0.9508 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.961e-05/0.7655, allocations: 16.06 kB / 0.9508 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.455e-05/0.7655, allocations: 312 kB / 0.9511 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.673e-05/0.7656, allocations: 6.406 kB / 0.9511 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.708e-06/0.7656, allocations: 5.438 kB / 0.9511 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.709e-05/0.7656, allocations: 18.66 kB / 0.9511 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.7656, allocations: 0 / 0.9511 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.235e-05/0.7657, allocations: 36.86 kB / 0.9511 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.7657, allocations: 6.781 kB / 0.9512 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.7657, allocations: 0 / 0.9512 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.7657, allocations: 3.938 kB / 0.9512 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.441e-05/0.7658, allocations: 14.95 kB / 0.9512 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.7658, allocations: 0 / 0.9512 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.321e-05/0.7658, allocations: 1.062 kB / 0.9512 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.368e-06/0.7658, allocations: 1.625 kB / 0.9512 GB, free: 6.871 MB / 0.7169 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 4.438e-05/0.7659, allocations: 109.8 kB / 0.9513 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.292e-06/0.7659, allocations: 1.219 kB / 0.9513 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.465e-05/0.766, allocations: 53.86 kB / 0.9513 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.766, allocations: 1.438 kB / 0.9513 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.766, allocations: 8.031 kB / 0.9513 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.766, allocations: 0 / 0.9513 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.485e-05/0.7661, allocations: 148.8 kB / 0.9515 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.7661, allocations: 3.984 kB / 0.9515 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.064e-05/0.7661, allocations: 3.125 kB / 0.9515 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.7661, allocations: 0 / 0.9515 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.7661, allocations: 3.938 kB / 0.9515 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.7661, allocations: 1.156 kB / 0.9515 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.7661, allocations: 0 / 0.9515 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.758e-05/0.7662, allocations: 70.03 kB / 0.9516 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.007e-05/0.7662, allocations: 78.33 kB / 0.9516 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.051e-05/0.7662, allocations: 3.938 kB / 0.9516 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.378e-06/0.7663, allocations: 1.344 kB / 0.9516 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.819e-05/0.7663, allocations: 5.25 kB / 0.9516 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.816e-06/0.7663, allocations: 1.25 kB / 0.9516 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.626e-05/0.7663, allocations: 75.28 kB / 0.9517 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7663, allocations: 0 / 0.9517 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001763/0.7665, allocations: 4.469 kB / 0.9517 GB, free: 6.242 MB / 0.7169 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.0001659/0.7667, allocations: 116.5 kB / 0.9518 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 7.293e-05/0.7668, allocations: 6.906 kB / 0.9518 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.312e-06/0.7668, allocations: 0 / 0.9518 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.49e-05/0.7668, allocations: 8.062 kB / 0.9518 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001246/0.7669, allocations: 5.328 kB / 0.9519 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001815/0.7671, allocations: 79.14 kB / 0.9519 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001199/0.7672, allocations: 0.6706 MB / 0.9526 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.594e-05/0.7672, allocations: 5.359 kB / 0.9526 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.365e-05/0.7673, allocations: 8.812 kB / 0.9526 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of SimCode: time 3.11e-07/0.7673, allocations: 0 / 0.9526 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of Templates: time 0.002227/0.7695, allocations: 322.2 kB / 0.9529 GB, free: 5.16 MB / 0.7169 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 -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/jenkins/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