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.001088/0.001088, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001116/0.001116, allocations: 194.8 kB / 16.25 MB, free: 6.621 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.256/1.256, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002051/0.002051, allocations: 286.9 kB / 290.3 MB, free: 2.129 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8926/0.8926, allocations: 169.2 MB / 0.4978 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001842/0.001842, allocations: 91.64 kB / 0.5948 GB, free: 28.08 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1345, allocations: 86.98 MB / 0.6797 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.002471/0.137, allocations: 1.575 MB / 0.6813 GB, free: 15.38 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003107/0.1373, allocations: 132.5 kB / 0.6814 GB, free: 15.24 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.107e-05/0.1374, allocations: 7.875 kB / 0.6814 GB, free: 15.23 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.123e-05/0.1374, allocations: 3.984 kB / 0.6814 GB, free: 15.23 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.673e-05/0.1375, allocations: 2.062 kB / 0.6814 GB, free: 15.23 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002312/0.1377, allocations: 27.92 kB / 0.6814 GB, free: 15.2 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.839e-05/0.1378, allocations: 35.92 kB / 0.6815 GB, free: 15.17 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.631e-05/0.1378, allocations: 20.88 kB / 0.6815 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.372e-05/0.1379, allocations: 13.66 kB / 0.6815 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.339e-05/0.1379, allocations: 15.92 kB / 0.6815 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.362e-05/0.1379, allocations: 4 kB / 0.6815 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.747e-05/0.138, allocations: 19.98 kB / 0.6815 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.246e-05/0.138, allocations: 8.859 kB / 0.6816 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.432e-05/0.138, allocations: 19.86 kB / 0.6816 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001004/0.1381, allocations: 51.81 kB / 0.6816 GB, free: 15.02 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.1382, allocations: 0.7188 kB / 0.6816 GB, free: 15.02 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1382, allocations: 1.312 kB / 0.6816 GB, free: 15.02 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.1382, allocations: 0 / 0.6816 GB, free: 15.02 MB / 494.1 MB 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.0003853/0.1386, allocations: 340.2 kB / 0.6819 GB, free: 14.64 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.1386, allocations: 12.03 kB / 0.682 GB, free: 14.62 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.204e-05/0.1386, allocations: 35.38 kB / 0.682 GB, free: 14.58 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.638e-05/0.1387, allocations: 12.92 kB / 0.682 GB, free: 14.57 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.193e-05/0.1388, allocations: 172.2 kB / 0.6822 GB, free: 14.36 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/0.1388, allocations: 4.375 kB / 0.6822 GB, free: 14.36 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.708e-06/0.1388, allocations: 384 / 0.6822 GB, free: 14.36 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001759/0.139, allocations: 74.12 kB / 0.6822 GB, free: 14.28 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.139, allocations: 3.938 kB / 0.6822 GB, free: 14.28 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.139, allocations: 8 kB / 0.6823 GB, free: 14.27 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.496e-06/0.139, allocations: 0 / 0.6823 GB, free: 14.27 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000166/0.1392, allocations: 43.95 kB / 0.6823 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003152/0.1395, allocations: 268.8 kB / 0.6826 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002908/0.1398, allocations: 62.98 kB / 0.6826 GB, free: 13.84 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.139e-05/0.1399, allocations: 24.91 kB / 0.6826 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00023/0.1402, allocations: 413.5 kB / 0.683 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.601e-05/0.1402, allocations: 30.56 kB / 0.6831 GB, free: 13.28 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.1402, allocations: 0 / 0.6831 GB, free: 13.28 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003298/0.1405, allocations: 93.55 kB / 0.6832 GB, free: 13.18 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.955e-05/0.1406, allocations: 55.34 kB / 0.6832 GB, free: 13.12 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.449e-05/0.1406, allocations: 113.8 kB / 0.6833 GB, free: 13 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.641e-05/0.1407, allocations: 25.7 kB / 0.6833 GB, free: 12.96 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.973e-05/0.1407, allocations: 92.12 kB / 0.6834 GB, free: 12.87 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.567e-05/0.1407, allocations: 3.906 kB / 0.6834 GB, free: 12.87 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.967e-05/0.1408, allocations: 13.72 kB / 0.6834 GB, free: 12.85 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.64e-05/0.1408, allocations: 322.8 kB / 0.6837 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.204e-05/0.1409, allocations: 23.92 kB / 0.6838 GB, free: 12.5 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.159e-05/0.141, allocations: 19.98 kB / 0.6838 GB, free: 12.48 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001457/0.1412, allocations: 44.81 kB / 0.6838 GB, free: 12.43 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1412, allocations: 0 / 0.6838 GB, free: 12.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001924/0.1414, allocations: 81.83 kB / 0.6839 GB, free: 12.35 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.1414, allocations: 10.33 kB / 0.6839 GB, free: 12.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.1414, allocations: 7.984 kB / 0.6839 GB, free: 12.33 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.307e-06/0.1414, allocations: 0 / 0.6839 GB, free: 12.33 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.377e-05/0.1415, allocations: 15.98 kB / 0.6839 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.497e-06/0.1415, allocations: 0 / 0.6839 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.305e-05/0.1416, allocations: 4 kB / 0.6839 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.98e-06/0.1416, allocations: 0 / 0.6839 GB, free: 12.31 MB / 494.1 MB 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.385e-05/0.1416, allocations: 122.4 kB / 0.6841 GB, free: 12.18 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.207e-05/0.1417, allocations: 0 / 0.6841 GB, free: 12.18 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002288/0.1419, allocations: 85.55 kB / 0.6841 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.1419, allocations: 0 / 0.6841 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.1419, allocations: 3.938 kB / 0.6842 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.1419, allocations: 0 / 0.6842 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001418/0.1421, allocations: 173.5 kB / 0.6843 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.1421, allocations: 0 / 0.6843 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.301e-05/0.1422, allocations: 11.98 kB / 0.6843 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.1422, allocations: 0 / 0.6843 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.186e-06/0.1422, allocations: 0 / 0.6843 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.1422, allocations: 7.938 kB / 0.6843 GB, free: 11.85 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1422, allocations: 0 / 0.6843 GB, free: 11.85 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002232/0.1424, allocations: 183.3 kB / 0.6845 GB, free: 11.65 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.785e-05/0.1425, allocations: 81.11 kB / 0.6846 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.153e-05/0.1425, allocations: 0 / 0.6846 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.962e-05/0.1426, allocations: 7.984 kB / 0.6846 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.883e-05/0.1426, allocations: 4 kB / 0.6846 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.837e-06/0.1426, allocations: 4 kB / 0.6846 GB, free: 11.54 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.23e-05/0.1427, allocations: 91.33 kB / 0.6847 GB, free: 11.45 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1427, allocations: 7.938 kB / 0.6847 GB, free: 11.44 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000206/0.1429, allocations: 8 kB / 0.6847 GB, free: 11.43 MB / 494.1 MB 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.0004688/0.1433, allocations: 0.7162 MB / 0.6854 GB, free: 10.69 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002012/0.1436, allocations: 47.95 kB / 0.6854 GB, free: 10.64 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.1436, allocations: 3.938 kB / 0.6855 GB, free: 10.64 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.86e-05/0.1437, allocations: 27.97 kB / 0.6855 GB, free: 10.61 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002301/0.1439, allocations: 3.938 kB / 0.6855 GB, free: 10.61 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001194/0.1451, allocations: 1.284 MB / 0.6867 GB, free: 9.246 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001848/0.1453, allocations: 0.6807 MB / 0.6874 GB, free: 8.539 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.081e-05/0.1453, allocations: 11.98 kB / 0.6874 GB, free: 8.527 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.386e-05/0.1454, allocations: 19.44 kB / 0.6874 GB, free: 8.508 MB / 494.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1454, allocations: 0 / 0.6874 GB, free: 8.508 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.598/1.744, allocations: 1.528 MB / 0.6889 GB, free: 7.105 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002078/1.744, allocations: 212.8 kB / 0.6891 GB, free: 6.852 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.457/4.201, allocations: 0 / 0.6891 GB, free: 6.852 MB / 494.1 MB (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)