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.983/1.983, allocations: 390.3 MB / 402.8 MB, free: 6.664 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.001103/0.001103, allocations: 184.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 221.3 MB / 0.7915 GB, free: 5.453 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.0009038/0.0009039, allocations: 99.88 kB / 0.9317 GB, free: 5.762 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.863e-05/2.865e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2117/0.2118, allocations: 143 MB / 1.219 GB, free: 13.42 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6883/0.9001, allocations: 149.3 MB / 1.365 GB, free: 4.73 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002046/0.9004, allocations: 74.95 kB / 1.365 GB, free: 4.688 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.001723/0.9021, allocations: 0.8215 MB / 1.366 GB, free: 3.93 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.142e-06/0.9021, allocations: 4.5 kB / 1.366 GB, free: 3.926 MB / 0.823 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.9021, allocations: 4 kB / 1.366 GB, free: 3.922 MB / 0.823 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.000231/0.9024, allocations: 329.2 kB / 1.366 GB, free: 3.559 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.9024, allocations: 15.97 kB / 1.366 GB, free: 3.543 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.586e-05/0.9024, allocations: 33.88 kB / 1.366 GB, free: 3.504 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.14e-05/0.9025, allocations: 8.688 kB / 1.366 GB, free: 3.496 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.866e-05/0.9025, allocations: 163 kB / 1.366 GB, free: 3.297 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.989e-06/0.9026, allocations: 6.5 kB / 1.366 GB, free: 3.297 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.215e-05/0.9026, allocations: 4 kB / 1.366 GB, free: 3.293 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000125/0.9027, allocations: 63.11 kB / 1.366 GB, free: 3.234 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.9027, allocations: 7.922 kB / 1.366 GB, free: 3.227 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.654e-06/0.9027, allocations: 4 kB / 1.366 GB, free: 3.223 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.9027, allocations: 0 / 1.366 GB, free: 3.223 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001207/0.9029, allocations: 100.4 kB / 1.366 GB, free: 3.137 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001458/0.903, allocations: 176 kB / 1.366 GB, free: 2.922 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 9.483e-05/0.9031, allocations: 73.47 kB / 1.366 GB, free: 2.855 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.859e-05/0.9032, allocations: 31.53 kB / 1.367 GB, free: 2.828 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002635/0.9034, allocations: 401.5 kB / 1.367 GB, free: 2.344 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/0.9035, allocations: 42.06 kB / 1.367 GB, free: 2.297 MB / 0.823 GB Notification: Performance of pre-optimization done (n=11): time 1.123e-06/0.9035, allocations: 0 / 1.367 GB, free: 2.297 MB / 0.823 GB Notification: Performance of matching and sorting (n=11): time 0.0001681/0.9037, allocations: 93.17 kB / 1.367 GB, free: 2.211 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.575e-05/0.9037, allocations: 51.41 kB / 1.367 GB, free: 2.148 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.077e-05/0.9037, allocations: 88.91 kB / 1.367 GB, free: 2.055 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.904e-05/0.9037, allocations: 33.08 kB / 1.367 GB, free: 2.02 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 2.357e-05/0.9038, allocations: 80.33 kB / 1.367 GB, free: 1.934 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 2.436e-05/0.9038, allocations: 19.22 kB / 1.367 GB, free: 1.918 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.717e-06/0.9038, allocations: 3.938 kB / 1.367 GB, free: 1.914 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 8.962e-05/0.9039, allocations: 326.7 kB / 1.368 GB, free: 1.59 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.015e-05/0.9039, allocations: 19 kB / 1.368 GB, free: 1.574 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.484e-05/0.904, allocations: 23.8 kB / 1.368 GB, free: 1.555 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.408e-05/0.904, allocations: 24.05 kB / 1.368 GB, free: 1.535 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.904, allocations: 0 / 1.368 GB, free: 1.535 MB / 0.823 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001196/0.9042, allocations: 94.52 kB / 1.368 GB, free: 1.449 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.9042, allocations: 7.938 kB / 1.368 GB, free: 1.441 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.9042, allocations: 0 / 1.368 GB, free: 1.441 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.227e-06/0.9042, allocations: 0 / 1.368 GB, free: 1.441 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.55e-05/0.9043, allocations: 20 kB / 1.368 GB, free: 1.422 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.9043, allocations: 0 / 1.368 GB, free: 1.422 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.944e-05/0.9043, allocations: 7.984 kB / 1.368 GB, free: 1.414 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.084e-06/0.9043, allocations: 3.625 kB / 1.368 GB, free: 1.414 MB / 0.823 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 6.945e-05/0.9044, allocations: 117.2 kB / 1.368 GB, free: 1.297 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.287e-06/0.9044, allocations: 7.906 kB / 1.368 GB, free: 1.289 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001893/0.9046, allocations: 123.4 kB / 1.368 GB, free: 1.176 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.644e-06/0.9046, allocations: 4 kB / 1.368 GB, free: 1.172 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.9046, allocations: 0 / 1.368 GB, free: 1.172 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.9047, allocations: 3.984 kB / 1.368 GB, free: 1.168 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001086/0.9048, allocations: 172.9 kB / 1.368 GB, free: 0.957 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-06/0.9048, allocations: 0 / 1.368 GB, free: 0.957 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.622e-05/0.9049, allocations: 19.98 kB / 1.368 GB, free: 0.9375 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.9049, allocations: 3.938 kB / 1.368 GB, free: 0.9336 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.9049, allocations: 6.812 kB / 1.368 GB, free: 0.9297 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.9049, allocations: 0 / 1.368 GB, free: 0.9297 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.9049, allocations: 0 / 1.368 GB, free: 0.9297 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001378/0.905, allocations: 132.2 kB / 1.368 GB, free: 0.7969 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 2.964e-05/0.9051, allocations: 81.06 kB / 1.368 GB, free: 0.6992 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.181e-05/0.9051, allocations: 3.25 kB / 1.368 GB, free: 0.6992 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.619e-05/0.9051, allocations: 6.938 kB / 1.368 GB, free: 0.6953 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.661e-05/0.9051, allocations: 7.984 kB / 1.368 GB, free: 0.6875 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.9051, allocations: 0 / 1.368 GB, free: 0.6875 MB / 0.823 GB Notification: Performance of sorting global known variables: time 2.931e-05/0.9052, allocations: 75.28 kB / 1.369 GB, free: 0.6133 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9052, allocations: 4 kB / 1.369 GB, free: 0.6094 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0001671/0.9054, allocations: 27.25 kB / 1.369 GB, free: 0.5859 MB / 0.823 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.0004266/0.9058, allocations: 0.6744 MB / 1.369 GB, free: 15.9 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001153/0.9059, allocations: 58.92 kB / 1.369 GB, free: 15.85 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.9059, allocations: 4 kB / 1.369 GB, free: 15.85 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.5e-05/0.906, allocations: 34.17 kB / 1.369 GB, free: 15.82 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.392e-05/0.9061, allocations: 7.188 kB / 1.369 GB, free: 15.82 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002862/0.9063, allocations: 135.4 kB / 1.369 GB, free: 15.66 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002342/0.9066, allocations: 0.6887 MB / 1.37 GB, free: 14.95 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.075e-05/0.9067, allocations: 39.72 kB / 1.37 GB, free: 14.91 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.165e-05/0.9067, allocations: 22.3 kB / 1.37 GB, free: 14.89 MB / 0.8386 GB Notification: Performance of SimCode: time 1.893e-06/0.9067, allocations: 0 / 1.37 GB, free: 14.89 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0102/0.9169, allocations: 1.343 MB / 1.371 GB, free: 13.7 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001813/0.9171, allocations: 166.2 kB / 1.372 GB, free: 13.47 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.239/2.156, allocations: 1.969 kB / 1.372 GB, free: 13.47 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