Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.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.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Factorial",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.288/2.288, allocations: 393.5 MB / 408.4 MB, free: 10.82 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.001094/0.001094, allocations: 183.9 kB / 0.4901 GB, free: 2.09 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.596/1.596, allocations: 223.1 MB / 0.7992 GB, free: 14.73 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.001094/0.001094, allocations: 103.1 kB / 0.9396 GB, free: 1.918 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003781/0.0003781, allocations: 14 kB / 1.09 GB, free: 216 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.3252, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2012/0.5264, allocations: 150.3 MB / 1.376 GB, free: 3.141 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002532/0.5267, allocations: 67.97 kB / 1.376 GB, free: 3.074 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.002912/0.5297, allocations: 0.942 MB / 1.377 GB, free: 2.129 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.565e-06/0.5297, allocations: 0 / 1.377 GB, free: 2.129 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.777e-06/0.5297, allocations: 4 kB / 1.377 GB, free: 2.125 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004558/0.5302, allocations: 356.3 kB / 1.377 GB, free: 1.73 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 6.026e-05/0.5302, allocations: 8.562 kB / 1.377 GB, free: 1.723 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.83e-05/0.5303, allocations: 34.5 kB / 1.377 GB, free: 1.68 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.213e-05/0.5303, allocations: 7.906 kB / 1.377 GB, free: 1.672 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001577/0.5305, allocations: 171 kB / 1.378 GB, free: 1.465 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.939e-05/0.5305, allocations: 4 kB / 1.378 GB, free: 1.461 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.659e-05/0.5306, allocations: 7.984 kB / 1.378 GB, free: 1.453 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002075/0.5308, allocations: 61.67 kB / 1.378 GB, free: 1.387 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.5308, allocations: 0 / 1.378 GB, free: 1.387 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.5308, allocations: 4 kB / 1.378 GB, free: 1.383 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.5308, allocations: 0 / 1.378 GB, free: 1.383 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001955/0.531, allocations: 51.95 kB / 1.378 GB, free: 1.332 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004791/0.5315, allocations: 284.8 kB / 1.378 GB, free: 1.004 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003119/0.5319, allocations: 62.53 kB / 1.378 GB, free: 0.9336 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001272/0.532, allocations: 81.17 kB / 1.378 GB, free: 0.8359 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.532, allocations: 34.56 kB / 1.378 GB, free: 0.793 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=3): time 1.333e-06/0.532, allocations: 0 / 1.378 GB, free: 0.793 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3): time 0.000414/0.5325, allocations: 117.6 kB / 1.378 GB, free: 0.6719 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.25e-05/0.5325, allocations: 55.36 kB / 1.378 GB, free: 0.6055 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.608e-05/0.5326, allocations: 93 kB / 1.378 GB, free: 0.5078 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/0.5326, allocations: 25.7 kB / 1.378 GB, free: 488 kB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 4.715e-05/0.5327, allocations: 88.12 kB / 1.379 GB, free: 396 kB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.107e-05/0.5327, allocations: 19.83 kB / 1.379 GB, free: 376 kB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.127e-06/0.5327, allocations: 0 / 1.379 GB, free: 376 kB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 9.013e-05/0.5328, allocations: 312.6 kB / 1.379 GB, free: 56 kB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.656e-05/0.5329, allocations: 27.97 kB / 1.379 GB, free: 28 kB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.157e-05/0.533, allocations: 23.98 kB / 1.379 GB, free: 4 kB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001092/0.5331, allocations: 23.98 kB / 1.379 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.5331, allocations: 0 / 1.379 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002261/0.5333, allocations: 93.58 kB / 1.379 GB, free: 15.88 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.5334, allocations: 4 kB / 1.379 GB, free: 15.88 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.5334, allocations: 0 / 1.379 GB, free: 15.88 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.5334, allocations: 0 / 1.379 GB, free: 15.88 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.541e-05/0.5335, allocations: 19.92 kB / 1.379 GB, free: 15.86 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.5335, allocations: 0 / 1.379 GB, free: 15.86 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.327e-05/0.5336, allocations: 11.95 kB / 1.379 GB, free: 15.85 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.365e-06/0.5336, allocations: 3.984 kB / 1.379 GB, free: 15.84 MB / 0.8855 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 () * 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 8.252e-05/0.5337, allocations: 113.8 kB / 1.379 GB, free: 15.72 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.642e-05/0.5337, allocations: 7.906 kB / 1.379 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002741/0.534, allocations: 97.53 kB / 1.379 GB, free: 15.61 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.534, allocations: 4 kB / 1.379 GB, free: 15.61 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.534, allocations: 0 / 1.379 GB, free: 15.61 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.534, allocations: 0 / 1.379 GB, free: 15.61 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001767/0.5342, allocations: 169.6 kB / 1.379 GB, free: 15.39 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.5342, allocations: 48 / 1.379 GB, free: 15.39 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.38e-05/0.5343, allocations: 15.97 kB / 1.379 GB, free: 15.38 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.5343, allocations: 0 / 1.379 GB, free: 15.38 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.875e-06/0.5343, allocations: 0 / 1.379 GB, free: 15.38 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.5343, allocations: 4 kB / 1.379 GB, free: 15.38 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.5343, allocations: 0 / 1.379 GB, free: 15.38 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000291/0.5346, allocations: 187.5 kB / 1.38 GB, free: 15.18 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.778e-05/0.5347, allocations: 84.98 kB / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.463e-05/0.5347, allocations: 0 / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.801e-05/0.5348, allocations: 12 kB / 1.38 GB, free: 15.06 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.48e-05/0.5349, allocations: 11.98 kB / 1.38 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.498e-06/0.5349, allocations: 0 / 1.38 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.145e-05/0.5349, allocations: 83.27 kB / 1.38 GB, free: 14.97 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5349, allocations: 0 / 1.38 GB, free: 14.97 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002225/0.5352, allocations: 12 kB / 1.38 GB, free: 14.96 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: 2 (fac.y,fac.u) * 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.000639/0.5358, allocations: 0.7248 MB / 1.381 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002453/0.5361, allocations: 63.89 kB / 1.381 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.5361, allocations: 0 / 1.381 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.5362, allocations: 31.97 kB / 1.381 GB, free: 14.11 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001987/0.5364, allocations: 0 / 1.381 GB, free: 14.11 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005032/0.5369, allocations: 154.2 kB / 1.381 GB, free: 13.92 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002907/0.5372, allocations: 0.6848 MB / 1.381 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.135e-05/0.5373, allocations: 4 kB / 1.381 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.447e-05/0.5373, allocations: 11.44 kB / 1.381 GB, free: 13.19 MB / 0.8855 GB Notification: Performance of SimCode: time 2.31e-07/0.5373, allocations: 0 / 1.381 GB, free: 13.19 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01232/0.5497, allocations: 1.273 MB / 1.383 GB, free: 12.04 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000195/0.5499, allocations: 177.6 kB / 1.383 GB, free: 11.79 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.527/2.077, allocations: 1.875 kB / 1.383 GB, free: 11.79 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat does not exist to compare? outputFormat=mat