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/ModelicaServices 4.0.0+maint.om/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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 86.25 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001498/0.001499, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 223.2 MB / 240 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.441/2.441, allocations: 409.4 MB / 0.684 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003484/0.0003485, allocations: 12 kB / 0.8378 GB, free: 6.523 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6126/0.613, allocations: 146.8 MB / 0.9811 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.0006961/0.6137, allocations: 321.5 kB / 0.9815 GB, free: 5.961 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0002445/0.614, allocations: 43.91 kB / 0.9815 GB, free: 5.918 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.624e-05/0.614, allocations: 0 / 0.9815 GB, free: 5.918 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.321e-05/0.614, allocations: 0 / 0.9815 GB, free: 5.918 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.182e-06/0.614, allocations: 0 / 0.9815 GB, free: 5.918 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000241/0.6143, allocations: 19.92 kB / 0.9815 GB, free: 5.898 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.009e-05/0.6144, allocations: 23.97 kB / 0.9815 GB, free: 5.875 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 5.983e-05/0.6145, allocations: 11.98 kB / 0.9816 GB, free: 5.863 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 1.999e-05/0.6145, allocations: 8 kB / 0.9816 GB, free: 5.855 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 3.515e-05/0.6145, allocations: 15.97 kB / 0.9816 GB, free: 5.84 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.339e-05/0.6146, allocations: 4 kB / 0.9816 GB, free: 5.836 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.103e-05/0.6146, allocations: 8 kB / 0.9816 GB, free: 5.828 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.438e-05/0.6147, allocations: 11.98 kB / 0.9816 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.485e-05/0.6147, allocations: 33.64 kB / 0.9816 GB, free: 5.777 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 7.738e-05/0.6148, allocations: 19.95 kB / 0.9816 GB, free: 5.758 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.6148, allocations: 0 / 0.9816 GB, free: 5.758 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.013e-06/0.6148, allocations: 0 / 0.9816 GB, free: 5.758 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.439e-06/0.6148, allocations: 4 kB / 0.9817 GB, free: 5.754 MB / 0.7325 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.0003031/0.6151, allocations: 331.3 kB / 0.982 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.6152, allocations: 8.031 kB / 0.982 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.473e-05/0.6152, allocations: 38.56 kB / 0.982 GB, free: 5.328 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.491e-05/0.6152, allocations: 0 / 0.982 GB, free: 5.328 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.717e-05/0.6153, allocations: 169.3 kB / 0.9822 GB, free: 5.125 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.456e-06/0.6153, allocations: 0 / 0.9822 GB, free: 5.125 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.352e-05/0.6154, allocations: 11.94 kB / 0.9822 GB, free: 5.113 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001412/0.6155, allocations: 69.55 kB / 0.9823 GB, free: 5.039 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.6155, allocations: 4 kB / 0.9823 GB, free: 5.035 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.725e-06/0.6155, allocations: 0 / 0.9823 GB, free: 5.035 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.6155, allocations: 4 kB / 0.9823 GB, free: 5.031 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001333/0.6157, allocations: 99.86 kB / 0.9824 GB, free: 4.934 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001567/0.6158, allocations: 173.5 kB / 0.9825 GB, free: 4.715 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001014/0.616, allocations: 70.55 kB / 0.9826 GB, free: 4.637 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.504e-05/0.616, allocations: 36.78 kB / 0.9826 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002957/0.6163, allocations: 401.5 kB / 0.983 GB, free: 4.113 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.019e-05/0.6163, allocations: 42.89 kB / 0.983 GB, free: 4.062 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 2.355e-06/0.6163, allocations: 0 / 0.983 GB, free: 4.062 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0002262/0.6166, allocations: 117.5 kB / 0.9832 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.078e-05/0.6166, allocations: 51.41 kB / 0.9832 GB, free: 3.879 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.879e-05/0.6167, allocations: 105.8 kB / 0.9833 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.275e-05/0.6167, allocations: 25.7 kB / 0.9833 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 2.314e-05/0.6167, allocations: 80.33 kB / 0.9834 GB, free: 3.648 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.073e-05/0.6167, allocations: 19.8 kB / 0.9834 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-06/0.6168, allocations: 4 kB / 0.9834 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 8.417e-05/0.6168, allocations: 318.8 kB / 0.9837 GB, free: 3.305 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.406e-05/0.6169, allocations: 15.98 kB / 0.9838 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.482e-05/0.6169, allocations: 31.84 kB / 0.9838 GB, free: 3.258 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.868e-05/0.617, allocations: 20 kB / 0.9838 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.617, allocations: 0 / 0.9838 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001303/0.6171, allocations: 97.56 kB / 0.9839 GB, free: 3.137 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.6171, allocations: 4 kB / 0.9839 GB, free: 3.133 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.6172, allocations: 0 / 0.9839 GB, free: 3.133 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.6172, allocations: 4 kB / 0.9839 GB, free: 3.129 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.6173, allocations: 23.94 kB / 0.9839 GB, free: 3.105 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.6173, allocations: 0 / 0.9839 GB, free: 3.105 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.254e-05/0.6173, allocations: 7.938 kB / 0.9839 GB, free: 3.098 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/0.6173, allocations: 7.938 kB / 0.9839 GB, free: 3.09 MB / 0.7325 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.0001233/0.6175, allocations: 125.8 kB / 0.9841 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.128e-05/0.6175, allocations: 4 kB / 0.9841 GB, free: 2.953 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002093/0.6177, allocations: 121.7 kB / 0.9842 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.6177, allocations: 3.984 kB / 0.9842 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.6177, allocations: 7.953 kB / 0.9842 GB, free: 2.816 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.6177, allocations: 0 / 0.9842 GB, free: 2.816 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001325/0.6179, allocations: 177.5 kB / 0.9844 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.6179, allocations: 3.938 kB / 0.9844 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.144e-05/0.618, allocations: 23.92 kB / 0.9844 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.618, allocations: 0 / 0.9844 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.326e-06/0.618, allocations: 0 / 0.9844 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/0.618, allocations: 4 kB / 0.9844 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.618, allocations: 4 kB / 0.9844 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001618/0.6182, allocations: 122.2 kB / 0.9845 GB, free: 2.422 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.431e-05/0.6182, allocations: 81.02 kB / 0.9846 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.628e-05/0.6182, allocations: 8 kB / 0.9846 GB, free: 2.316 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.474e-05/0.6183, allocations: 0 / 0.9846 GB, free: 2.316 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.491e-05/0.6183, allocations: 7.984 kB / 0.9846 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.6183, allocations: 8 kB / 0.9846 GB, free: 2.301 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 2.905e-05/0.6184, allocations: 83.22 kB / 0.9847 GB, free: 2.219 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6184, allocations: 0 / 0.9847 GB, free: 2.219 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002057/0.6186, allocations: 11.95 kB / 0.9847 GB, free: 2.207 MB / 0.7325 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.0005229/0.6191, allocations: 0.6658 MB / 0.9854 GB, free: 1.512 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001472/0.6193, allocations: 71.89 kB / 0.9854 GB, free: 1.441 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.6193, allocations: 0 / 0.9854 GB, free: 1.441 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 5.176e-05/0.6193, allocations: 31.92 kB / 0.9854 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001474/0.6195, allocations: 8 kB / 0.9855 GB, free: 1.402 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003833/0.6199, allocations: 176.3 kB / 0.9856 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002195/0.6201, allocations: 0.6823 MB / 0.9863 GB, free: 496 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.997e-05/0.6202, allocations: 43.92 kB / 0.9863 GB, free: 452 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.285e-05/0.6202, allocations: 23.42 kB / 0.9864 GB, free: 428 kB / 0.7325 GB Notification: Performance of SimCode: time 3.21e-07/0.6202, allocations: 0 / 0.9864 GB, free: 428 kB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009448/0.6297, allocations: 1.347 MB / 0.9877 GB, free: 15.23 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001499/0.6299, allocations: 198.7 kB / 0.9879 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.68/2.31, allocations: 6 kB / 0.9879 GB, free: 14.99 MB / 0.7481 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) Environment - environmentSimulation: 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