Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Digital.Examples.NXFER.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Digital.Examples.NXFER") translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Digital.Examples.NXFER") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008362/0.008362, allocations: 101 kB / 15.73 MB, free: 6.043 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.001372/0.001372, allocations: 188.3 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.839/1.839, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002721/0.002721, allocations: 51.58 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1586/0.1613, allocations: 46.62 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.003981/0.1654, allocations: 1.49 MB / 374.7 MB, free: 15.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002594/0.168, allocations: 0.8976 MB / 375.6 MB, free: 14.92 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000101/0.1681, allocations: 0 / 375.6 MB, free: 14.92 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001321/0.1683, allocations: 7.875 kB / 375.6 MB, free: 14.91 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001356/0.1684, allocations: 19.86 kB / 375.6 MB, free: 14.89 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003931/0.1688, allocations: 51.88 kB / 375.6 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000333/0.1692, allocations: 139.7 kB / 375.8 MB, free: 14.7 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001482/0.1694, allocations: 24.23 kB / 375.8 MB, free: 14.68 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008661/0.1702, allocations: 0.5771 MB / 376.4 MB, free: 14.1 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001899/0.1704, allocations: 71.7 kB / 376.4 MB, free: 14.03 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.617e-05/0.1705, allocations: 8 kB / 376.5 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.63e-05/0.1705, allocations: 12 kB / 376.5 MB, free: 14.01 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002187/0.1708, allocations: 67.73 kB / 376.5 MB, free: 13.94 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001674/0.1709, allocations: 115.1 kB / 376.6 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006149/0.1716, allocations: 382.6 kB / 377 MB, free: 13.45 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.1716, allocations: 4 kB / 377 MB, free: 13.45 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1716, allocations: 0 / 377 MB, free: 13.45 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.966e-05/0.1716, allocations: 0 / 377 MB, free: 13.45 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001463/0.1731, allocations: 0.7111 MB / 377.7 MB, free: 12.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.1732, allocations: 8.031 kB / 377.7 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001331/0.1733, allocations: 40.47 kB / 377.8 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004239/0.1737, allocations: 266.3 kB / 378 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.771e-05/0.1738, allocations: 8.375 kB / 378 MB, free: 12.31 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.194e-05/0.1738, allocations: 8.375 kB / 378.1 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003754/0.1742, allocations: 133.9 kB / 378.2 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.1742, allocations: 3.984 kB / 378.2 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.108e-05/0.1742, allocations: 8 kB / 378.2 MB, free: 12.15 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.1743, allocations: 3.938 kB / 378.2 MB, free: 12.15 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001641/0.1744, allocations: 59.91 kB / 378.3 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009084/0.1754, allocations: 472.4 kB / 378.7 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002012/0.1756, allocations: 98.53 kB / 378.8 MB, free: 11.47 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001598/0.1757, allocations: 88.89 kB / 378.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.158e-06/0.1758, allocations: 0 / 378.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004289/0.1762, allocations: 210.6 kB / 379.1 MB, free: 11.15 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.443e-06/0.1762, allocations: 0 / 379.1 MB, free: 11.15 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008653/0.1771, allocations: 468 kB / 379.6 MB, free: 10.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001149/0.1772, allocations: 170.2 kB / 379.7 MB, free: 10.46 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007704/0.178, allocations: 0.5207 MB / 380.3 MB, free: 9.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.24e-05/0.178, allocations: 29.7 kB / 380.3 MB, free: 9.895 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.992e-05/0.1781, allocations: 97.12 kB / 380.4 MB, free: 9.797 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.166e-05/0.1782, allocations: 23.66 kB / 380.4 MB, free: 9.773 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001446/0.1783, allocations: 89.41 kB / 380.5 MB, free: 9.68 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.1785, allocations: 326.8 kB / 380.8 MB, free: 9.352 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001298/0.1786, allocations: 55.97 kB / 380.9 MB, free: 9.297 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001353/0.1787, allocations: 73.62 kB / 380.9 MB, free: 9.219 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003752/0.1791, allocations: 343.3 kB / 381.3 MB, free: 8.828 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.1791, allocations: 0 / 381.3 MB, free: 8.828 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005816/0.1797, allocations: 400.3 kB / 381.7 MB, free: 8.406 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.59e-05/0.1798, allocations: 123.9 kB / 381.8 MB, free: 8.262 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.1798, allocations: 0 / 381.8 MB, free: 8.262 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.1799, allocations: 0 / 381.8 MB, free: 8.262 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.722e-05/0.1799, allocations: 0 / 381.8 MB, free: 8.262 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.1799, allocations: 4 kB / 381.8 MB, free: 8.258 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001496/0.1801, allocations: 16.02 kB / 381.8 MB, free: 8.242 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.654e-05/0.1802, allocations: 59.94 kB / 381.9 MB, free: 8.184 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.x,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.yy,nXFERGATE.nextstate,x_table.y,e_table.y,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * 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 0.0003872/0.1806, allocations: 382.7 kB / 382.2 MB, free: 7.773 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.6e-05/0.1806, allocations: 35.53 kB / 382.3 MB, free: 7.738 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001147/0.1807, allocations: 71.12 kB / 382.3 MB, free: 7.668 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.1808, allocations: 0 / 382.3 MB, free: 7.668 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1808, allocations: 0 / 382.3 MB, free: 7.668 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.1808, allocations: 0 / 382.3 MB, free: 7.668 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/0.1818, allocations: 0.8213 MB / 383.2 MB, free: 6.766 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1818, allocations: 3.938 kB / 383.2 MB, free: 6.762 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.081e-06/0.1819, allocations: 0 / 383.2 MB, free: 6.762 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.1819, allocations: 0 / 383.2 MB, free: 6.762 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.192e-05/0.1819, allocations: 19.92 kB / 383.2 MB, free: 6.742 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.1819, allocations: 0 / 383.2 MB, free: 6.742 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.1819, allocations: 3.938 kB / 383.2 MB, free: 6.738 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006905/0.1826, allocations: 0.5335 MB / 383.7 MB, free: 6.164 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003542/0.183, allocations: 256.4 kB / 384 MB, free: 5.895 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.098e-05/0.1831, allocations: 11.94 kB / 384 MB, free: 5.883 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/0.1832, allocations: 12 kB / 384 MB, free: 5.871 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001631/0.1834, allocations: 27.91 kB / 384 MB, free: 5.844 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.686e-05/0.1835, allocations: 63.92 kB / 384.1 MB, free: 5.781 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005208/0.184, allocations: 386.9 kB / 384.5 MB, free: 5.402 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.184, allocations: 0 / 384.5 MB, free: 5.402 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003051/0.1843, allocations: 40 kB / 384.5 MB, free: 5.363 MB / 318.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: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nXFERGATE.yy,nXFERGATE.nextstate,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nXFERGATE.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * 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.0002035/0.1845, allocations: 119.1 kB / 384.6 MB, free: 5.238 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005962/0.1851, allocations: 441.5 kB / 385 MB, free: 4.758 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.1851, allocations: 0 / 385 MB, free: 4.758 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003638/0.1855, allocations: 373.6 kB / 385.4 MB, free: 4.344 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00063/0.1861, allocations: 113.1 kB / 385.5 MB, free: 4.234 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001196/0.1873, allocations: 0.6614 MB / 386.2 MB, free: 3.547 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005362/0.1879, allocations: 0.806 MB / 387 MB, free: 2.711 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.792e-05/0.188, allocations: 4.672 kB / 387 MB, free: 2.707 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.46e-05/0.188, allocations: 11.44 kB / 387 MB, free: 2.695 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.188, allocations: 0 / 387 MB, free: 2.695 MB / 318.1 MB Notification: Performance of Templates: time 0.009277/0.1973, allocations: 4.671 MB / 391.7 MB, free: 13.92 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Digital.Examples.NXFER.makefile (rm -f Modelica_3.1_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Digital.Examples.NXFER.sim & ./Modelica_3.1_Modelica.Electrical.Digital.Examples.NXFER -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1)