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.001469/0.001469, allocations: 108.9 kB / 16.41 MB, free: 6.441 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.001411/0.001411, allocations: 189.2 kB / 17.34 MB, free: 5.703 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.311/1.311, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.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.425/2.425, allocations: 437.1 MB / 0.7112 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001813/0.001813, allocations: 67.91 kB / 1.019 GB, free: 9.383 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7495/0.7513, allocations: 151.6 MB / 1.167 GB, free: 3.812 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002734/0.7541, allocations: 1.515 MB / 1.169 GB, free: 2.285 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0003601/0.7545, allocations: 128.5 kB / 1.169 GB, free: 2.156 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.824e-05/0.7545, allocations: 0 / 1.169 GB, free: 2.156 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.06e-05/0.7546, allocations: 3.938 kB / 1.169 GB, free: 2.152 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 3.279e-05/0.7546, allocations: 0 / 1.169 GB, free: 2.152 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002233/0.7548, allocations: 27.91 kB / 1.169 GB, free: 2.125 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 7.351e-05/0.7549, allocations: 27.92 kB / 1.169 GB, free: 2.098 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 9.61e-05/0.755, allocations: 7.984 kB / 1.169 GB, free: 2.09 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.027e-05/0.7551, allocations: 11.94 kB / 1.169 GB, free: 2.078 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 4.546e-05/0.7551, allocations: 19.97 kB / 1.169 GB, free: 2.059 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.356e-05/0.7551, allocations: 4 kB / 1.169 GB, free: 2.055 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 5.837e-05/0.7552, allocations: 15.98 kB / 1.169 GB, free: 2.039 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.385e-05/0.7552, allocations: 7.938 kB / 1.169 GB, free: 2.031 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.844e-05/0.7553, allocations: 15.92 kB / 1.169 GB, free: 2.016 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001154/0.7554, allocations: 31.89 kB / 1.169 GB, free: 1.984 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.7554, allocations: 0 / 1.169 GB, free: 1.984 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.353e-06/0.7554, allocations: 0 / 1.169 GB, free: 1.984 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.7554, allocations: 0 / 1.169 GB, free: 1.984 MB / 0.8887 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.0004803/0.7559, allocations: 351.9 kB / 1.169 GB, free: 1.594 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.7559, allocations: 12.62 kB / 1.169 GB, free: 1.582 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.588e-05/0.756, allocations: 4.891 kB / 1.169 GB, free: 1.578 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001316/0.7561, allocations: 160.4 kB / 1.17 GB, free: 1.383 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.7561, allocations: 4.375 kB / 1.17 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.203e-05/0.7562, allocations: 4.375 kB / 1.17 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001797/0.7563, allocations: 62.16 kB / 1.17 GB, free: 1.309 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.7564, allocations: 4.125 kB / 1.17 GB, free: 1.305 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.7564, allocations: 3.938 kB / 1.17 GB, free: 1.301 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.7564, allocations: 4 kB / 1.17 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001813/0.7566, allocations: 43.95 kB / 1.17 GB, free: 1.254 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003704/0.7569, allocations: 253 kB / 1.17 GB, free: 0.957 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003111/0.7573, allocations: 66.41 kB / 1.17 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.368e-05/0.7574, allocations: 32.89 kB / 1.17 GB, free: 0.8477 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001192/0.7575, allocations: 85.09 kB / 1.17 GB, free: 0.7461 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.94e-05/0.7575, allocations: 30.56 kB / 1.17 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.7575, allocations: 0 / 1.17 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of matching and sorting (n=3): time 0.0003728/0.7579, allocations: 97.58 kB / 1.17 GB, free: 0.6055 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.155e-05/0.758, allocations: 59.34 kB / 1.17 GB, free: 0.5352 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.282e-05/0.7581, allocations: 97.86 kB / 1.17 GB, free: 440 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.672e-05/0.7581, allocations: 25.7 kB / 1.17 GB, free: 408 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 5.214e-05/0.7581, allocations: 92.02 kB / 1.171 GB, free: 312 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.579e-05/0.7582, allocations: 7.938 kB / 1.171 GB, free: 304 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.613e-05/0.7582, allocations: 17.72 kB / 1.171 GB, free: 280 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001524/0.7584, allocations: 310.8 kB / 1.171 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.189e-05/0.7585, allocations: 27.97 kB / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.812e-05/0.7585, allocations: 19.98 kB / 1.171 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00016/0.7587, allocations: 40.81 kB / 1.171 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.189e-06/0.7587, allocations: 3.938 kB / 1.171 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002114/0.7589, allocations: 77.59 kB / 1.171 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.759, allocations: 4 kB / 1.171 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.759, allocations: 4 kB / 1.171 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.759, allocations: 0 / 1.171 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.666e-05/0.7591, allocations: 11.98 kB / 1.171 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.7591, allocations: 0 / 1.171 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.605e-05/0.7591, allocations: 11.94 kB / 1.171 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.651e-06/0.7592, allocations: 0 / 1.171 GB, free: 15.75 MB / 0.9044 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.422e-05/0.7593, allocations: 117.8 kB / 1.171 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.322e-05/0.7593, allocations: 0 / 1.171 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000265/0.7596, allocations: 85.14 kB / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.7596, allocations: 0 / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.7596, allocations: 4 kB / 1.171 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.7596, allocations: 3.938 kB / 1.171 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001798/0.7598, allocations: 169.6 kB / 1.171 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.7598, allocations: 0 / 1.171 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.656e-05/0.7599, allocations: 11.98 kB / 1.171 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.7599, allocations: 0.5625 kB / 1.171 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.213e-06/0.7599, allocations: 4 kB / 1.171 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.7599, allocations: 0 / 1.171 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.7599, allocations: 3.938 kB / 1.171 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002609/0.7602, allocations: 175.4 kB / 1.172 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.108e-05/0.7602, allocations: 81.06 kB / 1.172 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.453e-05/0.7603, allocations: 4 kB / 1.172 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.954e-05/0.7603, allocations: 11.98 kB / 1.172 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.353e-05/0.7604, allocations: 7.984 kB / 1.172 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.012e-06/0.7604, allocations: 0 / 1.172 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.156e-05/0.7605, allocations: 87.22 kB / 1.172 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of sort global known variables: time 5.01e-06/0.7605, allocations: 0 / 1.172 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002141/0.7607, allocations: 11.94 kB / 1.172 GB, free: 14.89 MB / 0.9044 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.0001625/0.7608, allocations: 99.25 kB / 1.172 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002293/0.7611, allocations: 51.94 kB / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.7611, allocations: 4 kB / 1.172 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 8.936e-05/0.7612, allocations: 15.98 kB / 1.172 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002369/0.7614, allocations: 15.88 kB / 1.172 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003115/0.7618, allocations: 117.4 kB / 1.172 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.7621, allocations: 0.6729 MB / 1.173 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.026e-05/0.7621, allocations: 11.98 kB / 1.173 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.914e-05/0.7622, allocations: 15.44 kB / 1.173 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of SimCode: time 2.11e-07/0.7622, allocations: 0 / 1.173 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of Templates: time 0.003121/0.7653, allocations: 0.7069 MB / 1.173 GB, free: 13.12 MB / 0.9044 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches