Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_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.0007083/0.0007084, allocations: 92.7 kB / 15.7 MB, free: 464 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.00077/0.00077, allocations: 170.4 kB / 16.57 MB, free: 6.402 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.168/1.168, allocations: 223.2 MB / 240.6 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6073/0.6073, allocations: 113.7 MB / 405.4 MB, free: 4.59 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003225/0.0003225, allocations: 12.78 kB / 493.1 MB, free: 8.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.1302, allocations: 77.12 MB / 0.5569 GB, free: 11.63 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.001443/0.1317, allocations: 1.21 MB / 0.5581 GB, free: 10.41 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.000308/0.132, allocations: 112.6 kB / 0.5582 GB, free: 10.3 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.916e-05/0.132, allocations: 0 / 0.5582 GB, free: 10.3 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.791e-05/0.1321, allocations: 3.938 kB / 0.5582 GB, free: 10.3 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 3.588e-05/0.1321, allocations: 0 / 0.5582 GB, free: 10.3 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001776/0.1323, allocations: 15.98 kB / 0.5582 GB, free: 10.28 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 6.097e-05/0.1324, allocations: 27.91 kB / 0.5582 GB, free: 10.25 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.529e-05/0.1325, allocations: 11.98 kB / 0.5582 GB, free: 10.24 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.427e-05/0.1325, allocations: 11.94 kB / 0.5583 GB, free: 10.23 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.427e-05/0.1326, allocations: 15.92 kB / 0.5583 GB, free: 10.21 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.234e-05/0.1326, allocations: 0 / 0.5583 GB, free: 10.21 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.854e-05/0.1326, allocations: 19.92 kB / 0.5583 GB, free: 10.2 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.218e-06/0.1327, allocations: 3.984 kB / 0.5583 GB, free: 10.19 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.362e-05/0.1327, allocations: 29.7 kB / 0.5583 GB, free: 10.16 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 6.836e-05/0.1328, allocations: 15.97 kB / 0.5583 GB, free: 10.14 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.1328, allocations: 0 / 0.5583 GB, free: 10.14 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1328, allocations: 4 kB / 0.5583 GB, free: 10.14 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.526e-06/0.1328, allocations: 0 / 0.5583 GB, free: 10.14 MB / 430.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.0003889/0.1332, allocations: 347.5 kB / 0.5587 GB, free: 9.75 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.1332, allocations: 12.02 kB / 0.5587 GB, free: 9.738 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.017e-05/0.1333, allocations: 30.56 kB / 0.5587 GB, free: 9.699 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.144e-05/0.1333, allocations: 4 kB / 0.5587 GB, free: 9.695 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.1334, allocations: 167.1 kB / 0.5589 GB, free: 9.492 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.1334, allocations: 7.938 kB / 0.5589 GB, free: 9.484 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.789e-06/0.1334, allocations: 4 kB / 0.5589 GB, free: 9.48 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001723/0.1336, allocations: 65.61 kB / 0.5589 GB, free: 9.41 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.1336, allocations: 3.938 kB / 0.559 GB, free: 9.406 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.1337, allocations: 4 kB / 0.559 GB, free: 9.402 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.1337, allocations: 0 / 0.559 GB, free: 9.402 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001714/0.1338, allocations: 51.95 kB / 0.559 GB, free: 9.352 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003406/0.1342, allocations: 257 kB / 0.5592 GB, free: 9.051 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002736/0.1345, allocations: 70.42 kB / 0.5593 GB, free: 8.973 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.583e-05/0.1346, allocations: 32.91 kB / 0.5593 GB, free: 8.938 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.175e-05/0.1347, allocations: 81.09 kB / 0.5594 GB, free: 8.84 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/0.1347, allocations: 38.56 kB / 0.5595 GB, free: 8.793 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.1347, allocations: 4 kB / 0.5595 GB, free: 8.789 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003365/0.1351, allocations: 109.5 kB / 0.5596 GB, free: 8.676 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.682e-05/0.1351, allocations: 51.41 kB / 0.5596 GB, free: 8.613 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.627e-05/0.1352, allocations: 105.9 kB / 0.5597 GB, free: 8.5 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.099e-05/0.1352, allocations: 25.7 kB / 0.5597 GB, free: 8.469 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.581e-05/0.1352, allocations: 88.06 kB / 0.5598 GB, free: 8.379 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.48e-05/0.1352, allocations: 11.84 kB / 0.5598 GB, free: 8.367 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.998e-06/0.1352, allocations: 0 / 0.5598 GB, free: 8.367 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.409e-05/0.1353, allocations: 314.8 kB / 0.5601 GB, free: 8.051 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.215e-05/0.1354, allocations: 27.98 kB / 0.5602 GB, free: 8.023 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.979e-05/0.1355, allocations: 23.97 kB / 0.5602 GB, free: 8 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.422e-05/0.1356, allocations: 19.98 kB / 0.5602 GB, free: 7.98 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.1356, allocations: 0 / 0.5602 GB, free: 7.98 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001912/0.1358, allocations: 93.59 kB / 0.5603 GB, free: 7.883 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.1358, allocations: 8 kB / 0.5603 GB, free: 7.875 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.1358, allocations: 3.938 kB / 0.5603 GB, free: 7.871 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.1359, allocations: 0 / 0.5603 GB, free: 7.871 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.254e-05/0.1359, allocations: 11.98 kB / 0.5603 GB, free: 7.859 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.1359, allocations: 4 kB / 0.5603 GB, free: 7.855 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.981e-05/0.136, allocations: 8.516 kB / 0.5603 GB, free: 7.848 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-06/0.136, allocations: 0 / 0.5603 GB, free: 7.848 MB / 430.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 (fac.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.661e-05/0.1361, allocations: 117.8 kB / 0.5604 GB, free: 7.723 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.467e-05/0.1361, allocations: 7.859 kB / 0.5605 GB, free: 7.715 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002336/0.1364, allocations: 97.12 kB / 0.5605 GB, free: 7.609 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.1364, allocations: 0 / 0.5605 GB, free: 7.609 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.1364, allocations: 4 kB / 0.5605 GB, free: 7.605 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.1364, allocations: 0 / 0.5605 GB, free: 7.605 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001531/0.1365, allocations: 169.6 kB / 0.5607 GB, free: 7.391 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1365, allocations: 0 / 0.5607 GB, free: 7.391 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.891e-05/0.1366, allocations: 19.92 kB / 0.5607 GB, free: 7.371 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.1366, allocations: 7.953 kB / 0.5607 GB, free: 7.363 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.643e-06/0.1366, allocations: 0 / 0.5607 GB, free: 7.363 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.1367, allocations: 0 / 0.5607 GB, free: 7.363 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1367, allocations: 3.938 kB / 0.5607 GB, free: 7.359 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002338/0.1369, allocations: 175.5 kB / 0.5609 GB, free: 7.172 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.444e-05/0.1369, allocations: 85.09 kB / 0.561 GB, free: 7.07 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.743e-05/0.137, allocations: 3.953 kB / 0.561 GB, free: 7.066 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.374e-05/0.137, allocations: 4 kB / 0.561 GB, free: 7.062 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.465e-05/0.1371, allocations: 11.98 kB / 0.561 GB, free: 7.051 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-06/0.1371, allocations: 0 / 0.561 GB, free: 7.051 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.237e-05/0.1371, allocations: 87.2 kB / 0.5611 GB, free: 6.965 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1371, allocations: 0 / 0.5611 GB, free: 6.965 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000208/0.1374, allocations: 12 kB / 0.5611 GB, free: 6.953 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000507/0.1379, allocations: 0.7208 MB / 0.5618 GB, free: 6.203 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001878/0.1381, allocations: 55.95 kB / 0.5619 GB, free: 6.148 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.1381, allocations: 0 / 0.5619 GB, free: 6.148 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 8.685e-05/0.1382, allocations: 35.92 kB / 0.5619 GB, free: 6.113 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002253/0.1384, allocations: 7.516 kB / 0.5619 GB, free: 6.109 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003577/0.1388, allocations: 149.7 kB / 0.562 GB, free: 5.93 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002202/0.139, allocations: 0.6809 MB / 0.5627 GB, free: 5.223 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.157e-05/0.1391, allocations: 8 kB / 0.5627 GB, free: 5.215 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.185e-05/0.1391, allocations: 7.438 kB / 0.5627 GB, free: 5.207 MB / 430.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1391, allocations: 0 / 0.5627 GB, free: 5.207 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009769/0.1489, allocations: 1.283 MB / 0.564 GB, free: 4.059 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001342/0.149, allocations: 173.5 kB / 0.5641 GB, free: 3.816 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.432/1.581, allocations: 7.938 kB / 0.5642 GB, free: 3.809 MB / 430.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: