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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.175/2.175, allocations: 387.2 MB / 394.5 MB, free: 13.62 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 184.5 kB / 487 MB, free: 5.316 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.275/1.275, allocations: 221.3 MB / 0.7819 GB, free: 1.355 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009901/0.0009902, allocations: 101.6 kB / 0.9213 GB, free: 2.598 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.677e-06/8.947e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2726/0.2726, allocations: 142.3 MB / 1.205 GB, free: 26.17 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7188/0.9915, allocations: 148.7 MB / 1.35 GB, free: 16.11 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002528/0.9918, allocations: 71.42 kB / 1.351 GB, free: 16.11 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.002681/0.9945, allocations: 0.6431 MB / 1.351 GB, free: 16.06 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 9.358e-06/0.9945, allocations: 1.25 kB / 1.351 GB, free: 16.06 MB / 0.8073 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.0003411/0.9949, allocations: 347.8 kB / 1.351 GB, free: 15.71 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.9949, allocations: 10.06 kB / 1.351 GB, free: 15.71 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.175e-05/0.995, allocations: 10.61 kB / 1.351 GB, free: 15.7 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.718e-05/0.9951, allocations: 164.4 kB / 1.352 GB, free: 15.5 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.102e-05/0.9951, allocations: 1.312 kB / 1.352 GB, free: 15.5 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.523e-05/0.9951, allocations: 3.047 kB / 1.352 GB, free: 15.5 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.639e-05/0.9952, allocations: 12.75 kB / 1.352 GB, free: 15.5 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.315e-05/0.9953, allocations: 47.03 kB / 1.352 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.9953, allocations: 1.312 kB / 1.352 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.9953, allocations: 0 / 1.352 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.9953, allocations: 4 kB / 1.352 GB, free: 15.46 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004194/0.9958, allocations: 256.9 kB / 1.352 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002395/0.996, allocations: 51.75 kB / 1.352 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.897e-05/0.9961, allocations: 13.11 kB / 1.352 GB, free: 15.19 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001162/0.9962, allocations: 81.08 kB / 1.352 GB, free: 15.1 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.565e-05/0.9962, allocations: 31.94 kB / 1.352 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=3): time 2.314e-06/0.9962, allocations: 0 / 1.352 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3): time 0.0001936/0.9964, allocations: 53.31 kB / 1.352 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.078e-05/0.9964, allocations: 55.41 kB / 1.352 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.052e-05/0.9965, allocations: 98.42 kB / 1.352 GB, free: 14.86 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 9.658e-06/0.9965, allocations: 25.7 kB / 1.352 GB, free: 14.83 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.489e-05/0.9965, allocations: 85.08 kB / 1.352 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.888e-05/0.9966, allocations: 8.016 kB / 1.352 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.208e-06/0.9966, allocations: 0 / 1.352 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.777e-05/0.9966, allocations: 315.9 kB / 1.353 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.907e-05/0.9967, allocations: 5.328 kB / 1.353 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.662e-05/0.9967, allocations: 7.281 kB / 1.353 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.809e-05/0.9967, allocations: 13.8 kB / 1.353 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.9967, allocations: 1 kB / 1.353 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.099e-05/0.9968, allocations: 44.8 kB / 1.353 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.9969, allocations: 11.59 kB / 1.353 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.9969, allocations: 0 / 1.353 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.9969, allocations: 0 / 1.353 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.983e-05/0.997, allocations: 18.17 kB / 1.353 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.997, allocations: 3.984 kB / 1.353 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.577e-05/0.9971, allocations: 13.34 kB / 1.353 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.755e-06/0.9971, allocations: 2.25 kB / 1.353 GB, free: 14.38 MB / 0.8073 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 (fac.y,fac.u) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.156e-05/0.9971, allocations: 110.2 kB / 1.353 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.644e-05/0.9972, allocations: 4.906 kB / 1.353 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001369/0.9973, allocations: 59.06 kB / 1.353 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.9973, allocations: 4.75 kB / 1.353 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.9973, allocations: 1.969 kB / 1.353 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.9973, allocations: 0 / 1.353 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001074/0.9975, allocations: 146.3 kB / 1.353 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.9975, allocations: 3.938 kB / 1.353 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.636e-05/0.9976, allocations: 14.47 kB / 1.353 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.9976, allocations: 0 / 1.353 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.216e-06/0.9976, allocations: 2.75 kB / 1.353 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.9976, allocations: 4 kB / 1.353 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.9976, allocations: 1.031 kB / 1.353 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001126/0.9977, allocations: 152.5 kB / 1.353 GB, free: 13.92 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.911e-05/0.9977, allocations: 78.23 kB / 1.353 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/0.9978, allocations: 2.656 kB / 1.353 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.803e-05/0.9979, allocations: 12.12 kB / 1.353 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.295e-05/0.9979, allocations: 5.172 kB / 1.353 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.601e-06/0.9979, allocations: 3.047 kB / 1.353 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.193e-05/0.998, allocations: 80.84 kB / 1.354 GB, free: 13.75 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002203/0.9982, allocations: 17.09 kB / 1.354 GB, free: 13.74 MB / 0.8073 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,fac.u) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001661/0.9984, allocations: 111.7 kB / 1.354 GB, free: 13.65 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 8.605e-05/0.9985, allocations: 20.73 kB / 1.354 GB, free: 13.65 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.9985, allocations: 4 kB / 1.354 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.153e-05/0.9985, allocations: 16.38 kB / 1.354 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001688/0.9987, allocations: 3.812 kB / 1.354 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002282/0.9989, allocations: 58.84 kB / 1.354 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002287/0.9992, allocations: 0.6925 MB / 1.354 GB, free: 28.88 MB / 0.823 GB Notification: Performance of SimCode: time 2.41e-07/0.9992, allocations: 0 / 1.354 GB, free: 28.88 MB / 0.823 GB Notification: Performance of Templates: time 0.002731/1.002, allocations: 0.6602 MB / 1.355 GB, free: 28.82 MB / 0.823 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","../files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches