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.0007736/0.0007736, allocations: 91.12 kB / 15.06 MB, free: 1.078 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.0008643/0.0008643, allocations: 172.7 kB / 15.95 MB, free: 192 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.354/1.354, allocations: 223.3 MB / 240 MB, free: 5.312 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.319/2.319, allocations: 390.4 MB / 0.6655 GB, free: 2.883 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000379/0.000379, allocations: 15.98 kB / 0.8149 GB, free: 14.08 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7323/0.7327, allocations: 142.3 MB / 0.9539 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.0006271/0.7334, allocations: 309.6 kB / 0.9542 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002529/0.7336, allocations: 48.98 kB / 0.9542 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.589e-05/0.7337, allocations: 0 / 0.9542 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.281e-05/0.7337, allocations: 0 / 0.9542 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.292e-06/0.7337, allocations: 3.938 kB / 0.9542 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002341/0.734, allocations: 12.98 kB / 0.9542 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.868e-05/0.734, allocations: 29.66 kB / 0.9542 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.063e-05/0.7341, allocations: 5.562 kB / 0.9543 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.824e-05/0.7341, allocations: 6.5 kB / 0.9543 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.118e-05/0.7342, allocations: 16.47 kB / 0.9543 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.229e-05/0.7342, allocations: 1.594 kB / 0.9543 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.049e-05/0.7343, allocations: 16.23 kB / 0.9543 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.245e-05/0.7343, allocations: 8.547 kB / 0.9543 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.711e-05/0.7343, allocations: 32.58 kB / 0.9543 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.064e-05/0.7344, allocations: 24.22 kB / 0.9544 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.7344, allocations: 0 / 0.9544 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.323e-06/0.7344, allocations: 0 / 0.9544 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.028e-06/0.7344, allocations: 1.688 kB / 0.9544 GB, free: 7.707 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.0002105/0.7346, allocations: 332.2 kB / 0.9547 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.7347, allocations: 8.312 kB / 0.9547 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.078e-05/0.7347, allocations: 37.25 kB / 0.9547 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.409e-05/0.7347, allocations: 5.359 kB / 0.9547 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.782e-05/0.7348, allocations: 167.2 kB / 0.9549 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.7348, allocations: 9.5 kB / 0.9549 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.235e-05/0.7348, allocations: 6.906 kB / 0.9549 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001285/0.735, allocations: 58.83 kB / 0.955 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.735, allocations: 4 kB / 0.955 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.238e-06/0.735, allocations: 1.25 kB / 0.955 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.735, allocations: 5.266 kB / 0.955 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001339/0.7351, allocations: 105.5 kB / 0.9551 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001284/0.7353, allocations: 174.4 kB / 0.9552 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.637e-05/0.7354, allocations: 73.62 kB / 0.9553 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.226e-05/0.7354, allocations: 36.5 kB / 0.9553 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000224/0.7357, allocations: 400.7 kB / 0.9557 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.698e-05/0.7357, allocations: 43.73 kB / 0.9558 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.223e-06/0.7357, allocations: 0 / 0.9558 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0002238/0.7359, allocations: 109 kB / 0.9559 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.917e-05/0.736, allocations: 52.78 kB / 0.9559 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.169e-05/0.736, allocations: 95.33 kB / 0.956 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.775e-06/0.736, allocations: 25.7 kB / 0.956 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.108e-05/0.736, allocations: 81.3 kB / 0.9561 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.762e-05/0.736, allocations: 20.03 kB / 0.9561 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.621e-06/0.7361, allocations: 4 kB / 0.9561 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.222e-05/0.7361, allocations: 332.7 kB / 0.9564 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.491e-05/0.7361, allocations: 18.95 kB / 0.9565 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.13e-05/0.7362, allocations: 21.11 kB / 0.9565 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.938e-05/0.7362, allocations: 30.61 kB / 0.9565 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.7362, allocations: 1.062 kB / 0.9565 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001216/0.7364, allocations: 84.33 kB / 0.9566 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.7364, allocations: 4.969 kB / 0.9566 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.7364, allocations: 11.92 kB / 0.9566 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.7364, allocations: 1.406 kB / 0.9566 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.906e-05/0.7365, allocations: 26.61 kB / 0.9566 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.7365, allocations: 1.688 kB / 0.9566 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.309e-05/0.7366, allocations: 7.844 kB / 0.9566 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.956e-06/0.7366, allocations: 7.844 kB / 0.9567 GB, free: 5.363 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 9.869e-05/0.7367, allocations: 124.5 kB / 0.9568 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.097e-05/0.7367, allocations: 2.5 kB / 0.9568 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001955/0.7369, allocations: 122.1 kB / 0.9569 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.7369, allocations: 1.406 kB / 0.9569 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.7369, allocations: 0 / 0.9569 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.7369, allocations: 5.391 kB / 0.9569 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.708e-05/0.737, allocations: 190.7 kB / 0.9571 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.737, allocations: 0 / 0.9571 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.73e-05/0.7371, allocations: 18.33 kB / 0.9571 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.7371, allocations: 1.344 kB / 0.9571 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.667e-06/0.7371, allocations: 1.5 kB / 0.9571 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.7371, allocations: 5.375 kB / 0.9571 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.7371, allocations: 4 kB / 0.9571 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001285/0.7373, allocations: 121.3 kB / 0.9572 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.566e-05/0.7373, allocations: 79.45 kB / 0.9573 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.323e-05/0.7373, allocations: 1.219 kB / 0.9573 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.522e-05/0.7373, allocations: 0 / 0.9573 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.962e-05/0.7374, allocations: 16.45 kB / 0.9573 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/0.7374, allocations: 2.969 kB / 0.9573 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.092e-05/0.7374, allocations: 79.28 kB / 0.9574 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.4e-07/0.7374, allocations: 1.406 kB / 0.9574 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002254/0.7376, allocations: 10.09 kB / 0.9574 GB, free: 4.633 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.0003423/0.738, allocations: 0.6754 MB / 0.9581 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001261/0.7381, allocations: 64.47 kB / 0.9581 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.7381, allocations: 1.062 kB / 0.9581 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.125e-05/0.7382, allocations: 38.23 kB / 0.9582 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001342/0.7383, allocations: 11.67 kB / 0.9582 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003459/0.7387, allocations: 177.2 kB / 0.9583 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001007/0.7388, allocations: 0.6819 MB / 0.959 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.887e-05/0.7389, allocations: 43.69 kB / 0.9591 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.266e-05/0.7389, allocations: 15.75 kB / 0.9591 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of SimCode: time 3e-07/0.7389, allocations: 1.062 kB / 0.9591 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01282/0.7517, allocations: 1.339 MB / 0.9604 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001446/0.7519, allocations: 196.5 kB / 0.9606 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.6/2.352, allocations: 4 kB / 0.9606 GB, free: 2.18 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