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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.984/1.984, allocations: 387.1 MB / 399.7 MB, free: 9.484 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.001101/0.001102, allocations: 173 kB / 492.3 MB, free: 0.6133 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.287/1.287, allocations: 221.3 MB / 0.7871 GB, free: 12.79 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.0007965/0.0007966, allocations: 95.41 kB / 0.9267 GB, free: 13.86 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.421e-05/2.422e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1959/0.1959, allocations: 142.3 MB / 1.212 GB, free: 38.4 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7003/0.8962, allocations: 149.5 MB / 1.358 GB, free: 18.96 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001771/0.8964, allocations: 70.22 kB / 1.359 GB, free: 18.96 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002864/0.8993, allocations: 0.9433 MB / 1.359 GB, free: 34.62 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.413e-06/0.8993, allocations: 0 / 1.359 GB, free: 34.62 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.493e-06/0.8994, allocations: 0 / 1.359 GB, free: 34.62 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0002707/0.8996, allocations: 347.2 kB / 1.36 GB, free: 34.27 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.8997, allocations: 16.45 kB / 1.36 GB, free: 34.27 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.85e-05/0.8997, allocations: 31.36 kB / 1.36 GB, free: 34.23 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.145e-05/0.8997, allocations: 4.688 kB / 1.36 GB, free: 34.23 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.575e-05/0.8998, allocations: 167.5 kB / 1.36 GB, free: 34.03 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.843e-05/0.8998, allocations: 0 / 1.36 GB, free: 34.03 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.337e-05/0.8999, allocations: 8.906 kB / 1.36 GB, free: 34.03 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.425e-05/0.9, allocations: 44.5 kB / 1.36 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.9, allocations: 0.7969 kB / 1.36 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.406e-06/0.9, allocations: 0 / 1.36 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.9, allocations: 0 / 1.36 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.843e-05/0.9001, allocations: 32.39 kB / 1.36 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003654/0.9004, allocations: 275.8 kB / 1.36 GB, free: 33.71 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002008/0.9006, allocations: 43.95 kB / 1.36 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.893e-05/0.9007, allocations: 26.5 kB / 1.36 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 9.123e-05/0.9008, allocations: 82.86 kB / 1.36 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.275e-05/0.9008, allocations: 38.34 kB / 1.36 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.9008, allocations: 3.938 kB / 1.36 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0001426/0.901, allocations: 46.84 kB / 1.361 GB, free: 33.51 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.344e-05/0.901, allocations: 52.06 kB / 1.361 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.706e-05/0.901, allocations: 101.4 kB / 1.361 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.576e-06/0.9011, allocations: 29.7 kB / 1.361 GB, free: 33.31 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.654e-05/0.9011, allocations: 85.08 kB / 1.361 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.274e-05/0.9011, allocations: 7.719 kB / 1.361 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.626e-06/0.9011, allocations: 0 / 1.361 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 4.099e-05/0.9012, allocations: 312.2 kB / 1.361 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.883e-05/0.9012, allocations: 11.52 kB / 1.361 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.587e-05/0.9012, allocations: 7.344 kB / 1.361 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.284e-05/0.9012, allocations: 8.953 kB / 1.361 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.9012, allocations: 0 / 1.361 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.995e-05/0.9013, allocations: 55.3 kB / 1.361 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.9013, allocations: 6.047 kB / 1.361 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.9013, allocations: 0 / 1.361 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.9014, allocations: 0 / 1.361 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.302e-05/0.9014, allocations: 14.23 kB / 1.361 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.9015, allocations: 0 / 1.361 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.729e-05/0.9015, allocations: 12.08 kB / 1.361 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-06/0.9015, allocations: 7.938 kB / 1.361 GB, free: 32.87 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: 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 4.256e-05/0.9016, allocations: 106.8 kB / 1.361 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.108e-05/0.9016, allocations: 0 / 1.361 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000111/0.9017, allocations: 60.45 kB / 1.361 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.9017, allocations: 3.969 kB / 1.361 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.9017, allocations: 0 / 1.361 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.9018, allocations: 0.6562 kB / 1.361 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000115/0.9019, allocations: 173.7 kB / 1.362 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.9019, allocations: 0.7969 kB / 1.362 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.757e-05/0.902, allocations: 17.91 kB / 1.362 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.902, allocations: 0 / 1.362 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.902, allocations: 0.6094 kB / 1.362 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.902, allocations: 0 / 1.362 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.902, allocations: 0 / 1.362 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.288e-05/0.9021, allocations: 154.4 kB / 1.362 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.756e-05/0.9021, allocations: 81.7 kB / 1.362 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.336e-05/0.9021, allocations: 8.406 kB / 1.362 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.605e-05/0.9022, allocations: 10.59 kB / 1.362 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.338e-05/0.9023, allocations: 6.094 kB / 1.362 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.55e-06/0.9023, allocations: 4.438 kB / 1.362 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 2.119e-05/0.9023, allocations: 79.06 kB / 1.362 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9023, allocations: 0 / 1.362 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001927/0.9025, allocations: 22.78 kB / 1.362 GB, free: 32.19 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: 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.000298/0.9028, allocations: 0.6857 MB / 1.363 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 7.754e-05/0.9029, allocations: 28.56 kB / 1.363 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.9029, allocations: 0 / 1.363 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.949e-05/0.903, allocations: 12.61 kB / 1.363 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001372/0.9031, allocations: 3.812 kB / 1.363 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002918/0.9034, allocations: 115.1 kB / 1.363 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.9036, allocations: 0.6816 MB / 1.363 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.102e-05/0.9037, allocations: 4.984 kB / 1.363 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.265e-05/0.9037, allocations: 11.67 kB / 1.363 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of SimCode: time 2.21e-07/0.9037, allocations: 0 / 1.363 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01137/0.9151, allocations: 1.273 MB / 1.365 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000128/0.9153, allocations: 144 kB / 1.365 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.37/2.285, allocations: 3.938 kB / 1.365 GB, free: 30.3 MB / 0.8386 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.mat does not exist to compare? outputFormat=mat