Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_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.001331/0.001331, allocations: 104.2 kB / 16.35 MB, free: 6.289 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.001182/0.001182, allocations: 192.7 kB / 17.29 MB, free: 5.863 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.203/1.203, 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 11.0.0-master/package.mo): time 2.214/2.214, allocations: 442.6 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 70.45 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2524, allocations: 153 MB / 1.027 GB, free: 2.055 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002383/0.2548, allocations: 1.529 MB / 1.028 GB, free: 0.5195 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0002969/0.2551, allocations: 124.5 kB / 1.028 GB, free: 404 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.766e-05/0.2551, allocations: 0 / 1.028 GB, free: 404 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.23e-05/0.2552, allocations: 7.938 kB / 1.028 GB, free: 396 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 3.552e-05/0.2552, allocations: 0 / 1.028 GB, free: 396 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001829/0.2554, allocations: 23.92 kB / 1.028 GB, free: 372 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 6.77e-05/0.2555, allocations: 35.91 kB / 1.028 GB, free: 336 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.452e-05/0.2556, allocations: 7.984 kB / 1.028 GB, free: 328 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 3.955e-05/0.2556, allocations: 11.94 kB / 1.028 GB, free: 316 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 4.638e-05/0.2557, allocations: 15.92 kB / 1.028 GB, free: 300 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.225e-05/0.2557, allocations: 4 kB / 1.028 GB, free: 296 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 5.689e-05/0.2558, allocations: 15.98 kB / 1.028 GB, free: 280 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.406e-05/0.2558, allocations: 8 kB / 1.028 GB, free: 272 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.873e-05/0.2558, allocations: 19.91 kB / 1.028 GB, free: 252 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 9.341e-05/0.2559, allocations: 27.91 kB / 1.028 GB, free: 224 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.2559, allocations: 0 / 1.028 GB, free: 224 kB / 0.795 GB Notification: Performance of FrontEnd: time 1.693e-06/0.2559, allocations: 0 / 1.028 GB, free: 224 kB / 0.795 GB Notification: Performance of Transformations before backend: time 4.258e-06/0.2559, allocations: 0 / 1.028 GB, free: 224 kB / 0.795 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.0004309/0.2564, allocations: 344.7 kB / 1.029 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.2564, allocations: 8.031 kB / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.947e-05/0.2564, allocations: 8.844 kB / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/0.2566, allocations: 168.4 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.943e-05/0.2566, allocations: 4.375 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.896e-06/0.2566, allocations: 384 / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001677/0.2568, allocations: 66.16 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.54e-06/0.2568, allocations: 192 / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.2568, allocations: 3.938 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.2568, allocations: 0 / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001637/0.257, allocations: 43.95 kB / 1.029 GB, free: 15.49 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000313/0.2573, allocations: 261 kB / 1.029 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002704/0.2576, allocations: 66.41 kB / 1.029 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.337e-05/0.2577, allocations: 24.91 kB / 1.029 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001163/0.2578, allocations: 81.09 kB / 1.03 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.952e-05/0.2578, allocations: 42.5 kB / 1.03 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.2578, allocations: 3.938 kB / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.000317/0.2581, allocations: 93.55 kB / 1.03 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.147e-05/0.2582, allocations: 55.39 kB / 1.03 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.164e-05/0.2583, allocations: 97.8 kB / 1.03 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.2583, allocations: 29.7 kB / 1.03 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.742e-05/0.2583, allocations: 88.14 kB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.429e-05/0.2583, allocations: 11.83 kB / 1.03 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.824e-05/0.2584, allocations: 17.72 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.794e-05/0.2585, allocations: 310.8 kB / 1.03 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.311e-05/0.2586, allocations: 23.97 kB / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.657e-05/0.2586, allocations: 15.98 kB / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001404/0.2588, allocations: 48.81 kB / 1.03 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2588, allocations: 3.938 kB / 1.03 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001878/0.259, allocations: 73.66 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.259, allocations: 4 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.307e-06/0.259, allocations: 3.938 kB / 1.03 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.726e-06/0.259, allocations: 0 / 1.03 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.366e-05/0.2591, allocations: 11.98 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.2591, allocations: 4 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.079e-05/0.2592, allocations: 8.5 kB / 1.03 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.079e-06/0.2592, allocations: 0 / 1.03 GB, free: 13.99 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 (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.488e-05/0.2592, allocations: 121.7 kB / 1.031 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.378e-05/0.2593, allocations: 3.906 kB / 1.031 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002315/0.2595, allocations: 89.12 kB / 1.031 GB, free: 13.76 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.2595, allocations: 4 kB / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.2595, allocations: 0 / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.2595, allocations: 0 / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001457/0.2597, allocations: 169.6 kB / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.2597, allocations: 0 / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.889e-05/0.2598, allocations: 15.92 kB / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.512e-06/0.2598, allocations: 0 / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.2598, allocations: 0 / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.2598, allocations: 0 / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2598, allocations: 3.938 kB / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002208/0.26, allocations: 175.4 kB / 1.031 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.088e-05/0.2601, allocations: 77.11 kB / 1.031 GB, free: 13.24 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.1e-05/0.2601, allocations: 0 / 1.031 GB, free: 13.24 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.142e-05/0.2602, allocations: 7.984 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.133e-05/0.2602, allocations: 11.98 kB / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-06/0.2602, allocations: 0 / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.206e-05/0.2603, allocations: 83.28 kB / 1.031 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2603, allocations: 0 / 1.031 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000209/0.2605, allocations: 15.94 kB / 1.031 GB, free: 13.12 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.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.0001233/0.2606, allocations: 103.2 kB / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001979/0.2608, allocations: 43.94 kB / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2608, allocations: 0 / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.63e-05/0.2609, allocations: 27.98 kB / 1.031 GB, free: 12.94 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002256/0.2611, allocations: 11.94 kB / 1.031 GB, free: 12.93 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002468/0.2614, allocations: 109.5 kB / 1.031 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000225/0.2616, allocations: 0.6767 MB / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.739e-05/0.2617, allocations: 7.984 kB / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.336e-05/0.2617, allocations: 11.44 kB / 1.032 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of SimCode: time 3.7e-07/0.2617, allocations: 4 kB / 1.032 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of Templates: time 0.002464/0.2642, allocations: 0.7143 MB / 1.033 GB, free: 11.36 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches