Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.992/1.992, allocations: 390.5 MB / 398 MB, free: 10.99 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.0008902/0.0008902, allocations: 187.5 kB / 491.2 MB, free: 1.617 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.285/1.285, allocations: 221.5 MB / 0.7868 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007971/0.0007971, allocations: 101.4 kB / 0.9269 GB, free: 13.86 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.867e-05/1.867e-05, allocations: 8 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2154/0.2154, allocations: 143 MB / 1.212 GB, free: 39.47 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.701/0.9164, allocations: 148.6 MB / 1.358 GB, free: 17.18 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001795/0.9166, allocations: 77.72 kB / 1.358 GB, free: 17.18 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.001936/0.9186, allocations: 0.8278 MB / 1.358 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.233e-06/0.9186, allocations: 0 / 1.358 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.917e-06/0.9186, allocations: 0 / 1.358 GB, free: 32.86 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0001836/0.9188, allocations: 326.6 kB / 1.359 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.9189, allocations: 8.688 kB / 1.359 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.654e-05/0.9189, allocations: 12.5 kB / 1.359 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.604e-05/0.9189, allocations: 168.3 kB / 1.359 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.919, allocations: 4.375 kB / 1.359 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.026e-05/0.919, allocations: 0 / 1.359 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001304/0.9191, allocations: 100.9 kB / 1.359 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.207e-05/0.9192, allocations: 60.5 kB / 1.359 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.9192, allocations: 0.6875 kB / 1.359 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.396e-06/0.9192, allocations: 0.6094 kB / 1.359 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.9192, allocations: 0 / 1.359 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001049/0.9193, allocations: 149.8 kB / 1.359 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.827e-05/0.9194, allocations: 65.5 kB / 1.359 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.042e-05/0.9194, allocations: 30.41 kB / 1.359 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001832/0.9196, allocations: 406.9 kB / 1.36 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.478e-05/0.9197, allocations: 34.94 kB / 1.36 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.052e-06/0.9197, allocations: 0 / 1.36 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0002896/0.92, allocations: 85.56 kB / 1.36 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.406e-05/0.92, allocations: 59.19 kB / 1.36 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.763e-05/0.92, allocations: 89.69 kB / 1.36 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.075e-06/0.92, allocations: 25.7 kB / 1.36 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 1.932e-05/0.9201, allocations: 84.33 kB / 1.36 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.363e-05/0.9201, allocations: 20.62 kB / 1.36 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.827e-06/0.9201, allocations: 0.75 kB / 1.36 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 6.965e-05/0.9202, allocations: 319.4 kB / 1.36 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.448e-05/0.9202, allocations: 17.55 kB / 1.36 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.126e-05/0.9202, allocations: 17.61 kB / 1.36 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001401/0.9204, allocations: 33.52 kB / 1.36 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.9204, allocations: 0 / 1.36 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001861/0.9206, allocations: 89.41 kB / 1.361 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.728e-06/0.9206, allocations: 3.875 kB / 1.361 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.9206, allocations: 18.14 kB / 1.361 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.508e-06/0.9206, allocations: 0.9844 kB / 1.361 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.509e-05/0.9207, allocations: 18.17 kB / 1.361 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.096e-06/0.9207, allocations: 0 / 1.361 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.686e-05/0.9207, allocations: 3.938 kB / 1.361 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.9207, allocations: 4.922 kB / 1.361 GB, free: 30.86 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.367e-05/0.9208, allocations: 110.7 kB / 1.361 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001838/0.921, allocations: 94.52 kB / 1.361 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.374e-06/0.921, allocations: 7.969 kB / 1.361 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002469/0.9213, allocations: 120.1 kB / 1.361 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.9213, allocations: 1.359 kB / 1.361 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.9213, allocations: 0 / 1.361 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.9213, allocations: 3.938 kB / 1.361 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.874e-05/0.9213, allocations: 146.8 kB / 1.361 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.9213, allocations: 3.953 kB / 1.361 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.053e-05/0.9214, allocations: 22.22 kB / 1.361 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.9214, allocations: 4 kB / 1.361 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.9214, allocations: 5.297 kB / 1.361 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.9214, allocations: 3.438 kB / 1.361 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.9214, allocations: 0 / 1.361 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001919/0.9216, allocations: 114.5 kB / 1.361 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.303e-05/0.9217, allocations: 81.06 kB / 1.361 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.117e-05/0.9217, allocations: 1.547 kB / 1.361 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.337e-05/0.9217, allocations: 3.844 kB / 1.361 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.237e-05/0.9217, allocations: 18.17 kB / 1.361 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.48e-06/0.9217, allocations: 1.641 kB / 1.361 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 1.971e-05/0.9218, allocations: 83.03 kB / 1.361 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9218, allocations: 0 / 1.361 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001708/0.9219, allocations: 19.56 kB / 1.361 GB, free: 30.23 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0004139/0.9224, allocations: 0.6719 MB / 1.362 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.621e-05/0.9225, allocations: 66.66 kB / 1.362 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.233e-06/0.9225, allocations: 0 / 1.362 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.174e-05/0.9225, allocations: 30.16 kB / 1.362 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.76e-05/0.9226, allocations: 3.844 kB / 1.362 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002378/0.9228, allocations: 123 kB / 1.362 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002033/0.923, allocations: 0.6904 MB / 1.363 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.229e-05/0.9231, allocations: 41.41 kB / 1.363 GB, free: 28.79 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.44e-05/0.9231, allocations: 20.22 kB / 1.363 GB, free: 28.79 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/0.9231, allocations: 0 / 1.363 GB, free: 28.79 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01671/0.9399, allocations: 1.035 MB / 1.364 GB, free: 28.7 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001443/0.94, allocations: 155.9 kB / 1.364 GB, free: 28.51 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.244/2.184, allocations: 0 / 1.364 GB, free: 28.51 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat does not exist to compare? outputFormat=mat