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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001443/0.001443, allocations: 117.2 kB / 16.37 MB, free: 6.004 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.001625/0.001625, allocations: 193.2 kB / 17.31 MB, free: 5.613 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 / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.271/2.271, allocations: 390.3 MB / 0.6655 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 66.52 kB / 0.814 GB, free: 32.71 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.256, allocations: 140.4 MB / 0.9511 GB, free: 8.043 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001685/0.2577, allocations: 0.5886 MB / 0.9517 GB, free: 7.457 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0002318/0.258, allocations: 59.78 kB / 0.9518 GB, free: 7.398 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.474e-05/0.258, allocations: 7.938 kB / 0.9518 GB, free: 7.391 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.437e-05/0.258, allocations: 0 / 0.9518 GB, free: 7.391 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.499e-06/0.258, allocations: 0 / 0.9518 GB, free: 7.391 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000205/0.2582, allocations: 11.98 kB / 0.9518 GB, free: 7.379 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 3.726e-05/0.2583, allocations: 4 kB / 0.9518 GB, free: 7.375 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 5.017e-05/0.2584, allocations: 3.984 kB / 0.9518 GB, free: 7.371 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 1.395e-05/0.2584, allocations: 4 kB / 0.9518 GB, free: 7.367 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 1.993e-05/0.2584, allocations: 0 / 0.9518 GB, free: 7.367 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 9.157e-06/0.2584, allocations: 0 / 0.9518 GB, free: 7.367 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.812e-05/0.2585, allocations: 8 kB / 0.9518 GB, free: 7.359 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.007e-06/0.2585, allocations: 0 / 0.9518 GB, free: 7.359 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.108e-05/0.2585, allocations: 11.98 kB / 0.9518 GB, free: 7.348 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 8.773e-05/0.2586, allocations: 15.92 kB / 0.9518 GB, free: 7.332 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.2586, allocations: 3.938 kB / 0.9518 GB, free: 7.328 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.784e-06/0.2586, allocations: 0 / 0.9518 GB, free: 7.328 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.12e-06/0.2586, allocations: 0 / 0.9518 GB, free: 7.328 MB / 0.7325 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.0003166/0.259, allocations: 315.6 kB / 0.9521 GB, free: 6.969 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.259, allocations: 8.031 kB / 0.9521 GB, free: 6.961 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.469e-05/0.259, allocations: 8.844 kB / 0.9521 GB, free: 6.953 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.304e-05/0.2591, allocations: 164.4 kB / 0.9523 GB, free: 6.754 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.2591, allocations: 384 / 0.9523 GB, free: 6.754 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.755e-06/0.2592, allocations: 4.375 kB / 0.9523 GB, free: 6.75 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.915e-05/0.2593, allocations: 34.25 kB / 0.9523 GB, free: 6.711 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.192e-06/0.2593, allocations: 192 / 0.9523 GB, free: 6.711 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.2593, allocations: 3.938 kB / 0.9523 GB, free: 6.707 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.2593, allocations: 0 / 0.9523 GB, free: 6.707 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.244e-05/0.2593, allocations: 4 kB / 0.9523 GB, free: 6.703 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001288/0.2595, allocations: 149.6 kB / 0.9525 GB, free: 6.508 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 6.012e-05/0.2595, allocations: 30.59 kB / 0.9525 GB, free: 6.469 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.79e-05/0.2596, allocations: 8.859 kB / 0.9525 GB, free: 6.457 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001531/0.2597, allocations: 85.16 kB / 0.9526 GB, free: 6.355 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.298e-05/0.2597, allocations: 30.56 kB / 0.9526 GB, free: 6.316 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 9.71e-07/0.2598, allocations: 0 / 0.9526 GB, free: 6.316 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0001388/0.2599, allocations: 49.56 kB / 0.9527 GB, free: 6.262 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.361e-05/0.2599, allocations: 55.41 kB / 0.9527 GB, free: 6.195 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.591e-05/0.26, allocations: 93.98 kB / 0.9528 GB, free: 6.094 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.313e-05/0.26, allocations: 25.7 kB / 0.9529 GB, free: 6.062 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.16e-05/0.2601, allocations: 84.08 kB / 0.9529 GB, free: 5.977 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.695e-05/0.2601, allocations: 0 / 0.9529 GB, free: 5.977 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.251e-05/0.2601, allocations: 21.7 kB / 0.953 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001065/0.2602, allocations: 314.8 kB / 0.9533 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.035e-05/0.2602, allocations: 0 / 0.9533 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.245e-06/0.2603, allocations: 4 kB / 0.9533 GB, free: 5.629 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.489e-05/0.2603, allocations: 16.92 kB / 0.9533 GB, free: 5.609 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.2603, allocations: 0 / 0.9533 GB, free: 5.609 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.717e-05/0.2604, allocations: 41.62 kB / 0.9533 GB, free: 5.562 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.2604, allocations: 8 kB / 0.9533 GB, free: 5.555 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.2604, allocations: 0 / 0.9533 GB, free: 5.555 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.2604, allocations: 3.938 kB / 0.9533 GB, free: 5.551 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.072e-05/0.2605, allocations: 4 kB / 0.9533 GB, free: 5.547 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.2605, allocations: 0 / 0.9533 GB, free: 5.547 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.293e-05/0.2605, allocations: 0 / 0.9533 GB, free: 5.547 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.727e-06/0.2605, allocations: 0 / 0.9533 GB, free: 5.547 MB / 0.7325 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 7.076e-05/0.2606, allocations: 115.8 kB / 0.9534 GB, free: 5.426 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.002e-05/0.2606, allocations: 7.984 kB / 0.9534 GB, free: 5.418 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.111e-05/0.2607, allocations: 44.67 kB / 0.9535 GB, free: 5.367 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.2607, allocations: 8 kB / 0.9535 GB, free: 5.359 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-06/0.2607, allocations: 3.938 kB / 0.9535 GB, free: 5.355 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.2607, allocations: 3.984 kB / 0.9535 GB, free: 5.352 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.851e-05/0.2608, allocations: 145.6 kB / 0.9536 GB, free: 5.16 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2608, allocations: 0 / 0.9536 GB, free: 5.16 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.277e-05/0.2608, allocations: 8.031 kB / 0.9537 GB, free: 5.152 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.2609, allocations: 0 / 0.9537 GB, free: 5.152 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.2609, allocations: 3.938 kB / 0.9537 GB, free: 5.148 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.2609, allocations: 4 kB / 0.9537 GB, free: 5.145 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.2609, allocations: 3.984 kB / 0.9537 GB, free: 5.141 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.499e-05/0.261, allocations: 57.14 kB / 0.9537 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 2.789e-05/0.261, allocations: 77.11 kB / 0.9538 GB, free: 4.973 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.164e-05/0.261, allocations: 7.922 kB / 0.9538 GB, free: 4.965 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.031e-05/0.261, allocations: 4.031 kB / 0.9538 GB, free: 4.961 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.389e-05/0.2611, allocations: 8 kB / 0.9538 GB, free: 4.953 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.2611, allocations: 0 / 0.9538 GB, free: 4.953 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 2.337e-05/0.2611, allocations: 77.39 kB / 0.9539 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.403e-06/0.2611, allocations: 0 / 0.9539 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0001799/0.2613, allocations: 7.938 kB / 0.9539 GB, free: 4.871 MB / 0.7325 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.0001382/0.2614, allocations: 103.2 kB / 0.954 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 7.393e-05/0.2615, allocations: 15.98 kB / 0.954 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2615, allocations: 0 / 0.954 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.574e-05/0.2615, allocations: 8 kB / 0.954 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001244/0.2617, allocations: 8.969 kB / 0.954 GB, free: 4.73 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001615/0.2618, allocations: 73.06 kB / 0.9541 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002277/0.2621, allocations: 0.6766 MB / 0.9548 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 1.219e-05/0.2621, allocations: 0 / 0.9548 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.612e-05/0.2621, allocations: 19.38 kB / 0.9548 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of SimCode: time 2.5e-07/0.2621, allocations: 128 / 0.9548 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of Templates: time 0.002137/0.2642, allocations: 324.7 kB / 0.9551 GB, free: 3.594 MB / 0.7325 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 -s gbode -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/jenkins1/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