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: translateModel(IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial") translateModel(IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 121.6 kB / 17.09 MB, free: 6.012 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.001256/0.001255, allocations: 192.7 kB / 18.02 MB, free: 5.094 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.368/1.368, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7399/0.7399, allocations: 115.3 MB / 407.2 MB, free: 6.156 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 65.67 kB / 0.5583 GB, free: 32.41 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1466/0.1479, allocations: 76.18 MB / 0.6327 GB, free: 4.41 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.002637/0.1506, allocations: 1.506 MB / 0.6342 GB, free: 2.891 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003505/0.151, allocations: 116.5 kB / 0.6343 GB, free: 2.773 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.621e-05/0.151, allocations: 0 / 0.6343 GB, free: 2.773 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 2.618e-05/0.1511, allocations: 7.938 kB / 0.6343 GB, free: 2.766 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 4.593e-05/0.1511, allocations: 3.938 kB / 0.6343 GB, free: 2.762 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002146/0.1513, allocations: 23.97 kB / 0.6344 GB, free: 2.738 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 7.265e-05/0.1514, allocations: 31.86 kB / 0.6344 GB, free: 2.707 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.1515, allocations: 15.98 kB / 0.6344 GB, free: 2.691 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.364e-05/0.1516, allocations: 12 kB / 0.6344 GB, free: 2.68 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.756e-05/0.1516, allocations: 19.91 kB / 0.6344 GB, free: 2.66 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.25e-05/0.1517, allocations: 0 / 0.6344 GB, free: 2.66 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.848e-05/0.1517, allocations: 11.98 kB / 0.6344 GB, free: 2.648 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 1.35e-05/0.1517, allocations: 4 kB / 0.6344 GB, free: 2.645 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 2.701e-05/0.1518, allocations: 19.86 kB / 0.6345 GB, free: 2.625 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001087/0.1519, allocations: 31.89 kB / 0.6345 GB, free: 2.594 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.778e-06/0.1519, allocations: 0 / 0.6345 GB, free: 2.594 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.075e-06/0.1519, allocations: 4 kB / 0.6345 GB, free: 2.59 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.1519, allocations: 4 kB / 0.6345 GB, free: 2.586 MB / 478.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.0004636/0.1524, allocations: 355.3 kB / 0.6348 GB, free: 2.188 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.1524, allocations: 8.031 kB / 0.6348 GB, free: 2.18 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.966e-05/0.1525, allocations: 0.9375 kB / 0.6348 GB, free: 2.18 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001094/0.1526, allocations: 164.4 kB / 0.635 GB, free: 1.98 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.3e-05/0.1526, allocations: 4.375 kB / 0.635 GB, free: 1.977 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.249e-05/0.1526, allocations: 384 / 0.635 GB, free: 1.977 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001879/0.1528, allocations: 62.22 kB / 0.6351 GB, free: 1.91 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.1528, allocations: 192 / 0.6351 GB, free: 1.91 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.1528, allocations: 7.938 kB / 0.6351 GB, free: 1.902 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.1529, allocations: 4 kB / 0.6351 GB, free: 1.898 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.153, allocations: 35.95 kB / 0.6351 GB, free: 1.863 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000345/0.1534, allocations: 260.8 kB / 0.6354 GB, free: 1.559 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003048/0.1537, allocations: 70.45 kB / 0.6354 GB, free: 1.48 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.483e-05/0.1538, allocations: 24.91 kB / 0.6355 GB, free: 1.453 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00011/0.1539, allocations: 85.09 kB / 0.6355 GB, free: 1.352 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.731e-05/0.1539, allocations: 30.56 kB / 0.6356 GB, free: 1.312 MB / 478.1 MB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.154, allocations: 0 / 0.6356 GB, free: 1.312 MB / 478.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003599/0.1543, allocations: 101.6 kB / 0.6357 GB, free: 1.207 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.152e-05/0.1544, allocations: 51.41 kB / 0.6357 GB, free: 1.145 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.606e-05/0.1544, allocations: 101.9 kB / 0.6358 GB, free: 1.035 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/0.1544, allocations: 25.7 kB / 0.6358 GB, free: 1.004 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.034e-05/0.1545, allocations: 80.14 kB / 0.6359 GB, free: 0.9219 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.962e-05/0.1545, allocations: 15.83 kB / 0.6359 GB, free: 0.9062 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.065e-05/0.1546, allocations: 13.72 kB / 0.6359 GB, free: 0.8867 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.1547, allocations: 318.8 kB / 0.6362 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.636e-05/0.1548, allocations: 19.97 kB / 0.6363 GB, free: 0.5469 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.522e-05/0.1548, allocations: 19.98 kB / 0.6363 GB, free: 0.5273 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001599/0.155, allocations: 48.75 kB / 0.6363 GB, free: 488 kB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.155, allocations: 3.938 kB / 0.6363 GB, free: 484 kB / 478.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001958/0.1552, allocations: 77.56 kB / 0.6364 GB, free: 400 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.1552, allocations: 4 kB / 0.6364 GB, free: 396 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.1552, allocations: 0 / 0.6364 GB, free: 396 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.1553, allocations: 4 kB / 0.6364 GB, free: 392 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.633e-05/0.1553, allocations: 11.92 kB / 0.6364 GB, free: 380 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.1554, allocations: 8 kB / 0.6364 GB, free: 372 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.75e-05/0.1554, allocations: 11.98 kB / 0.6364 GB, free: 360 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.37e-06/0.1554, allocations: 0 / 0.6364 GB, free: 360 kB / 478.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 7.584e-05/0.1555, allocations: 117.7 kB / 0.6366 GB, free: 232 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.646e-05/0.1555, allocations: 4 kB / 0.6366 GB, free: 228 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002473/0.1558, allocations: 85.08 kB / 0.6366 GB, free: 132 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-06/0.1558, allocations: 0 / 0.6366 GB, free: 132 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1558, allocations: 0 / 0.6366 GB, free: 132 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.1558, allocations: 0 / 0.6366 GB, free: 132 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001687/0.156, allocations: 166.2 kB / 0.6368 GB, free: 15.92 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.156, allocations: 0 / 0.6368 GB, free: 15.92 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.402e-05/0.1561, allocations: 15.98 kB / 0.6368 GB, free: 15.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.1561, allocations: 0 / 0.6368 GB, free: 15.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.312e-06/0.1561, allocations: 0 / 0.6368 GB, free: 15.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.1561, allocations: 0 / 0.6368 GB, free: 15.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1561, allocations: 4 kB / 0.6368 GB, free: 15.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002521/0.1564, allocations: 175.4 kB / 0.637 GB, free: 15.71 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.716e-05/0.1564, allocations: 85.02 kB / 0.6371 GB, free: 15.61 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.324e-05/0.1564, allocations: 8 kB / 0.6371 GB, free: 15.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.489e-05/0.1565, allocations: 7.984 kB / 0.6371 GB, free: 15.59 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.205e-05/0.1566, allocations: 3.984 kB / 0.6371 GB, free: 15.59 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.917e-06/0.1566, allocations: 4 kB / 0.6371 GB, free: 15.59 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.064e-05/0.1566, allocations: 83.28 kB / 0.6372 GB, free: 15.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1567, allocations: 0 / 0.6372 GB, free: 15.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002193/0.1569, allocations: 8 kB / 0.6372 GB, free: 15.5 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.000138/0.157, allocations: 103.2 kB / 0.6373 GB, free: 15.38 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002285/0.1573, allocations: 47.94 kB / 0.6373 GB, free: 15.34 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1573, allocations: 4 kB / 0.6373 GB, free: 15.33 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.816e-05/0.1574, allocations: 23.92 kB / 0.6373 GB, free: 15.31 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002609/0.1576, allocations: 7.938 kB / 0.6374 GB, free: 15.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002808/0.1579, allocations: 135.3 kB / 0.6375 GB, free: 15.14 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002319/0.1582, allocations: 0.6807 MB / 0.6381 GB, free: 14.43 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.944e-05/0.1582, allocations: 15.36 kB / 0.6382 GB, free: 14.41 MB / 494.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1582, allocations: 0 / 0.6382 GB, free: 14.41 MB / 494.1 MB Notification: Performance of Templates: time 0.002099/0.1603, allocations: 0.7343 MB / 0.6389 GB, free: 13.68 MB / 494.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.makefile (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 & ./IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)