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.005289/0.005289, allocations: 97.56 kB / 15.73 MB, free: 6.055 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.001267/0.001267, allocations: 195.3 kB / 16.68 MB, free: 5.977 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002399/0.002399, allocations: 279 kB / 290.8 MB, free: 1.887 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9761/0.9761, allocations: 169.3 MB / 0.4983 GB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002418/0.002418, allocations: 90.55 kB / 0.681 GB, free: 15.95 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1462, allocations: 86.98 MB / 0.7659 GB, free: 8.891 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.002263/0.1485, allocations: 1.534 MB / 0.7674 GB, free: 7.344 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.000269/0.1488, allocations: 128.4 kB / 0.7675 GB, free: 7.215 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.232e-05/0.1488, allocations: 0 / 0.7675 GB, free: 7.215 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.862e-05/0.1488, allocations: 3.938 kB / 0.7675 GB, free: 7.211 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.365e-05/0.1488, allocations: 7.938 kB / 0.7676 GB, free: 7.203 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001583/0.149, allocations: 35.89 kB / 0.7676 GB, free: 7.168 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 4.951e-05/0.1491, allocations: 31.92 kB / 0.7676 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.494e-05/0.1491, allocations: 15.98 kB / 0.7676 GB, free: 7.121 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.167e-05/0.1492, allocations: 15.92 kB / 0.7676 GB, free: 7.105 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 3.702e-05/0.1492, allocations: 27.91 kB / 0.7677 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.985e-06/0.1492, allocations: 0 / 0.7677 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 5.416e-05/0.1493, allocations: 23.98 kB / 0.7677 GB, free: 7.055 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.608e-06/0.1493, allocations: 4 kB / 0.7677 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.279e-05/0.1493, allocations: 23.86 kB / 0.7677 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 8.44e-05/0.1494, allocations: 44.09 kB / 0.7678 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 1.793e-06/0.1494, allocations: 0 / 0.7678 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of FrontEnd: time 7.02e-07/0.1494, allocations: 0 / 0.7678 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.624e-06/0.1494, allocations: 0 / 0.7678 GB, free: 6.984 MB / 0.5606 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.0003693/0.1498, allocations: 355.4 kB / 0.7681 GB, free: 6.586 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 2.455e-05/0.1498, allocations: 11.97 kB / 0.7681 GB, free: 6.574 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.017e-05/0.1499, allocations: 34.75 kB / 0.7681 GB, free: 6.531 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.74e-05/0.1499, allocations: 4.891 kB / 0.7682 GB, free: 6.527 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001008/0.15, allocations: 176.3 kB / 0.7683 GB, free: 6.316 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.15, allocations: 4.375 kB / 0.7683 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.588e-06/0.15, allocations: 4.375 kB / 0.7683 GB, free: 6.309 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001573/0.1502, allocations: 66.22 kB / 0.7684 GB, free: 6.238 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.282e-06/0.1502, allocations: 3.938 kB / 0.7684 GB, free: 6.234 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.741e-06/0.1502, allocations: 0 / 0.7684 GB, free: 6.234 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.254e-06/0.1502, allocations: 0 / 0.7684 GB, free: 6.234 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001618/0.1504, allocations: 43.95 kB / 0.7684 GB, free: 6.191 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003033/0.1507, allocations: 292.7 kB / 0.7687 GB, free: 5.855 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002543/0.151, allocations: 54.55 kB / 0.7688 GB, free: 5.793 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.491e-05/0.1511, allocations: 32.83 kB / 0.7688 GB, free: 5.758 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002608/0.1513, allocations: 393.5 kB / 0.7692 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.753e-05/0.1513, allocations: 38.56 kB / 0.7692 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 9.91e-07/0.1514, allocations: 0 / 0.7692 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0003222/0.1517, allocations: 101.7 kB / 0.7693 GB, free: 5.129 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.096e-05/0.1517, allocations: 51.41 kB / 0.7694 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.538e-05/0.1518, allocations: 113.8 kB / 0.7695 GB, free: 4.945 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.672e-05/0.1518, allocations: 25.7 kB / 0.7695 GB, free: 4.914 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.022e-05/0.1519, allocations: 88.14 kB / 0.7696 GB, free: 4.824 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.889e-06/0.1519, allocations: 3.953 kB / 0.7696 GB, free: 4.82 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.216e-05/0.1519, allocations: 21.7 kB / 0.7696 GB, free: 4.793 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.152, allocations: 318.8 kB / 0.7699 GB, free: 4.473 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.294e-05/0.1521, allocations: 19.97 kB / 0.7699 GB, free: 4.453 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.321e-05/0.1522, allocations: 19.98 kB / 0.7699 GB, free: 4.434 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001508/0.1524, allocations: 52.81 kB / 0.77 GB, free: 4.379 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.1524, allocations: 0 / 0.77 GB, free: 4.379 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002045/0.1526, allocations: 73.59 kB / 0.7701 GB, free: 4.301 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.217e-06/0.1526, allocations: 4 kB / 0.7701 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.294e-06/0.1526, allocations: 0 / 0.7701 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.863e-06/0.1526, allocations: 0 / 0.7701 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.489e-05/0.1527, allocations: 15.98 kB / 0.7701 GB, free: 4.281 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.046e-06/0.1527, allocations: 4 kB / 0.7701 GB, free: 4.277 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.053e-05/0.1528, allocations: 15.88 kB / 0.7701 GB, free: 4.262 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-06/0.1528, allocations: 4 kB / 0.7701 GB, free: 4.258 MB / 0.5606 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 7.449e-05/0.1529, allocations: 114.4 kB / 0.7702 GB, free: 4.137 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.343e-05/0.1529, allocations: 0 / 0.7702 GB, free: 4.137 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002264/0.1531, allocations: 89.48 kB / 0.7703 GB, free: 4.039 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.1531, allocations: 4 kB / 0.7703 GB, free: 4.035 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.973e-06/0.1531, allocations: 0 / 0.7703 GB, free: 4.035 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-06/0.1531, allocations: 3.938 kB / 0.7703 GB, free: 4.031 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001829/0.1533, allocations: 169.6 kB / 0.7705 GB, free: 3.816 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.1533, allocations: 0 / 0.7705 GB, free: 3.816 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.051e-05/0.1534, allocations: 11.98 kB / 0.7705 GB, free: 3.805 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.1534, allocations: 0 / 0.7705 GB, free: 3.805 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-06/0.1534, allocations: 11.92 kB / 0.7705 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.1534, allocations: 0 / 0.7705 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1534, allocations: 320 / 0.7705 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002421/0.1537, allocations: 179.3 kB / 0.7707 GB, free: 3.602 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.212e-05/0.1537, allocations: 77.11 kB / 0.7707 GB, free: 3.508 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.217e-05/0.1538, allocations: 3.984 kB / 0.7707 GB, free: 3.504 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.651e-05/0.1539, allocations: 4 kB / 0.7707 GB, free: 3.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.085e-05/0.1539, allocations: 11.98 kB / 0.7708 GB, free: 3.488 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.557e-06/0.1539, allocations: 0 / 0.7708 GB, free: 3.488 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.264e-05/0.154, allocations: 95.27 kB / 0.7708 GB, free: 3.395 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.154, allocations: 0 / 0.7708 GB, free: 3.395 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002901/0.1543, allocations: 11.98 kB / 0.7709 GB, free: 3.383 MB / 0.5606 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.0005296/0.1548, allocations: 0.7165 MB / 0.7716 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001845/0.155, allocations: 47.89 kB / 0.7716 GB, free: 2.594 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.052e-06/0.155, allocations: 0 / 0.7716 GB, free: 2.594 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.965e-05/0.1551, allocations: 23.98 kB / 0.7716 GB, free: 2.57 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002739/0.1554, allocations: 4 kB / 0.7716 GB, free: 2.566 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001333/0.1567, allocations: 1.288 MB / 0.7729 GB, free: 1.199 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002645/0.157, allocations: 0.6807 MB / 0.7736 GB, free: 0.4922 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.416e-05/0.157, allocations: 7.938 kB / 0.7736 GB, free: 496 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.134e-05/0.1571, allocations: 15.52 kB / 0.7736 GB, free: 480 kB / 0.5606 GB Notification: Performance of SimCode: time 2.5e-07/0.1571, allocations: 3.938 kB / 0.7736 GB, free: 476 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8818/1.039, allocations: 1.701 MB / 0.7752 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/13.9, allocations: 6.391 kB / 0.7752 GB, free: 14.33 MB / 0.5606 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)