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.001185/0.001185, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.001318/0.001318, allocations: 177.3 kB / 15.95 MB, free: 216 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.347/1.347, allocations: 223.2 MB / 239.9 MB, free: 5.449 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.547/2.547, allocations: 390.3 MB / 0.6653 GB, free: 2.977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000336/0.0003362, allocations: 11.98 kB / 0.8146 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7685/0.7688, allocations: 142.3 MB / 0.9536 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.001528/0.7704, allocations: 1.237 MB / 0.9548 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002965/0.7707, allocations: 129.6 kB / 0.9549 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.7e-05/0.7708, allocations: 5.406 kB / 0.9549 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.858e-05/0.7708, allocations: 3.938 kB / 0.9549 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.883e-05/0.7708, allocations: 5.125 kB / 0.9549 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000253/0.7711, allocations: 15.05 kB / 0.9549 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.459e-05/0.7712, allocations: 26.12 kB / 0.955 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.919e-05/0.7713, allocations: 16.5 kB / 0.955 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.803e-05/0.7713, allocations: 4.969 kB / 0.955 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.645e-05/0.7714, allocations: 17.58 kB / 0.955 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.372e-05/0.7714, allocations: 5.188 kB / 0.955 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.6e-05/0.7715, allocations: 14.8 kB / 0.955 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.042e-05/0.7715, allocations: 6.031 kB / 0.955 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.288e-05/0.7715, allocations: 31.45 kB / 0.9551 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.3e-05/0.7716, allocations: 31.98 kB / 0.9551 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.385e-06/0.7716, allocations: 0 / 0.9551 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.144e-06/0.7716, allocations: 0 / 0.9551 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.044e-06/0.7716, allocations: 0 / 0.9551 GB, free: 6.879 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.0004123/0.772, allocations: 353.6 kB / 0.9554 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.7721, allocations: 9.969 kB / 0.9554 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.882e-05/0.7721, allocations: 32.16 kB / 0.9555 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.76e-05/0.7722, allocations: 9.359 kB / 0.9555 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.869e-05/0.7723, allocations: 173.4 kB / 0.9556 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.368e-05/0.7723, allocations: 1.469 kB / 0.9556 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.43e-05/0.7723, allocations: 1.812 kB / 0.9556 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002153/0.7725, allocations: 71.23 kB / 0.9557 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.7726, allocations: 0 / 0.9557 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.7726, allocations: 1.219 kB / 0.9557 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.7726, allocations: 0 / 0.9557 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002371/0.7728, allocations: 58.16 kB / 0.9558 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004261/0.7733, allocations: 279 kB / 0.956 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000337/0.7736, allocations: 67.62 kB / 0.9561 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000282/0.7739, allocations: 396.5 kB / 0.9565 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.249e-05/0.7739, allocations: 43.83 kB / 0.9565 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.774, allocations: 0 / 0.9565 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004651/0.7744, allocations: 116.7 kB / 0.9566 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.7745, allocations: 56.41 kB / 0.9567 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.121e-05/0.7746, allocations: 110.5 kB / 0.9568 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.7746, allocations: 30.92 kB / 0.9568 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.123e-05/0.7747, allocations: 85.48 kB / 0.9569 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.226e-05/0.7747, allocations: 9.125 kB / 0.9569 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.679e-06/0.7747, allocations: 0 / 0.9569 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.54e-05/0.7748, allocations: 316.4 kB / 0.9572 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.7749, allocations: 27.55 kB / 0.9572 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.417e-05/0.775, allocations: 23.39 kB / 0.9573 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001035/0.7751, allocations: 23.34 kB / 0.9573 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.7751, allocations: 5.156 kB / 0.9573 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002473/0.7754, allocations: 86.47 kB / 0.9574 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.7754, allocations: 5.406 kB / 0.9574 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.7754, allocations: 3.953 kB / 0.9574 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.7754, allocations: 336 / 0.9574 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.169e-05/0.7755, allocations: 17.83 kB / 0.9574 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.7756, allocations: 5.781 kB / 0.9574 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.224e-05/0.7756, allocations: 13.77 kB / 0.9574 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.7756, allocations: 1.406 kB / 0.9574 GB, free: 4.5 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 9.81e-05/0.7757, allocations: 115.3 kB / 0.9575 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.899e-05/0.7758, allocations: 2.938 kB / 0.9575 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003083/0.7761, allocations: 100.4 kB / 0.9576 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.7761, allocations: 5.391 kB / 0.9576 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.7761, allocations: 0 / 0.9576 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-06/0.7761, allocations: 5.406 kB / 0.9576 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000173/0.7763, allocations: 164.8 kB / 0.9578 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.7763, allocations: 0 / 0.9578 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.021e-05/0.7764, allocations: 14.44 kB / 0.9578 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.7764, allocations: 0 / 0.9578 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.398e-05/0.7764, allocations: 5.422 kB / 0.9578 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.7764, allocations: 3.938 kB / 0.9578 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.7764, allocations: 3.953 kB / 0.9578 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002977/0.7768, allocations: 186.2 kB / 0.958 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.288e-05/0.7768, allocations: 78.39 kB / 0.9581 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.242e-05/0.7768, allocations: 3.984 kB / 0.9581 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.904e-05/0.7769, allocations: 6.438 kB / 0.9581 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.892e-05/0.777, allocations: 14.5 kB / 0.9581 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.863e-06/0.777, allocations: 1.469 kB / 0.9581 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.617e-05/0.7771, allocations: 92.86 kB / 0.9582 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7771, allocations: 0 / 0.9582 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002465/0.7773, allocations: 12.44 kB / 0.9582 GB, free: 3.719 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.0005916/0.7779, allocations: 0.7259 MB / 0.9589 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000261/0.7782, allocations: 54.61 kB / 0.959 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.7782, allocations: 4 kB / 0.959 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001005/0.7783, allocations: 28.45 kB / 0.959 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000214/0.7785, allocations: 9.328 kB / 0.959 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008168/0.7793, allocations: 447 kB / 0.9594 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001189/0.7795, allocations: 0.6841 MB / 0.9601 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.084e-05/0.7795, allocations: 3.594 kB / 0.9601 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.791e-05/0.7796, allocations: 17.27 kB / 0.9601 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.7796, allocations: 3.938 kB / 0.9601 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01171/0.7913, allocations: 1.372 MB / 0.9615 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001347/0.7915, allocations: 185.2 kB / 0.9616 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.785/2.576, allocations: 0 / 0.9616 GB, free: 0.9961 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