Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial") translateModel(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.707/0.707, allocations: 131 MB / 146.3 MB, free: 1.309 MB / 106.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009354/0.0009354, allocations: 180.2 kB / 176.4 MB, free: 4.906 MB / 138.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 225.7 MB / 431.9 MB, free: 9.691 MB / 314.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000788/0.0007879, allocations: 99.58 kB / 0.5003 GB, free: 10.79 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000313/0.0003131, allocations: 8 kB / 0.5885 GB, free: 72.85 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1316, allocations: 79.59 MB / 0.6663 GB, free: 9.09 MB / 442.7 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial): time 0.001619/0.1333, allocations: 1.231 MB / 0.6675 GB, free: 7.848 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003645/0.1337, allocations: 188.9 kB / 0.6676 GB, free: 7.645 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.496e-05/0.1337, allocations: 0 / 0.6676 GB, free: 7.645 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 1.874e-05/0.1337, allocations: 7.938 kB / 0.6676 GB, free: 7.637 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 3.917e-05/0.1338, allocations: 0 / 0.6676 GB, free: 7.637 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001695/0.134, allocations: 19.98 kB / 0.6677 GB, free: 7.617 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 5.843e-05/0.134, allocations: 31.91 kB / 0.6677 GB, free: 7.586 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.877e-05/0.1341, allocations: 4 kB / 0.6677 GB, free: 7.582 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.889e-05/0.1342, allocations: 15.92 kB / 0.6677 GB, free: 7.566 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.561e-05/0.1342, allocations: 19.92 kB / 0.6677 GB, free: 7.547 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 1.12e-05/0.1342, allocations: 0 / 0.6677 GB, free: 7.547 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.016e-05/0.1343, allocations: 4 kB / 0.6677 GB, free: 7.543 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 1.662e-05/0.1343, allocations: 11.98 kB / 0.6678 GB, free: 7.531 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 3.985e-05/0.1344, allocations: 37.62 kB / 0.6678 GB, free: 7.488 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 9.788e-05/0.1345, allocations: 27.89 kB / 0.6678 GB, free: 7.461 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.1345, allocations: 0 / 0.6678 GB, free: 7.461 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1345, allocations: 0 / 0.6678 GB, free: 7.461 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.216e-06/0.1345, allocations: 4 kB / 0.6678 GB, free: 7.457 MB / 442.7 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.0003999/0.1349, allocations: 342.6 kB / 0.6681 GB, free: 7.074 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.114e-05/0.1349, allocations: 12.03 kB / 0.6682 GB, free: 7.062 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.654e-05/0.135, allocations: 8.844 kB / 0.6682 GB, free: 7.055 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.1351, allocations: 164.3 kB / 0.6683 GB, free: 6.855 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.339e-05/0.1351, allocations: 384 / 0.6683 GB, free: 6.855 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.397e-05/0.1352, allocations: 12.31 kB / 0.6683 GB, free: 6.844 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001804/0.1353, allocations: 66.22 kB / 0.6684 GB, free: 6.773 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.1354, allocations: 192 / 0.6684 GB, free: 6.773 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.1354, allocations: 7.938 kB / 0.6684 GB, free: 6.766 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.1354, allocations: 0 / 0.6684 GB, free: 6.766 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001899/0.1356, allocations: 51.95 kB / 0.6685 GB, free: 6.715 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003251/0.1359, allocations: 268.9 kB / 0.6687 GB, free: 6.402 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003143/0.1362, allocations: 62.55 kB / 0.6688 GB, free: 6.332 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001233/0.1364, allocations: 36.83 kB / 0.6688 GB, free: 6.293 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000113/0.1365, allocations: 85.05 kB / 0.6689 GB, free: 6.191 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.224e-05/0.1366, allocations: 34.56 kB / 0.6689 GB, free: 6.148 MB / 442.7 MB Notification: Performance of pre-optimization done (n=3): time 1.213e-06/0.1366, allocations: 0 / 0.6689 GB, free: 6.148 MB / 442.7 MB Notification: Performance of matching and sorting (n=3): time 0.0004392/0.137, allocations: 117.5 kB / 0.669 GB, free: 6.027 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.938e-05/0.1371, allocations: 51.41 kB / 0.6691 GB, free: 5.965 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.015e-05/0.1371, allocations: 106 kB / 0.6692 GB, free: 5.852 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.24e-05/0.1372, allocations: 25.7 kB / 0.6692 GB, free: 5.82 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.668e-05/0.1372, allocations: 80.14 kB / 0.6693 GB, free: 5.738 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.584e-05/0.1372, allocations: 7.844 kB / 0.6693 GB, free: 5.73 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-06/0.1372, allocations: 0 / 0.6693 GB, free: 5.73 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.1374, allocations: 322.8 kB / 0.6696 GB, free: 5.406 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.1375, allocations: 23.97 kB / 0.6696 GB, free: 5.383 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.987e-05/0.1376, allocations: 20.17 kB / 0.6696 GB, free: 5.363 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002036/0.1378, allocations: 64.89 kB / 0.6697 GB, free: 5.297 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.1378, allocations: 3.938 kB / 0.6697 GB, free: 5.293 MB / 442.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000244/0.138, allocations: 85.59 kB / 0.6698 GB, free: 5.203 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.1381, allocations: 12 kB / 0.6698 GB, free: 5.191 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.1381, allocations: 0 / 0.6698 GB, free: 5.191 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.1381, allocations: 0 / 0.6698 GB, free: 5.191 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.44e-05/0.1382, allocations: 11.98 kB / 0.6698 GB, free: 5.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.635e-06/0.1382, allocations: 4 kB / 0.6698 GB, free: 5.176 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.747e-05/0.1383, allocations: 7.984 kB / 0.6698 GB, free: 5.168 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.712e-06/0.1383, allocations: 0 / 0.6698 GB, free: 5.168 MB / 442.7 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.956e-05/0.1384, allocations: 117.8 kB / 0.6699 GB, free: 5.043 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.811e-05/0.1384, allocations: 3.906 kB / 0.6699 GB, free: 5.039 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003075/0.1387, allocations: 97.08 kB / 0.67 GB, free: 4.938 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1388, allocations: 0 / 0.67 GB, free: 4.938 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1388, allocations: 4 kB / 0.67 GB, free: 4.934 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.1388, allocations: 0 / 0.67 GB, free: 4.934 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001823/0.139, allocations: 165.6 kB / 0.6702 GB, free: 4.723 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.139, allocations: 0 / 0.6702 GB, free: 4.723 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001194/0.1391, allocations: 15.98 kB / 0.6702 GB, free: 4.707 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.1391, allocations: 0 / 0.6702 GB, free: 4.707 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/0.1391, allocations: 3.938 kB / 0.6702 GB, free: 4.703 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1391, allocations: 3.938 kB / 0.6702 GB, free: 4.699 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1392, allocations: 0 / 0.6702 GB, free: 4.699 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003172/0.1395, allocations: 188.2 kB / 0.6704 GB, free: 4.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.272e-05/0.1395, allocations: 85.05 kB / 0.6705 GB, free: 4.398 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.454e-05/0.1396, allocations: 0 / 0.6705 GB, free: 4.398 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.1397, allocations: 11.98 kB / 0.6705 GB, free: 4.387 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.106e-05/0.1397, allocations: 7.984 kB / 0.6705 GB, free: 4.379 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.019e-06/0.1397, allocations: 0 / 0.6705 GB, free: 4.379 MB / 442.7 MB Notification: Performance of sorting global known variables: time 3.87e-05/0.1398, allocations: 83.28 kB / 0.6706 GB, free: 4.297 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1398, allocations: 0 / 0.6706 GB, free: 4.297 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0002403/0.14, allocations: 8 kB / 0.6706 GB, free: 4.289 MB / 442.7 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.0001402/0.1402, allocations: 111.2 kB / 0.6707 GB, free: 4.172 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0002241/0.1404, allocations: 60.23 kB / 0.6707 GB, free: 4.113 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1404, allocations: 0 / 0.6707 GB, free: 4.113 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001006/0.1405, allocations: 36 kB / 0.6708 GB, free: 4.078 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002414/0.1408, allocations: 7.938 kB / 0.6708 GB, free: 4.07 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002639/0.141, allocations: 124.6 kB / 0.6709 GB, free: 3.922 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002442/0.1413, allocations: 0.677 MB / 0.6716 GB, free: 3.219 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 3.183e-05/0.1413, allocations: 4 kB / 0.6716 GB, free: 3.215 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.44e-05/0.1414, allocations: 15.42 kB / 0.6716 GB, free: 3.199 MB / 442.7 MB Notification: Performance of SimCode: time 3.1e-07/0.1414, allocations: 4 kB / 0.6716 GB, free: 3.195 MB / 442.7 MB Notification: Performance of Templates: time 0.002473/0.1439, allocations: 0.6165 MB / 0.6722 GB, free: 2.582 MB / 442.7 MB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)