Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.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.FallingFactorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_FallingFactorial",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 2.208/2.208, allocations: 387.4 MB / 394.9 MB, free: 13.37 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.001027/0.001027, allocations: 172.5 kB / 487.4 MB, free: 5.055 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.427/1.427, allocations: 221.5 MB / 0.7824 GB, free: 0.9141 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008354/0.000835, allocations: 103.8 kB / 0.9219 GB, free: 2.133 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.114e-05/2.116e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.277, allocations: 142.4 MB / 1.206 GB, free: 43.81 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9858/1.263, allocations: 148.9 MB / 1.351 GB, free: 18.4 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002273/1.263, allocations: 70.94 kB / 1.352 GB, free: 18.4 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003802/1.267, allocations: 1.059 MB / 1.353 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.313e-06/1.267, allocations: 4 kB / 1.353 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.813e-06/1.267, allocations: 0 / 1.353 GB, free: 34.05 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003926/1.267, allocations: 353.6 kB / 1.353 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/1.267, allocations: 8.312 kB / 1.353 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.837e-05/1.268, allocations: 7.75 kB / 1.353 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.792e-05/1.268, allocations: 164.4 kB / 1.353 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.39e-05/1.268, allocations: 0 / 1.353 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.341e-05/1.268, allocations: 7.875 kB / 1.353 GB, free: 33.49 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.971e-05/1.268, allocations: 19.7 kB / 1.353 GB, free: 33.49 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.182e-05/1.268, allocations: 45.94 kB / 1.353 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/1.268, allocations: 3.906 kB / 1.353 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/1.268, allocations: 0 / 1.353 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/1.268, allocations: 0.6562 kB / 1.353 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00036/1.268, allocations: 256.5 kB / 1.353 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002131/1.269, allocations: 45.06 kB / 1.353 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.87e-05/1.269, allocations: 17.19 kB / 1.353 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002228/1.269, allocations: 402.6 kB / 1.354 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.415e-05/1.269, allocations: 33.19 kB / 1.354 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.293e-06/1.269, allocations: 0 / 1.354 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0002003/1.269, allocations: 48.77 kB / 1.354 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.817e-05/1.269, allocations: 56.02 kB / 1.354 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.992e-05/1.269, allocations: 97.88 kB / 1.354 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.145e-05/1.269, allocations: 25.7 kB / 1.354 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.51e-05/1.269, allocations: 89.39 kB / 1.354 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.805e-05/1.269, allocations: 11.16 kB / 1.354 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.638e-06/1.269, allocations: 0 / 1.354 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001028/1.269, allocations: 315.6 kB / 1.354 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.874e-05/1.269, allocations: 8.219 kB / 1.354 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.623e-05/1.269, allocations: 7.891 kB / 1.355 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.716e-05/1.269, allocations: 12.78 kB / 1.355 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/1.269, allocations: 0 / 1.355 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.145e-05/1.27, allocations: 56.02 kB / 1.355 GB, free: 32 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/1.27, allocations: 6.625 kB / 1.355 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/1.27, allocations: 0 / 1.355 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/1.27, allocations: 3.562 kB / 1.355 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.784e-05/1.27, allocations: 11.27 kB / 1.355 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/1.27, allocations: 0 / 1.355 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.265e-05/1.27, allocations: 14.73 kB / 1.355 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/1.27, allocations: 0 / 1.355 GB, free: 31.99 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 (falFac.y,falFac.k) * 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 7.709e-05/1.27, allocations: 112.6 kB / 1.355 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.049e-05/1.27, allocations: 49.38 kB / 1.355 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.104e-05/1.27, allocations: 7.75 kB / 1.355 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001285/1.27, allocations: 59.52 kB / 1.355 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/1.27, allocations: 0 / 1.355 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/1.27, allocations: 0 / 1.355 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/1.27, allocations: 8.609 kB / 1.355 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001161/1.27, allocations: 152.3 kB / 1.355 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/1.27, allocations: 0 / 1.355 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.197e-05/1.27, allocations: 17.75 kB / 1.355 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/1.27, allocations: 0 / 1.355 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/1.27, allocations: 0 / 1.355 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/1.27, allocations: 0.6562 kB / 1.355 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/1.27, allocations: 0 / 1.355 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001292/1.271, allocations: 154.9 kB / 1.355 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.723e-05/1.271, allocations: 77.81 kB / 1.355 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.495e-05/1.271, allocations: 8.562 kB / 1.355 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.567e-05/1.271, allocations: 6.125 kB / 1.355 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.256e-05/1.271, allocations: 6.641 kB / 1.355 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.398e-06/1.271, allocations: 0.75 kB / 1.355 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.78e-05/1.271, allocations: 83.45 kB / 1.355 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.271, allocations: 0 / 1.355 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002147/1.271, allocations: 28.22 kB / 1.355 GB, free: 31.3 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 (falFac.y,falFac.k) * 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.0004455/1.271, allocations: 0.6903 MB / 1.356 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.901e-05/1.272, allocations: 19.44 kB / 1.356 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/1.272, allocations: 0 / 1.356 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.812e-05/1.272, allocations: 12.33 kB / 1.356 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001773/1.272, allocations: 12.14 kB / 1.356 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003454/1.272, allocations: 98.84 kB / 1.356 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002431/1.272, allocations: 0.6864 MB / 1.357 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.097e-05/1.272, allocations: 0.5156 kB / 1.357 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.897e-05/1.272, allocations: 16.75 kB / 1.357 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.272, allocations: 0 / 1.357 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02241/1.295, allocations: 1.013 MB / 1.358 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001561/1.295, allocations: 141.9 kB / 1.358 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.608/2.904, allocations: 1.844 kB / 1.358 GB, free: 29.56 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat does not exist to compare? outputFormat=mat