Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 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.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_9_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.0009351/0.0009354, allocations: 99.86 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.0009234/0.0009233, allocations: 177.3 kB / 15.94 MB, free: 228 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.342/1.342, allocations: 223.2 MB / 239.9 MB, free: 5.352 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.313/2.313, allocations: 390.3 MB / 0.6653 GB, free: 2.977 MB / 0.5138 GB Notification: Performance of FrontEnd - loaded program: time 0.0003419/0.000342, allocations: 16 kB / 0.8146 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7572/0.7575, allocations: 142.3 MB / 0.9536 GB, free: 8.062 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.0006493/0.7582, allocations: 322.4 kB / 0.9539 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002046/0.7584, allocations: 48.95 kB / 0.9539 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.587e-05/0.7584, allocations: 4 kB / 0.9539 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.907e-05/0.7585, allocations: 0 / 0.9539 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.091e-06/0.7585, allocations: 0 / 0.9539 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002244/0.7587, allocations: 21.27 kB / 0.954 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.655e-05/0.7588, allocations: 18.17 kB / 0.954 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.329e-05/0.7589, allocations: 0 / 0.954 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.208e-05/0.7589, allocations: 18.72 kB / 0.954 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.189e-05/0.7589, allocations: 5.375 kB / 0.954 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.157e-05/0.7589, allocations: 1.469 kB / 0.954 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.387e-05/0.759, allocations: 14.89 kB / 0.954 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.237e-05/0.759, allocations: 21.09 kB / 0.954 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.542e-05/0.7591, allocations: 32.67 kB / 0.9541 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.124e-05/0.7591, allocations: 11.42 kB / 0.9541 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.7591, allocations: 1.219 kB / 0.9541 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.874e-06/0.7592, allocations: 0 / 0.9541 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.883e-06/0.7592, allocations: 0 / 0.9541 GB, free: 7.68 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0002209/0.7594, allocations: 327.3 kB / 0.9544 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.7594, allocations: 10.25 kB / 0.9544 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.048e-05/0.7595, allocations: 35.89 kB / 0.9544 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.41e-05/0.7595, allocations: 9.703 kB / 0.9545 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.031e-05/0.7596, allocations: 170.6 kB / 0.9546 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.07e-05/0.7596, allocations: 2.344 kB / 0.9546 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.244e-05/0.7596, allocations: 2.625 kB / 0.9546 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000132/0.7597, allocations: 70.16 kB / 0.9547 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.7597, allocations: 0 / 0.9547 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.7598, allocations: 5.219 kB / 0.9547 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.7598, allocations: 1.156 kB / 0.9547 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001321/0.7599, allocations: 105.7 kB / 0.9548 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001281/0.76, allocations: 178.5 kB / 0.955 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001026/0.7601, allocations: 73.05 kB / 0.955 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002274/0.7604, allocations: 402.8 kB / 0.9554 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.671e-05/0.7604, allocations: 34.5 kB / 0.9555 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.152e-06/0.7604, allocations: 0.625 kB / 0.9555 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0002272/0.7606, allocations: 121.3 kB / 0.9556 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.104e-05/0.7607, allocations: 52.62 kB / 0.9556 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.205e-05/0.7607, allocations: 95.12 kB / 0.9557 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.418e-06/0.7607, allocations: 34.8 kB / 0.9557 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.268e-05/0.7607, allocations: 80.33 kB / 0.9558 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.415e-05/0.7608, allocations: 19.56 kB / 0.9558 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.328e-06/0.7608, allocations: 1.438 kB / 0.9558 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.668e-05/0.7608, allocations: 320.1 kB / 0.9561 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.476e-05/0.7609, allocations: 18.98 kB / 0.9562 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.071e-05/0.7609, allocations: 16.3 kB / 0.9562 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.9e-05/0.761, allocations: 31.36 kB / 0.9562 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.761, allocations: 0 / 0.9562 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001209/0.7611, allocations: 95.42 kB / 0.9563 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.7611, allocations: 9.203 kB / 0.9563 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.7611, allocations: 0.9375 kB / 0.9563 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.7611, allocations: 0 / 0.9563 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.717e-05/0.7612, allocations: 15.59 kB / 0.9563 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.7612, allocations: 1.219 kB / 0.9563 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.079e-05/0.7613, allocations: 9.094 kB / 0.9563 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.7613, allocations: 7.484 kB / 0.9563 GB, free: 5.371 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: 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.0001274/0.7614, allocations: 129.5 kB / 0.9565 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.047e-05/0.7614, allocations: 2.906 kB / 0.9565 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001931/0.7616, allocations: 129.3 kB / 0.9566 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.7616, allocations: 1.562 kB / 0.9566 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.7617, allocations: 4 kB / 0.9566 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.7617, allocations: 1.188 kB / 0.9566 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.25e-05/0.7617, allocations: 182 kB / 0.9568 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.7618, allocations: 0 / 0.9568 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.625e-05/0.7618, allocations: 27.06 kB / 0.9568 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.7618, allocations: 1.219 kB / 0.9568 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.247e-06/0.7618, allocations: 5.266 kB / 0.9568 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.093e-06/0.7619, allocations: 1.094 kB / 0.9568 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.7619, allocations: 0 / 0.9568 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001249/0.762, allocations: 122.3 kB / 0.9569 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.764e-05/0.762, allocations: 79.58 kB / 0.957 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.366e-05/0.762, allocations: 7.984 kB / 0.957 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.454e-05/0.7621, allocations: 5.188 kB / 0.957 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.033e-05/0.7621, allocations: 4.531 kB / 0.957 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.114e-06/0.7621, allocations: 6.297 kB / 0.957 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.262e-05/0.7621, allocations: 76.69 kB / 0.9571 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7621, allocations: 0 / 0.9571 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001931/0.7623, allocations: 19.22 kB / 0.9571 GB, free: 4.625 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: 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.0003457/0.7627, allocations: 0.6697 MB / 0.9578 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001216/0.7628, allocations: 66.33 kB / 0.9578 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.7628, allocations: 0 / 0.9578 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.771e-05/0.7629, allocations: 39.91 kB / 0.9579 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.678e-05/0.763, allocations: 0 / 0.9579 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003126/0.7633, allocations: 184.3 kB / 0.958 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001031/0.7634, allocations: 0.6846 MB / 0.9587 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.995e-05/0.7635, allocations: 38.53 kB / 0.9587 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.023e-05/0.7635, allocations: 20.77 kB / 0.9588 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.7635, allocations: 0 / 0.9588 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01061/0.7741, allocations: 1.323 MB / 0.9601 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001236/0.7743, allocations: 199.9 kB / 0.9602 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.48/2.254, allocations: 0 / 0.9602 GB, free: 2.184 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat does not exist to compare? outputFormat=mat