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.004632/0.004632, allocations: 101.8 kB / 15.73 MB, free: 5.992 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.001045/0.001045, allocations: 198.8 kB / 16.68 MB, free: 5.918 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.251/1.251, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002008/0.002008, allocations: 294.3 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9231/0.9231, allocations: 169.3 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001722/0.001722, allocations: 91.86 kB / 0.681 GB, free: 7.469 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4095/0.4112, allocations: 86.98 MB / 0.7659 GB, free: 3.867 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.002538/0.4138, allocations: 1.525 MB / 0.7674 GB, free: 2.328 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0003671/0.4141, allocations: 128.5 kB / 0.7675 GB, free: 2.199 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.908e-05/0.4142, allocations: 4 kB / 0.7675 GB, free: 2.195 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.985e-05/0.4142, allocations: 7.922 kB / 0.7675 GB, free: 2.188 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.682e-05/0.4143, allocations: 7.938 kB / 0.7675 GB, free: 2.18 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002677/0.4146, allocations: 27.91 kB / 0.7676 GB, free: 2.152 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.449e-05/0.4147, allocations: 35.91 kB / 0.7676 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 8.655e-05/0.4148, allocations: 14.81 kB / 0.7676 GB, free: 2.105 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.705e-05/0.4148, allocations: 15.92 kB / 0.7676 GB, free: 2.09 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.329e-05/0.4148, allocations: 35.84 kB / 0.7677 GB, free: 2.055 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.256e-05/0.4149, allocations: 3.938 kB / 0.7677 GB, free: 2.051 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.885e-05/0.4149, allocations: 23.98 kB / 0.7677 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.447e-05/0.415, allocations: 4 kB / 0.7677 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.015e-05/0.415, allocations: 15.92 kB / 0.7677 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001121/0.4151, allocations: 43.81 kB / 0.7678 GB, free: 1.965 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.4151, allocations: 0 / 0.7678 GB, free: 1.965 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.283e-06/0.4151, allocations: 0 / 0.7678 GB, free: 1.965 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.4151, allocations: 0 / 0.7678 GB, free: 1.965 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.0004415/0.4156, allocations: 363.4 kB / 0.7681 GB, free: 1.559 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.4156, allocations: 8.031 kB / 0.7681 GB, free: 1.551 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.316e-05/0.4157, allocations: 34.75 kB / 0.7681 GB, free: 1.508 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.536e-05/0.4157, allocations: 4.844 kB / 0.7681 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001125/0.4158, allocations: 168.4 kB / 0.7683 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.4158, allocations: 4.375 kB / 0.7683 GB, free: 1.297 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.919e-06/0.4158, allocations: 4.375 kB / 0.7683 GB, free: 1.293 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001776/0.416, allocations: 62.17 kB / 0.7684 GB, free: 1.227 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.416, allocations: 3.938 kB / 0.7684 GB, free: 1.223 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.052e-05/0.4161, allocations: 8 kB / 0.7684 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.4161, allocations: 0 / 0.7684 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001747/0.4162, allocations: 43.95 kB / 0.7684 GB, free: 1.172 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003899/0.4166, allocations: 284.7 kB / 0.7687 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002974/0.417, allocations: 62.47 kB / 0.7688 GB, free: 0.7734 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.741e-05/0.4171, allocations: 28.91 kB / 0.7688 GB, free: 0.7422 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002559/0.4173, allocations: 393.5 kB / 0.7692 GB, free: 272 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.975e-05/0.4173, allocations: 34.56 kB / 0.7692 GB, free: 228 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.4173, allocations: 0 / 0.7692 GB, free: 228 kB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0003532/0.4177, allocations: 93.62 kB / 0.7693 GB, free: 128 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.319e-05/0.4178, allocations: 59.34 kB / 0.7693 GB, free: 56 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.709e-05/0.4178, allocations: 109.8 kB / 0.7694 GB, free: 15.94 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.236e-05/0.4179, allocations: 25.7 kB / 0.7695 GB, free: 15.91 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.04e-05/0.4179, allocations: 88.08 kB / 0.7696 GB, free: 15.82 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.72e-05/0.4179, allocations: 11.83 kB / 0.7696 GB, free: 15.8 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.344e-05/0.418, allocations: 17.72 kB / 0.7696 GB, free: 15.78 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.4181, allocations: 318.8 kB / 0.7699 GB, free: 15.46 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.942e-05/0.4182, allocations: 23.97 kB / 0.7699 GB, free: 15.44 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.317e-05/0.4183, allocations: 19.98 kB / 0.7699 GB, free: 15.42 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001532/0.4184, allocations: 49.09 kB / 0.77 GB, free: 15.37 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.4184, allocations: 0 / 0.77 GB, free: 15.37 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001993/0.4186, allocations: 81.48 kB / 0.7701 GB, free: 15.28 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/0.4187, allocations: 4 kB / 0.7701 GB, free: 15.28 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/0.4187, allocations: 4 kB / 0.7701 GB, free: 15.27 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.4187, allocations: 3.938 kB / 0.7701 GB, free: 15.27 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.342e-05/0.4188, allocations: 11.98 kB / 0.7701 GB, free: 15.26 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.057e-06/0.4188, allocations: 0 / 0.7701 GB, free: 15.26 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.602e-05/0.4189, allocations: 11.98 kB / 0.7701 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.49e-06/0.4189, allocations: 0 / 0.7701 GB, free: 15.25 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 6.874e-05/0.4189, allocations: 113.8 kB / 0.7702 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.284e-05/0.419, allocations: 0 / 0.7702 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000233/0.4192, allocations: 89.55 kB / 0.7703 GB, free: 15.03 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/0.4192, allocations: 0 / 0.7703 GB, free: 15.03 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.4192, allocations: 3.938 kB / 0.7703 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.4192, allocations: 3.984 kB / 0.7703 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001502/0.4194, allocations: 169.5 kB / 0.7705 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.4194, allocations: 0 / 0.7705 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.38e-05/0.4195, allocations: 15.98 kB / 0.7705 GB, free: 14.79 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.4195, allocations: 0 / 0.7705 GB, free: 14.79 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.347e-06/0.4195, allocations: 8 kB / 0.7705 GB, free: 14.78 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.4195, allocations: 0 / 0.7705 GB, free: 14.78 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.4195, allocations: 0 / 0.7705 GB, free: 14.78 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002288/0.4198, allocations: 167.5 kB / 0.7706 GB, free: 14.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.288e-05/0.4198, allocations: 81.09 kB / 0.7707 GB, free: 14.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.167e-05/0.4198, allocations: 0 / 0.7707 GB, free: 14.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.276e-05/0.4199, allocations: 12 kB / 0.7707 GB, free: 14.49 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.686e-05/0.42, allocations: 11.98 kB / 0.7707 GB, free: 14.48 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-06/0.42, allocations: 0 / 0.7707 GB, free: 14.48 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.221e-05/0.42, allocations: 91.58 kB / 0.7708 GB, free: 14.39 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.51e-07/0.42, allocations: 7.875 kB / 0.7708 GB, free: 14.38 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002195/0.4202, allocations: 8 kB / 0.7708 GB, free: 14.38 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.0005929/0.4208, allocations: 0.718 MB / 0.7715 GB, free: 13.63 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002065/0.4211, allocations: 39.95 kB / 0.7716 GB, free: 13.59 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.4211, allocations: 0 / 0.7716 GB, free: 13.59 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.196e-05/0.4212, allocations: 31.91 kB / 0.7716 GB, free: 13.56 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.4214, allocations: 10.5 kB / 0.7716 GB, free: 13.55 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001395/0.4229, allocations: 1.292 MB / 0.7729 GB, free: 12.19 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002472/0.4231, allocations: 0.6846 MB / 0.7735 GB, free: 11.48 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.259e-05/0.4232, allocations: 8.203 kB / 0.7736 GB, free: 11.47 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.966e-05/0.4232, allocations: 19.44 kB / 0.7736 GB, free: 11.45 MB / 0.545 GB Notification: Performance of SimCode: time 5.61e-07/0.4232, allocations: 0 / 0.7736 GB, free: 11.45 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01637/0.4396, allocations: 1.703 MB / 0.7752 GB, free: 9.848 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.141/7.581, allocations: 2.688 kB / 0.7752 GB, free: 9.848 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)