Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.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.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001009/0.001009, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 223.2 MB / 239.9 MB, free: 5.422 MB / 190.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.525/2.525, allocations: 390.3 MB / 0.6653 GB, free: 2.992 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004096/0.0004098, allocations: 15.98 kB / 0.8145 GB, free: 14.3 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8352/0.8357, allocations: 142.3 MB / 0.9535 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.001962/0.8377, allocations: 1.233 MB / 0.9547 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004143/0.8381, allocations: 130.1 kB / 0.9548 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.043e-05/0.8382, allocations: 1.156 kB / 0.9548 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.336e-05/0.8382, allocations: 0 / 0.9548 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.604e-05/0.8383, allocations: 5.406 kB / 0.9548 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003021/0.8386, allocations: 26.14 kB / 0.9549 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.814e-05/0.8387, allocations: 23.48 kB / 0.9549 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001304/0.8388, allocations: 8.891 kB / 0.9549 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.595e-05/0.8389, allocations: 12.39 kB / 0.9549 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.951e-05/0.8389, allocations: 8.312 kB / 0.9549 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.393e-05/0.839, allocations: 1.5 kB / 0.9549 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.856e-05/0.839, allocations: 15.55 kB / 0.9549 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.549e-05/0.8391, allocations: 13.06 kB / 0.9549 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.175e-05/0.8391, allocations: 36.36 kB / 0.955 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001105/0.8392, allocations: 32.36 kB / 0.955 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.8392, allocations: 0 / 0.955 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.364e-06/0.8392, allocations: 0 / 0.955 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.54e-06/0.8392, allocations: 3.938 kB / 0.955 GB, free: 6.871 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005265/0.8398, allocations: 340.6 kB / 0.9553 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.661e-05/0.8398, allocations: 9.938 kB / 0.9554 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.66e-05/0.8399, allocations: 13.95 kB / 0.9554 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001201/0.84, allocations: 172 kB / 0.9555 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.61e-05/0.8401, allocations: 2.469 kB / 0.9555 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.758e-05/0.8401, allocations: 9.875 kB / 0.9555 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002368/0.8403, allocations: 63.36 kB / 0.9556 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.8403, allocations: 0 / 0.9556 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.802e-05/0.8404, allocations: 5.391 kB / 0.9556 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.8404, allocations: 4 kB / 0.9556 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002262/0.8406, allocations: 62.45 kB / 0.9557 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004296/0.8411, allocations: 266.9 kB / 0.9559 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003386/0.8414, allocations: 71.09 kB / 0.956 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002582/0.8417, allocations: 396.6 kB / 0.9564 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.8417, allocations: 35.62 kB / 0.9564 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.8417, allocations: 0 / 0.9564 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004487/0.8422, allocations: 121.6 kB / 0.9565 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.121e-05/0.8422, allocations: 51.41 kB / 0.9566 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.059e-05/0.8423, allocations: 111.6 kB / 0.9567 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.027e-06/0.8423, allocations: 29.7 kB / 0.9567 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.748e-05/0.8424, allocations: 81.86 kB / 0.9568 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.538e-05/0.8424, allocations: 9.25 kB / 0.9568 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.077e-06/0.8424, allocations: 0 / 0.9568 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.031e-05/0.8424, allocations: 320.2 kB / 0.9571 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.556e-05/0.8426, allocations: 27.55 kB / 0.9571 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.725e-05/0.8426, allocations: 27.95 kB / 0.9571 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.719e-05/0.8427, allocations: 23.16 kB / 0.9572 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.8428, allocations: 0 / 0.9572 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002206/0.843, allocations: 91.38 kB / 0.9573 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.843, allocations: 8.719 kB / 0.9573 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.843, allocations: 336 / 0.9573 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.843, allocations: 5.203 kB / 0.9573 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.641e-05/0.8431, allocations: 13.73 kB / 0.9573 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.8432, allocations: 0 / 0.9573 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.549e-05/0.8432, allocations: 22.83 kB / 0.9573 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.682e-06/0.8432, allocations: 1.062 kB / 0.9573 GB, free: 4.535 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 (rea2Int.y,falFac.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.889e-05/0.8433, allocations: 112.6 kB / 0.9574 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.531e-05/0.8433, allocations: 1.438 kB / 0.9574 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002708/0.8436, allocations: 97.02 kB / 0.9575 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.8436, allocations: 5.078 kB / 0.9575 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.8436, allocations: 0 / 0.9575 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.8436, allocations: 5 kB / 0.9575 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001304/0.8438, allocations: 165 kB / 0.9577 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.8438, allocations: 3.938 kB / 0.9577 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.505e-05/0.8439, allocations: 13.92 kB / 0.9577 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.8439, allocations: 1.031 kB / 0.9577 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.8439, allocations: 9.062 kB / 0.9577 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.8439, allocations: 0 / 0.9577 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.8439, allocations: 3.953 kB / 0.9577 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002358/0.8441, allocations: 178.1 kB / 0.9579 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.087e-05/0.8442, allocations: 86.34 kB / 0.958 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.418e-05/0.8442, allocations: 0 / 0.958 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.731e-05/0.8443, allocations: 6.375 kB / 0.958 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.887e-05/0.8444, allocations: 11.45 kB / 0.958 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.28e-06/0.8444, allocations: 5.172 kB / 0.958 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.617e-05/0.8444, allocations: 85.2 kB / 0.9581 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8444, allocations: 0 / 0.9581 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002362/0.8447, allocations: 15.88 kB / 0.9581 GB, free: 3.766 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 (rea2Int.y,falFac.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 (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.0001325/0.8448, allocations: 111.8 kB / 0.9582 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002339/0.845, allocations: 59.55 kB / 0.9582 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.845, allocations: 0 / 0.9582 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.97e-05/0.8451, allocations: 31.03 kB / 0.9583 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001908/0.8453, allocations: 6 kB / 0.9583 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002651/0.8456, allocations: 118.8 kB / 0.9584 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001382/0.8458, allocations: 0.6885 MB / 0.9591 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.25e-05/0.8458, allocations: 7.359 kB / 0.9591 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.377e-05/0.8458, allocations: 10.12 kB / 0.9591 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.8458, allocations: 0 / 0.9591 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of Templates: time 0.002977/0.8488, allocations: 0.6375 MB / 0.9597 GB, free: 2.461 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","../files/Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches