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.001327/0.001326, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001152, allocations: 192 kB / 16.53 MB, free: 6.391 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.308/1.308, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002164/0.002164, allocations: 286.9 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9217/0.9217, allocations: 169.3 MB / 0.4982 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001757/0.001757, allocations: 101.1 kB / 0.5953 GB, free: 28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1321, allocations: 86.99 MB / 0.6803 GB, free: 0.582 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.00246/0.1346, allocations: 1.507 MB / 0.6818 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003009/0.1349, allocations: 126.2 kB / 0.6819 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.113e-05/0.135, allocations: 0 / 0.6819 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.476e-05/0.135, allocations: 0 / 0.6819 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.124e-05/0.1351, allocations: 3.938 kB / 0.6819 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001875/0.1353, allocations: 20.52 kB / 0.6819 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.08e-05/0.1353, allocations: 28.52 kB / 0.6819 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.092e-05/0.1354, allocations: 12.88 kB / 0.6819 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.595e-05/0.1355, allocations: 14.41 kB / 0.682 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.959e-05/0.1355, allocations: 11.98 kB / 0.682 GB, free: 14.87 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.273e-05/0.1355, allocations: 4 kB / 0.682 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.433e-05/0.1356, allocations: 15.98 kB / 0.682 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.234e-05/0.1356, allocations: 7.938 kB / 0.682 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.859e-05/0.1356, allocations: 11.94 kB / 0.682 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001029/0.1358, allocations: 45.88 kB / 0.682 GB, free: 14.79 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1358, allocations: 3.938 kB / 0.6821 GB, free: 14.78 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1358, allocations: 0 / 0.6821 GB, free: 14.78 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.1358, allocations: 0 / 0.6821 GB, free: 14.78 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.0003873/0.1362, allocations: 340.2 kB / 0.6824 GB, free: 14.4 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.1362, allocations: 8.031 kB / 0.6824 GB, free: 14.39 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.132e-05/0.1363, allocations: 39.61 kB / 0.6824 GB, free: 14.34 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.387e-05/0.1363, allocations: 4.938 kB / 0.6824 GB, free: 14.34 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.943e-05/0.1364, allocations: 165 kB / 0.6826 GB, free: 14.14 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.881e-05/0.1364, allocations: 8.359 kB / 0.6826 GB, free: 14.13 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.978e-06/0.1364, allocations: 1.688 kB / 0.6826 GB, free: 14.13 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001683/0.1366, allocations: 58.22 kB / 0.6826 GB, free: 14.07 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.1366, allocations: 4.688 kB / 0.6827 GB, free: 14.07 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/0.1366, allocations: 4 kB / 0.6827 GB, free: 14.06 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.1366, allocations: 4 kB / 0.6827 GB, free: 14.06 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000175/0.1368, allocations: 43.89 kB / 0.6827 GB, free: 14.02 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002987/0.1371, allocations: 264.8 kB / 0.683 GB, free: 13.71 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002937/0.1374, allocations: 62.53 kB / 0.683 GB, free: 13.64 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.163e-05/0.1375, allocations: 24.91 kB / 0.683 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001012/0.1376, allocations: 85.09 kB / 0.6831 GB, free: 13.51 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.637e-05/0.1377, allocations: 38.44 kB / 0.6832 GB, free: 13.46 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.1377, allocations: 0 / 0.6832 GB, free: 13.46 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003504/0.138, allocations: 97.62 kB / 0.6833 GB, free: 13.36 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.536e-05/0.1381, allocations: 51.41 kB / 0.6833 GB, free: 13.3 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.677e-05/0.1381, allocations: 101.9 kB / 0.6834 GB, free: 13.19 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.283e-05/0.1381, allocations: 25.7 kB / 0.6834 GB, free: 13.16 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.458e-05/0.1382, allocations: 84.12 kB / 0.6835 GB, free: 13.07 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.419e-05/0.1382, allocations: 7.891 kB / 0.6835 GB, free: 13.06 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.253e-05/0.1382, allocations: 21.66 kB / 0.6835 GB, free: 13.04 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.858e-05/0.1383, allocations: 310.8 kB / 0.6838 GB, free: 12.72 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.638e-05/0.1384, allocations: 27.97 kB / 0.6839 GB, free: 12.7 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.086e-05/0.1385, allocations: 19.98 kB / 0.6839 GB, free: 12.68 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001567/0.1387, allocations: 52.69 kB / 0.6839 GB, free: 12.62 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1387, allocations: 0 / 0.6839 GB, free: 12.62 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001941/0.1389, allocations: 69.66 kB / 0.684 GB, free: 12.55 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/0.1389, allocations: 8 kB / 0.684 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.1389, allocations: 0 / 0.684 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.1389, allocations: 0 / 0.684 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.366e-05/0.139, allocations: 11.98 kB / 0.684 GB, free: 12.53 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.139, allocations: 0 / 0.684 GB, free: 12.53 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.66e-05/0.1391, allocations: 11.89 kB / 0.684 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-06/0.1391, allocations: 8.516 kB / 0.684 GB, free: 12.51 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.301e-05/0.1391, allocations: 114.4 kB / 0.6841 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.466e-05/0.1392, allocations: 8 kB / 0.6841 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002337/0.1394, allocations: 81.12 kB / 0.6842 GB, free: 12.29 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.1394, allocations: 0 / 0.6842 GB, free: 12.29 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.1394, allocations: 0 / 0.6842 GB, free: 12.29 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.1394, allocations: 0 / 0.6842 GB, free: 12.29 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001388/0.1396, allocations: 169.6 kB / 0.6844 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1396, allocations: 0 / 0.6844 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.01e-05/0.1397, allocations: 11.98 kB / 0.6844 GB, free: 12.06 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.1397, allocations: 4 kB / 0.6844 GB, free: 12.06 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-06/0.1397, allocations: 4 kB / 0.6844 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1397, allocations: 0 / 0.6844 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1397, allocations: 0 / 0.6844 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002373/0.1399, allocations: 175.4 kB / 0.6846 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.912e-05/0.14, allocations: 85.02 kB / 0.6846 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.37e-05/0.14, allocations: 4 kB / 0.6847 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.317e-05/0.1401, allocations: 11.98 kB / 0.6847 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.815e-05/0.1401, allocations: 3.984 kB / 0.6847 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.24e-06/0.1401, allocations: 4 kB / 0.6847 GB, free: 11.74 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.965e-05/0.1402, allocations: 79.28 kB / 0.6847 GB, free: 11.66 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1402, allocations: 7.938 kB / 0.6848 GB, free: 11.66 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002124/0.1404, allocations: 7.938 kB / 0.6848 GB, free: 11.65 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.0004753/0.1409, allocations: 0.7124 MB / 0.6855 GB, free: 10.91 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002074/0.1411, allocations: 43.95 kB / 0.6855 GB, free: 10.86 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.1411, allocations: 4 kB / 0.6855 GB, free: 10.86 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.286e-05/0.1412, allocations: 27.97 kB / 0.6855 GB, free: 10.83 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002315/0.1414, allocations: 4 kB / 0.6855 GB, free: 10.83 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003773/0.1418, allocations: 155.1 kB / 0.6857 GB, free: 10.64 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000184/0.142, allocations: 0.6768 MB / 0.6863 GB, free: 9.934 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.799e-05/0.1421, allocations: 3.984 kB / 0.6863 GB, free: 9.93 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.276e-05/0.1421, allocations: 19.44 kB / 0.6864 GB, free: 9.91 MB / 494.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1421, allocations: 0 / 0.6864 GB, free: 9.91 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4803/0.6224, allocations: 1.557 MB / 0.6879 GB, free: 8.422 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.391/8.014, allocations: 14.05 kB / 0.6879 GB, free: 8.414 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)