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/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 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007768/0.0007768, allocations: 94.03 kB / 15.06 MB, free: 1.086 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.0008301/0.0008301, 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.346/1.346, allocations: 223.2 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.546/2.546, allocations: 390.4 MB / 0.6655 GB, free: 2.93 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003536/0.0003536, allocations: 12 kB / 0.8149 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7683/0.7687, allocations: 142.3 MB / 0.9538 GB, free: 8.07 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.001674/0.7704, allocations: 1.237 MB / 0.955 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003244/0.7707, allocations: 128.8 kB / 0.9552 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.234e-05/0.7708, allocations: 1.25 kB / 0.9552 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.731e-05/0.7708, allocations: 0 / 0.9552 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.575e-05/0.7709, allocations: 3.938 kB / 0.9552 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002347/0.7711, allocations: 19.72 kB / 0.9552 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.48e-05/0.7712, allocations: 39.72 kB / 0.9552 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.427e-05/0.7713, allocations: 9.391 kB / 0.9552 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.8e-05/0.7713, allocations: 11.69 kB / 0.9553 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.935e-05/0.7714, allocations: 21.39 kB / 0.9553 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.302e-05/0.7714, allocations: 1.375 kB / 0.9553 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.213e-05/0.7714, allocations: 16.45 kB / 0.9553 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.292e-05/0.7715, allocations: 9.297 kB / 0.9553 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.171e-05/0.7715, allocations: 27.33 kB / 0.9553 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.298e-05/0.7716, allocations: 23.95 kB / 0.9553 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.7716, allocations: 3.984 kB / 0.9554 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.943e-06/0.7716, allocations: 5.312 kB / 0.9554 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.038e-06/0.7716, allocations: 0 / 0.9554 GB, free: 6.848 MB / 0.7169 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.0003865/0.772, allocations: 354.3 kB / 0.9557 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.772, allocations: 9.875 kB / 0.9557 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.342e-05/0.7721, allocations: 35.56 kB / 0.9557 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.65e-05/0.7721, allocations: 10.33 kB / 0.9557 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.57e-05/0.7722, allocations: 168.2 kB / 0.9559 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.7722, allocations: 6.469 kB / 0.9559 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.41e-05/0.7722, allocations: 5.172 kB / 0.9559 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000178/0.7724, allocations: 67.7 kB / 0.956 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.7724, allocations: 1.5 kB / 0.956 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/0.7725, allocations: 0 / 0.956 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.309e-06/0.7725, allocations: 1.094 kB / 0.956 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001781/0.7727, allocations: 65.22 kB / 0.956 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003272/0.773, allocations: 275.2 kB / 0.9563 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003083/0.7733, allocations: 62.61 kB / 0.9564 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.7734, allocations: 38.11 kB / 0.9564 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002304/0.7737, allocations: 396.2 kB / 0.9568 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.901e-05/0.7737, allocations: 43.45 kB / 0.9568 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.283e-06/0.7737, allocations: 0 / 0.9568 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003949/0.7741, allocations: 117.5 kB / 0.9569 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.739e-05/0.7741, allocations: 51.41 kB / 0.957 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.948e-05/0.7742, allocations: 111.3 kB / 0.9571 GB, free: 5 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.476e-06/0.7742, allocations: 26.7 kB / 0.9571 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.836e-05/0.7743, allocations: 89.39 kB / 0.9572 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.656e-05/0.7743, allocations: 6.062 kB / 0.9572 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.038e-06/0.7743, allocations: 0 / 0.9572 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.271e-05/0.7744, allocations: 320 kB / 0.9575 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.113e-05/0.7745, allocations: 22.98 kB / 0.9575 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.947e-05/0.7746, allocations: 28.66 kB / 0.9576 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.829e-05/0.7747, allocations: 31.09 kB / 0.9576 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.7747, allocations: 0 / 0.9576 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002142/0.7749, allocations: 90.5 kB / 0.9577 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.7749, allocations: 9.172 kB / 0.9577 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.7749, allocations: 1.094 kB / 0.9577 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.7749, allocations: 3.984 kB / 0.9577 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.23e-05/0.775, allocations: 9.906 kB / 0.9577 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.7751, allocations: 1.125 kB / 0.9577 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.927e-05/0.7751, allocations: 13.83 kB / 0.9577 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.7751, allocations: 1.156 kB / 0.9577 GB, free: 4.445 MB / 0.7169 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 8.289e-05/0.7752, allocations: 115.8 kB / 0.9578 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.526e-05/0.7753, allocations: 2.125 kB / 0.9578 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002806/0.7755, allocations: 105.3 kB / 0.9579 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.7756, allocations: 5.125 kB / 0.9579 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.7756, allocations: 0 / 0.9579 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.7756, allocations: 1.156 kB / 0.9579 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001328/0.7757, allocations: 165.2 kB / 0.9581 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.7757, allocations: 0 / 0.9581 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.298e-05/0.7758, allocations: 13.86 kB / 0.9581 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.7758, allocations: 1.094 kB / 0.9581 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.7758, allocations: 0 / 0.9581 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.7758, allocations: 5.047 kB / 0.9581 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.7758, allocations: 3.938 kB / 0.9581 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00023/0.7761, allocations: 194.8 kB / 0.9583 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.106e-05/0.7761, allocations: 78.05 kB / 0.9584 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.543e-05/0.7761, allocations: 0.9688 kB / 0.9584 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.048e-05/0.7762, allocations: 13.89 kB / 0.9584 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.222e-05/0.7763, allocations: 6.422 kB / 0.9584 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-06/0.7763, allocations: 5.219 kB / 0.9584 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.281e-05/0.7763, allocations: 90.11 kB / 0.9585 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7763, allocations: 0 / 0.9585 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002239/0.7765, allocations: 8.656 kB / 0.9585 GB, free: 3.668 MB / 0.7169 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.0004449/0.777, allocations: 0.7225 MB / 0.9592 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002094/0.7772, allocations: 63.83 kB / 0.9593 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.624e-06/0.7772, allocations: 0 / 0.9593 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001043/0.7773, allocations: 32.22 kB / 0.9593 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.7776, allocations: 11.94 kB / 0.9593 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007908/0.7784, allocations: 455.1 kB / 0.9597 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001412/0.7786, allocations: 0.6808 MB / 0.9604 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.302e-05/0.7786, allocations: 1.938 kB / 0.9604 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.805e-05/0.7787, allocations: 23.27 kB / 0.9604 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.7787, allocations: 4 kB / 0.9604 GB, free: 1.816 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0164/0.7951, allocations: 1.385 MB / 0.9618 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002096/0.7953, allocations: 180.5 kB / 0.962 GB, free: 0.9297 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.753/2.549, allocations: 3.938 kB / 0.962 GB, free: 0.9258 MB / 0.7169 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