Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_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.004409/0.004409, allocations: 100.3 kB / 15.73 MB, free: 6 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.001033/0.001033, allocations: 195.1 kB / 16.67 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002173/0.002173, allocations: 286.9 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9011/0.9011, allocations: 169.2 MB / 0.4983 GB, free: 4.41 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001782/0.001782, allocations: 99.83 kB / 0.681 GB, free: 7.465 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4047/0.4065, allocations: 86.98 MB / 0.7659 GB, free: 3.895 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.002585/0.4092, allocations: 1.521 MB / 0.7674 GB, free: 2.359 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0004027/0.4096, allocations: 140.5 kB / 0.7675 GB, free: 2.219 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.289e-05/0.4096, allocations: 0 / 0.7675 GB, free: 2.219 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.497e-05/0.4097, allocations: 3.938 kB / 0.7675 GB, free: 2.215 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.796e-05/0.4098, allocations: 3.938 kB / 0.7675 GB, free: 2.211 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003551/0.4101, allocations: 31.89 kB / 0.7676 GB, free: 2.18 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 8.262e-05/0.4102, allocations: 35.92 kB / 0.7676 GB, free: 2.145 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.4103, allocations: 22.8 kB / 0.7676 GB, free: 2.125 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.254e-05/0.4104, allocations: 11.94 kB / 0.7676 GB, free: 2.113 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.71e-05/0.4104, allocations: 23.89 kB / 0.7677 GB, free: 2.09 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.579e-05/0.4104, allocations: 7.938 kB / 0.7677 GB, free: 2.082 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 8.208e-05/0.4105, allocations: 23.98 kB / 0.7677 GB, free: 2.059 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.569e-05/0.4105, allocations: 4 kB / 0.7677 GB, free: 2.055 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.041e-05/0.4106, allocations: 11.94 kB / 0.7677 GB, free: 2.043 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001333/0.4107, allocations: 51.8 kB / 0.7678 GB, free: 1.992 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.4107, allocations: 0 / 0.7678 GB, free: 1.992 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.064e-06/0.4107, allocations: 7.938 kB / 0.7678 GB, free: 1.984 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.066e-06/0.4108, allocations: 0 / 0.7678 GB, free: 1.984 MB / 0.5294 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.0005396/0.4113, allocations: 351.4 kB / 0.7681 GB, free: 1.59 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.4113, allocations: 8.031 kB / 0.7681 GB, free: 1.582 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.509e-05/0.4114, allocations: 38.73 kB / 0.7681 GB, free: 1.535 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.155e-05/0.4114, allocations: 8.844 kB / 0.7681 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001155/0.4115, allocations: 160.4 kB / 0.7683 GB, free: 1.332 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.494e-05/0.4116, allocations: 8.375 kB / 0.7683 GB, free: 1.324 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.417e-06/0.4116, allocations: 384 / 0.7683 GB, free: 1.324 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001958/0.4118, allocations: 74.16 kB / 0.7684 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.4118, allocations: 3.938 kB / 0.7684 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.308e-06/0.4118, allocations: 0 / 0.7684 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.4118, allocations: 0 / 0.7684 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001799/0.412, allocations: 43.95 kB / 0.7684 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003961/0.4124, allocations: 284.7 kB / 0.7687 GB, free: 0.8711 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003085/0.4127, allocations: 62.53 kB / 0.7688 GB, free: 0.8008 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.683e-05/0.4128, allocations: 24.83 kB / 0.7688 GB, free: 0.7734 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002797/0.4131, allocations: 397.5 kB / 0.7692 GB, free: 300 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.263e-05/0.4132, allocations: 34.56 kB / 0.7692 GB, free: 256 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 3.016e-06/0.4132, allocations: 8 kB / 0.7692 GB, free: 248 kB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0003641/0.4135, allocations: 89.62 kB / 0.7693 GB, free: 152 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.896e-05/0.4136, allocations: 55.34 kB / 0.7693 GB, free: 84 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.162e-05/0.4137, allocations: 113.8 kB / 0.7694 GB, free: 15.96 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.57e-05/0.4137, allocations: 25.7 kB / 0.7695 GB, free: 15.93 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.925e-05/0.4138, allocations: 88.08 kB / 0.7696 GB, free: 15.84 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.37e-05/0.4138, allocations: 11.84 kB / 0.7696 GB, free: 15.83 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.447e-05/0.4138, allocations: 17.72 kB / 0.7696 GB, free: 15.8 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001168/0.4139, allocations: 322.8 kB / 0.7699 GB, free: 15.48 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.816e-05/0.414, allocations: 15.98 kB / 0.7699 GB, free: 15.46 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.988e-05/0.4141, allocations: 23.97 kB / 0.7699 GB, free: 15.44 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001569/0.4143, allocations: 40.83 kB / 0.77 GB, free: 15.4 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4143, allocations: 4 kB / 0.77 GB, free: 15.39 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002103/0.4145, allocations: 85.48 kB / 0.7701 GB, free: 15.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.4145, allocations: 8 kB / 0.7701 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.4146, allocations: 0 / 0.7701 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.4146, allocations: 0 / 0.7701 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.852e-05/0.4147, allocations: 11.98 kB / 0.7701 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.4147, allocations: 0 / 0.7701 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.345e-05/0.4147, allocations: 4 kB / 0.7701 GB, free: 15.28 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.4147, allocations: 7.984 kB / 0.7701 GB, free: 15.27 MB / 0.545 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 (falFac.y,rea2Int.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.293e-05/0.4148, allocations: 118.1 kB / 0.7702 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.552e-05/0.4149, allocations: 0 / 0.7702 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002651/0.4151, allocations: 89.47 kB / 0.7703 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.4152, allocations: 0 / 0.7703 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.4152, allocations: 3.938 kB / 0.7703 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.4152, allocations: 0 / 0.7703 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001677/0.4153, allocations: 177.5 kB / 0.7705 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.4154, allocations: 0 / 0.7705 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.224e-05/0.4154, allocations: 11.98 kB / 0.7705 GB, free: 14.81 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.4154, allocations: 0 / 0.7705 GB, free: 14.81 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.793e-06/0.4154, allocations: 0 / 0.7705 GB, free: 14.81 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.4155, allocations: 0 / 0.7705 GB, free: 14.81 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.4155, allocations: 4 kB / 0.7705 GB, free: 14.81 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002485/0.4157, allocations: 175.4 kB / 0.7706 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.435e-05/0.4158, allocations: 77.11 kB / 0.7707 GB, free: 14.53 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.649e-05/0.4158, allocations: 8 kB / 0.7707 GB, free: 14.52 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.192e-05/0.4159, allocations: 7.984 kB / 0.7707 GB, free: 14.51 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.903e-05/0.4159, allocations: 7.984 kB / 0.7707 GB, free: 14.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.998e-06/0.4159, allocations: 3.938 kB / 0.7707 GB, free: 14.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.753e-05/0.416, allocations: 87.28 kB / 0.7708 GB, free: 14.41 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.51e-07/0.416, allocations: 3.938 kB / 0.7708 GB, free: 14.41 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002389/0.4162, allocations: 8 kB / 0.7708 GB, free: 14.4 MB / 0.545 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005376/0.4168, allocations: 0.7141 MB / 0.7715 GB, free: 13.66 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002119/0.417, allocations: 47.95 kB / 0.7716 GB, free: 13.62 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.417, allocations: 4 kB / 0.7716 GB, free: 13.61 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.346e-05/0.4171, allocations: 31.91 kB / 0.7716 GB, free: 13.58 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002975/0.4174, allocations: 0 / 0.7716 GB, free: 13.58 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00132/0.4187, allocations: 1.291 MB / 0.7729 GB, free: 12.21 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002111/0.419, allocations: 0.6846 MB / 0.7735 GB, free: 11.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.045e-05/0.419, allocations: 4 kB / 0.7735 GB, free: 11.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.044e-05/0.419, allocations: 15.44 kB / 0.7736 GB, free: 11.48 MB / 0.545 GB Notification: Performance of SimCode: time 2.3e-07/0.4191, allocations: 0 / 0.7736 GB, free: 11.48 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01655/0.4356, allocations: 1.732 MB / 0.7753 GB, free: 9.855 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.042/7.477, allocations: 6.453 kB / 0.7753 GB, free: 9.852 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)