Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.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.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_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.001063/0.001063, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001363/0.001363, allocations: 172.7 kB / 15.95 MB, free: 208 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.426/1.426, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.563/2.563, allocations: 409.4 MB / 0.684 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004339/0.0004343, allocations: 8 kB / 0.8378 GB, free: 6.504 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8279/0.8284, allocations: 146.8 MB / 0.9811 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002744/0.8312, allocations: 1.243 MB / 0.9823 GB, free: 4.98 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0005541/0.8318, allocations: 116.5 kB / 0.9825 GB, free: 4.863 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.462e-05/0.8318, allocations: 0 / 0.9825 GB, free: 4.863 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.138e-05/0.8319, allocations: 7.984 kB / 0.9825 GB, free: 4.855 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.29e-05/0.832, allocations: 7.938 kB / 0.9825 GB, free: 4.848 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003406/0.8323, allocations: 23.97 kB / 0.9825 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.972e-05/0.8324, allocations: 31.92 kB / 0.9825 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001261/0.8326, allocations: 11.98 kB / 0.9825 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.621e-05/0.8326, allocations: 11.94 kB / 0.9825 GB, free: 4.77 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.357e-05/0.8327, allocations: 15.91 kB / 0.9826 GB, free: 4.754 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.53e-05/0.8327, allocations: 0 / 0.9826 GB, free: 4.754 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.456e-05/0.8329, allocations: 15.98 kB / 0.9826 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.091e-05/0.8329, allocations: 12 kB / 0.9826 GB, free: 4.727 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.443e-05/0.8329, allocations: 25.7 kB / 0.9826 GB, free: 4.695 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001168/0.8331, allocations: 27.94 kB / 0.9826 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.8331, allocations: 0 / 0.9826 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.235e-05/0.8331, allocations: 0 / 0.9826 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.5e-06/0.8331, allocations: 3.938 kB / 0.9826 GB, free: 4.664 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006325/0.8338, allocations: 349.6 kB / 0.983 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.623e-05/0.8339, allocations: 16.03 kB / 0.983 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.927e-05/0.8339, allocations: 34.5 kB / 0.983 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.879e-05/0.834, allocations: 7.906 kB / 0.983 GB, free: 4.207 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001673/0.8342, allocations: 171 kB / 0.9832 GB, free: 4 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.131e-05/0.8342, allocations: 7.984 kB / 0.9832 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.657e-05/0.8342, allocations: 4 kB / 0.9832 GB, free: 3.988 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003126/0.8346, allocations: 73.56 kB / 0.9833 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.8346, allocations: 7.984 kB / 0.9833 GB, free: 3.902 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.8346, allocations: 0 / 0.9833 GB, free: 3.902 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.8346, allocations: 0 / 0.9833 GB, free: 3.902 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003853/0.835, allocations: 55.89 kB / 0.9833 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007288/0.8358, allocations: 280.8 kB / 0.9836 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005511/0.8364, allocations: 66.53 kB / 0.9837 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000167/0.8365, allocations: 32.91 kB / 0.9837 GB, free: 3.414 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004955/0.837, allocations: 397.5 kB / 0.9841 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.154e-05/0.8371, allocations: 38.48 kB / 0.9841 GB, free: 2.887 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.784e-06/0.8371, allocations: 0 / 0.9841 GB, free: 2.887 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0007082/0.8378, allocations: 109.6 kB / 0.9842 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.013e-05/0.8379, allocations: 51.41 kB / 0.9843 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001322/0.8381, allocations: 109.8 kB / 0.9844 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.8381, allocations: 25.7 kB / 0.9844 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 9.15e-05/0.8382, allocations: 88.12 kB / 0.9845 GB, free: 2.473 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.332e-05/0.8383, allocations: 7.906 kB / 0.9845 GB, free: 2.465 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.324e-06/0.8383, allocations: 0 / 0.9845 GB, free: 2.465 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001832/0.8385, allocations: 318.8 kB / 0.9848 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000166/0.8387, allocations: 23.97 kB / 0.9848 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001391/0.8388, allocations: 27.92 kB / 0.9848 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001622/0.839, allocations: 31.92 kB / 0.9849 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.839, allocations: 3.953 kB / 0.9849 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000416/0.8395, allocations: 89.55 kB / 0.985 GB, free: 1.965 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.8395, allocations: 4 kB / 0.985 GB, free: 1.961 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.8395, allocations: 0 / 0.985 GB, free: 1.961 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.8396, allocations: 4 kB / 0.985 GB, free: 1.957 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001566/0.8397, allocations: 15.98 kB / 0.985 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.8398, allocations: 0 / 0.985 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001135/0.8399, allocations: 11.94 kB / 0.985 GB, free: 1.93 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/0.8399, allocations: 320 / 0.985 GB, free: 1.93 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: 2 (rea2Int.y,falFac.y) * 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 0.0001448/0.8401, allocations: 117.8 kB / 0.9851 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.921e-05/0.8401, allocations: 7.953 kB / 0.9851 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004641/0.8406, allocations: 97.8 kB / 0.9852 GB, free: 1.691 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.8406, allocations: 0 / 0.9852 GB, free: 1.691 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.8407, allocations: 0 / 0.9852 GB, free: 1.691 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.258e-06/0.8407, allocations: 4.031 kB / 0.9852 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002934/0.841, allocations: 177.6 kB / 0.9854 GB, free: 1.465 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.841, allocations: 0 / 0.9854 GB, free: 1.465 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001528/0.8412, allocations: 19.94 kB / 0.9854 GB, free: 1.445 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.8412, allocations: 0 / 0.9854 GB, free: 1.445 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.468e-05/0.8412, allocations: 4 kB / 0.9854 GB, free: 1.441 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.8412, allocations: 3.938 kB / 0.9854 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.8412, allocations: 0 / 0.9854 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004611/0.8417, allocations: 187.4 kB / 0.9856 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.126e-05/0.8418, allocations: 77.11 kB / 0.9857 GB, free: 1.145 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.662e-05/0.8418, allocations: 7.953 kB / 0.9857 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001548/0.842, allocations: 11.98 kB / 0.9857 GB, free: 1.125 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.845e-05/0.8421, allocations: 11.98 kB / 0.9857 GB, free: 1.113 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.555e-06/0.8421, allocations: 0 / 0.9857 GB, free: 1.113 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.394e-05/0.8422, allocations: 83.28 kB / 0.9858 GB, free: 1.031 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.71e-07/0.8422, allocations: 4 kB / 0.9858 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004542/0.8426, allocations: 8 kB / 0.9858 GB, free: 1.02 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: 2 (rea2Int.y,falFac.y) * 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.0009062/0.8436, allocations: 0.7163 MB / 0.9865 GB, free: 280 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004106/0.844, allocations: 63.89 kB / 0.9865 GB, free: 216 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/0.844, allocations: 0 / 0.9865 GB, free: 216 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000192/0.8442, allocations: 35.91 kB / 0.9866 GB, free: 180 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004562/0.8447, allocations: 7.953 kB / 0.9866 GB, free: 172 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001616/0.8463, allocations: 454.4 kB / 0.987 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004302/0.8468, allocations: 0.6809 MB / 0.9877 GB, free: 14.97 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.206e-05/0.8469, allocations: 0 / 0.9877 GB, free: 14.97 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.033e-05/0.847, allocations: 19.42 kB / 0.9877 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of SimCode: time 7.21e-07/0.847, allocations: 0 / 0.9877 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01897/0.866, allocations: 1.399 MB / 0.9891 GB, free: 13.69 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003082/0.8663, allocations: 192 kB / 0.9893 GB, free: 13.45 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.848/2.714, allocations: 7.375 kB / 0.9893 GB, free: 13.44 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat does not exist to compare? outputFormat=mat