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 2.39/2.39, allocations: 393.5 MB / 408.4 MB, free: 11.04 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.001448/0.001447, allocations: 172 kB / 0.4901 GB, free: 2.266 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.554/1.554, allocations: 223.1 MB / 0.7992 GB, free: 14.68 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.001288/0.001288, allocations: 99.95 kB / 0.9396 GB, free: 1.852 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004445/0.0004448, allocations: 11.12 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3835/0.384, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2237/0.6077, allocations: 149.4 MB / 1.375 GB, free: 4.047 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002769/0.6081, allocations: 75.95 kB / 1.375 GB, free: 3.973 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.002106/0.6102, allocations: 0.8327 MB / 1.376 GB, free: 3.137 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.305e-06/0.6102, allocations: 0 / 1.376 GB, free: 3.137 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.929e-06/0.6102, allocations: 4 kB / 1.376 GB, free: 3.133 MB / 0.8698 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.000321/0.6106, allocations: 335.3 kB / 1.376 GB, free: 2.758 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.631e-05/0.6106, allocations: 12.56 kB / 1.376 GB, free: 2.746 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.703e-05/0.6107, allocations: 30.56 kB / 1.376 GB, free: 2.707 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.858e-05/0.6107, allocations: 7.906 kB / 1.376 GB, free: 2.699 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.6108, allocations: 163 kB / 1.377 GB, free: 2.5 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.6108, allocations: 4 kB / 1.377 GB, free: 2.496 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.378e-05/0.6109, allocations: 4 kB / 1.377 GB, free: 2.492 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001593/0.611, allocations: 73.47 kB / 1.377 GB, free: 2.414 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.611, allocations: 4 kB / 1.377 GB, free: 2.41 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.591e-05/0.6111, allocations: 4 kB / 1.377 GB, free: 2.406 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.6111, allocations: 0 / 1.377 GB, free: 2.406 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001555/0.6112, allocations: 107.9 kB / 1.377 GB, free: 2.301 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001959/0.6114, allocations: 169.6 kB / 1.377 GB, free: 2.086 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001181/0.6116, allocations: 70.59 kB / 1.377 GB, free: 2.008 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003886/0.612, allocations: 409.5 kB / 1.377 GB, free: 1.516 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.612, allocations: 42.5 kB / 1.377 GB, free: 1.465 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=11): time 1.253e-06/0.612, allocations: 0 / 1.377 GB, free: 1.465 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11): time 0.000274/0.6123, allocations: 109.7 kB / 1.378 GB, free: 1.352 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.299e-05/0.6124, allocations: 51.41 kB / 1.378 GB, free: 1.289 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.295e-05/0.6124, allocations: 92.89 kB / 1.378 GB, free: 1.191 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.61e-05/0.6124, allocations: 29.7 kB / 1.378 GB, free: 1.156 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 4.679e-05/0.6125, allocations: 80.33 kB / 1.378 GB, free: 1.07 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.501e-05/0.6125, allocations: 23.88 kB / 1.378 GB, free: 1.047 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.941e-06/0.6125, allocations: 4 kB / 1.378 GB, free: 1.043 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001412/0.6127, allocations: 314.8 kB / 1.378 GB, free: 0.7266 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.716e-05/0.6127, allocations: 19.98 kB / 1.378 GB, free: 0.707 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.116e-05/0.6128, allocations: 19.98 kB / 1.378 GB, free: 0.6875 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.917e-05/0.6128, allocations: 35.88 kB / 1.378 GB, free: 0.6523 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.6129, allocations: 0 / 1.378 GB, free: 0.6523 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001503/0.613, allocations: 89.59 kB / 1.378 GB, free: 0.5586 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.613, allocations: 8 kB / 1.378 GB, free: 0.5508 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.613, allocations: 0 / 1.378 GB, free: 0.5508 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.6131, allocations: 0 / 1.378 GB, free: 0.5508 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.6132, allocations: 27.98 kB / 1.378 GB, free: 0.5234 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.6132, allocations: 3.984 kB / 1.378 GB, free: 0.5195 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.143e-05/0.6132, allocations: 0 / 1.378 GB, free: 0.5195 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/0.6132, allocations: 7.938 kB / 1.378 GB, free: 0.5117 MB / 0.8698 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 () * Number of clocked 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 0.0001118/0.6133, allocations: 131.2 kB / 1.378 GB, free: 384 kB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.199e-05/0.6134, allocations: 7.891 kB / 1.378 GB, free: 376 kB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002258/0.6136, allocations: 134.7 kB / 1.379 GB, free: 236 kB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.6136, allocations: 0 / 1.379 GB, free: 236 kB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.6136, allocations: 0 / 1.379 GB, free: 236 kB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.6136, allocations: 0 / 1.379 GB, free: 236 kB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001544/0.6138, allocations: 173.6 kB / 1.379 GB, free: 12 kB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.6138, allocations: 7.953 kB / 1.379 GB, free: 4 kB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.059e-05/0.6139, allocations: 15.98 kB / 1.379 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.6139, allocations: 7.938 kB / 1.379 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.6139, allocations: 4 kB / 1.379 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.6139, allocations: 4 kB / 1.379 GB, free: 15.97 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.6139, allocations: 0 / 1.379 GB, free: 15.97 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001618/0.6141, allocations: 125.4 kB / 1.379 GB, free: 15.83 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.956e-05/0.6142, allocations: 92.94 kB / 1.379 GB, free: 15.72 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.395e-05/0.6142, allocations: 0 / 1.379 GB, free: 15.72 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.826e-05/0.6142, allocations: 4 kB / 1.379 GB, free: 15.72 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.263e-05/0.6142, allocations: 7.984 kB / 1.379 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.863e-06/0.6143, allocations: 4 kB / 1.379 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.18e-05/0.6143, allocations: 75.28 kB / 1.379 GB, free: 15.63 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6143, allocations: 4 kB / 1.379 GB, free: 15.63 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0001987/0.6145, allocations: 16 kB / 1.379 GB, free: 15.61 MB / 0.8855 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 () * Number of clocked 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.0006025/0.6151, allocations: 0.6771 MB / 1.38 GB, free: 14.91 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001395/0.6153, allocations: 59.91 kB / 1.38 GB, free: 14.85 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.6153, allocations: 4 kB / 1.38 GB, free: 14.84 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 5.58e-05/0.6154, allocations: 35.98 kB / 1.38 GB, free: 14.81 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001005/0.6155, allocations: 1.375 kB / 1.38 GB, free: 14.81 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004328/0.6159, allocations: 184.2 kB / 1.38 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003242/0.6162, allocations: 0.6887 MB / 1.381 GB, free: 13.87 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 9.546e-05/0.6163, allocations: 43.72 kB / 1.381 GB, free: 13.83 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.258e-05/0.6164, allocations: 15.44 kB / 1.381 GB, free: 13.82 MB / 0.8855 GB Notification: Performance of SimCode: time 2.41e-07/0.6164, allocations: 0 / 1.381 GB, free: 13.82 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01327/0.6297, allocations: 1.318 MB / 1.382 GB, free: 12.64 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002083/0.6299, allocations: 190.4 kB / 1.382 GB, free: 12.41 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.623/2.253, allocations: 0.875 kB / 1.382 GB, free: 12.41 MB / 0.8855 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