Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.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.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",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.001134/0.001134, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001138/0.001138, allocations: 191.6 kB / 16.25 MB, free: 6.629 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.273/1.273, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001923/0.001922, allocations: 286.9 kB / 290.3 MB, free: 2.152 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8808/0.8808, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 94.89 kB / 0.5948 GB, free: 28.29 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.135, allocations: 86.97 MB / 0.6797 GB, free: 0.9609 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002328/0.1374, allocations: 1.57 MB / 0.6813 GB, free: 15.39 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002716/0.1377, allocations: 122.2 kB / 0.6814 GB, free: 15.27 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.451e-05/0.1377, allocations: 0 / 0.6814 GB, free: 15.27 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.964e-05/0.1378, allocations: 0 / 0.6814 GB, free: 15.27 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.871e-05/0.1378, allocations: 3.938 kB / 0.6814 GB, free: 15.27 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001772/0.138, allocations: 20.86 kB / 0.6814 GB, free: 15.25 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.906e-05/0.1381, allocations: 35.91 kB / 0.6814 GB, free: 15.21 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.524e-05/0.1382, allocations: 13.39 kB / 0.6814 GB, free: 15.2 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.205e-05/0.1382, allocations: 12.88 kB / 0.6815 GB, free: 15.19 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.749e-05/0.1383, allocations: 11.98 kB / 0.6815 GB, free: 15.18 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.176e-05/0.1383, allocations: 4 kB / 0.6815 GB, free: 15.17 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.447e-05/0.1383, allocations: 16.41 kB / 0.6815 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.272e-05/0.1383, allocations: 15.97 kB / 0.6815 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.996e-05/0.1384, allocations: 7.938 kB / 0.6815 GB, free: 15.13 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.64e-05/0.1385, allocations: 43.83 kB / 0.6816 GB, free: 15.09 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.1385, allocations: 0 / 0.6816 GB, free: 15.09 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1385, allocations: 0 / 0.6816 GB, free: 15.09 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.937e-06/0.1385, allocations: 0 / 0.6816 GB, free: 15.09 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003735/0.1389, allocations: 343.5 kB / 0.6819 GB, free: 14.7 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.072e-05/0.1389, allocations: 8.031 kB / 0.6819 GB, free: 14.7 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.515e-05/0.1389, allocations: 30.75 kB / 0.6819 GB, free: 14.66 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.17e-05/0.139, allocations: 8.938 kB / 0.6819 GB, free: 14.65 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.751e-05/0.139, allocations: 164.4 kB / 0.6821 GB, free: 14.45 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.612e-05/0.1391, allocations: 384 / 0.6821 GB, free: 14.45 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.004e-05/0.1391, allocations: 8.312 kB / 0.6821 GB, free: 14.44 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001545/0.1392, allocations: 58.23 kB / 0.6822 GB, free: 14.38 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.782e-06/0.1393, allocations: 3.938 kB / 0.6822 GB, free: 14.38 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.183e-06/0.1393, allocations: 0 / 0.6822 GB, free: 14.38 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.1393, allocations: 0 / 0.6822 GB, free: 14.38 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001629/0.1394, allocations: 43.95 kB / 0.6822 GB, free: 14.33 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002955/0.1397, allocations: 276.7 kB / 0.6825 GB, free: 14.01 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002828/0.14, allocations: 66.45 kB / 0.6825 GB, free: 13.94 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.5e-05/0.1401, allocations: 24.91 kB / 0.6825 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.203e-05/0.1402, allocations: 81.11 kB / 0.6826 GB, free: 13.81 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.883e-05/0.1403, allocations: 38.55 kB / 0.6827 GB, free: 13.77 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.1403, allocations: 0 / 0.6827 GB, free: 13.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003175/0.1406, allocations: 85.64 kB / 0.6827 GB, free: 13.68 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.476e-05/0.1406, allocations: 59.34 kB / 0.6828 GB, free: 13.61 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.161e-05/0.1407, allocations: 101.8 kB / 0.6829 GB, free: 13.5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.249e-05/0.1407, allocations: 25.7 kB / 0.6829 GB, free: 13.46 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.868e-05/0.1407, allocations: 88.14 kB / 0.683 GB, free: 13.38 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.168e-05/0.1408, allocations: 7.844 kB / 0.683 GB, free: 13.37 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.368e-05/0.1408, allocations: 21.7 kB / 0.683 GB, free: 13.34 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.086e-05/0.1409, allocations: 310.8 kB / 0.6833 GB, free: 13.03 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.061e-05/0.141, allocations: 19.98 kB / 0.6833 GB, free: 13.01 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.223e-05/0.1411, allocations: 19.97 kB / 0.6834 GB, free: 12.99 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001505/0.1412, allocations: 56.75 kB / 0.6834 GB, free: 12.93 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1412, allocations: 0 / 0.6834 GB, free: 12.93 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001935/0.1414, allocations: 77.59 kB / 0.6835 GB, free: 12.85 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.1414, allocations: 4 kB / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.695e-06/0.1414, allocations: 0 / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.185e-06/0.1415, allocations: 0 / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.384e-05/0.1415, allocations: 15.98 kB / 0.6835 GB, free: 12.83 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.546e-06/0.1415, allocations: 3.938 kB / 0.6835 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.453e-05/0.1416, allocations: 11.89 kB / 0.6835 GB, free: 12.81 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.18e-06/0.1416, allocations: 0 / 0.6835 GB, free: 12.81 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 (rea2Int.y,fac.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.51e-05/0.1417, allocations: 117.8 kB / 0.6836 GB, free: 12.69 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.168e-05/0.1417, allocations: 0 / 0.6836 GB, free: 12.69 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002278/0.1419, allocations: 85.14 kB / 0.6837 GB, free: 12.59 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.142, allocations: 0 / 0.6837 GB, free: 12.59 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.145e-06/0.142, allocations: 3.938 kB / 0.6837 GB, free: 12.59 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.142, allocations: 0 / 0.6837 GB, free: 12.59 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001371/0.1421, allocations: 169.6 kB / 0.6839 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1421, allocations: 0.5625 kB / 0.6839 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.876e-05/0.1422, allocations: 7.984 kB / 0.6839 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1422, allocations: 4 kB / 0.6839 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.532e-06/0.1422, allocations: 0 / 0.6839 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.1422, allocations: 0 / 0.6839 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1422, allocations: 4 kB / 0.6839 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002247/0.1424, allocations: 175.9 kB / 0.6841 GB, free: 12.17 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.776e-05/0.1425, allocations: 81.02 kB / 0.6842 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.112e-05/0.1425, allocations: 0 / 0.6842 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.224e-05/0.1426, allocations: 7.984 kB / 0.6842 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.686e-05/0.1426, allocations: 8 kB / 0.6842 GB, free: 12.06 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.948e-06/0.1426, allocations: 4 kB / 0.6842 GB, free: 12.05 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.609e-05/0.1427, allocations: 83.27 kB / 0.6842 GB, free: 11.97 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.172e-06/0.1427, allocations: 3.938 kB / 0.6843 GB, free: 11.97 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002054/0.1429, allocations: 11.94 kB / 0.6843 GB, free: 11.96 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 (fac.y,rea2Int.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.000462/0.1434, allocations: 0.7092 MB / 0.685 GB, free: 11.22 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001914/0.1436, allocations: 43.95 kB / 0.685 GB, free: 11.18 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-06/0.1436, allocations: 7.938 kB / 0.685 GB, free: 11.17 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.358e-05/0.1437, allocations: 23.97 kB / 0.685 GB, free: 11.14 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002207/0.1439, allocations: 4 kB / 0.685 GB, free: 11.14 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003482/0.1442, allocations: 151.2 kB / 0.6852 GB, free: 10.95 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001951/0.1445, allocations: 0.6807 MB / 0.6858 GB, free: 10.25 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.638e-05/0.1445, allocations: 0 / 0.6858 GB, free: 10.25 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.438e-05/0.1445, allocations: 19.42 kB / 0.6859 GB, free: 10.23 MB / 494.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1445, allocations: 0 / 0.6859 GB, free: 10.23 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.571/1.715, allocations: 1.429 MB / 0.6873 GB, free: 8.91 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002852/1.716, allocations: 199.4 kB / 0.6874 GB, free: 8.656 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.539/4.254, allocations: 3.938 kB / 0.6874 GB, free: 8.652 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1)