Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Digital.Examples.WiredX.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.WiredX,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Digital.Examples.WiredX") translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Digital.Examples.WiredX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008639/0.008639, allocations: 99.56 kB / 15.73 MB, free: 6.059 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.001809/0.001809, allocations: 193.3 kB / 16.67 MB, free: 5.969 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.808/1.808, allocations: 205.1 MB / 222.5 MB, free: 4.5 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.001395/0.001395, allocations: 54.45 kB / 326.5 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1452, allocations: 46.62 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.003415/0.1486, allocations: 1.813 MB / 375 MB, free: 15.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002356/0.151, allocations: 0.9868 MB / 376 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.908e-05/0.1511, allocations: 4 kB / 376 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001734/0.1513, allocations: 15.8 kB / 376 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.305e-05/0.1514, allocations: 43.64 kB / 376 MB, free: 14.44 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003813/0.1518, allocations: 99.83 kB / 376.1 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003974/0.1522, allocations: 315.3 kB / 376.4 MB, free: 14.03 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001745/0.1524, allocations: 61.58 kB / 376.5 MB, free: 13.97 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007933/0.1532, allocations: 0.7174 MB / 377.2 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003006/0.1535, allocations: 139.5 kB / 377.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.125e-05/0.1536, allocations: 24 kB / 377.4 MB, free: 13.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.062e-05/0.1537, allocations: 24 kB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001931/0.1539, allocations: 139.4 kB / 377.5 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002727/0.1542, allocations: 242.2 kB / 377.8 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008423/0.155, allocations: 0.7507 MB / 378.5 MB, free: 11.94 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.155, allocations: 0 / 378.5 MB, free: 11.94 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.007e-06/0.155, allocations: 4 kB / 378.5 MB, free: 11.94 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.155, allocations: 0 / 378.5 MB, free: 11.94 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001429/0.1565, allocations: 1.188 MB / 379.7 MB, free: 10.65 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.1565, allocations: 8.031 kB / 379.7 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001565/0.1567, allocations: 88.45 kB / 379.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004736/0.1572, allocations: 400.9 kB / 380.2 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.058e-05/0.1572, allocations: 12.56 kB / 380.2 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.541e-05/0.1573, allocations: 16.38 kB / 380.2 MB, free: 10.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006023/0.1579, allocations: 254.2 kB / 380.5 MB, free: 9.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.1579, allocations: 3.984 kB / 380.5 MB, free: 9.836 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.488e-05/0.158, allocations: 12 kB / 380.5 MB, free: 9.824 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.158, allocations: 4 kB / 380.5 MB, free: 9.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003865/0.1584, allocations: 132.2 kB / 380.6 MB, free: 9.691 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001202/0.1596, allocations: 0.7349 MB / 381.4 MB, free: 8.906 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003873/0.16, allocations: 206.4 kB / 381.6 MB, free: 8.695 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002969/0.1603, allocations: 180.7 kB / 381.7 MB, free: 8.516 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.1603, allocations: 0 / 381.7 MB, free: 8.516 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006524/0.161, allocations: 385.9 kB / 382.1 MB, free: 8.102 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.463e-06/0.161, allocations: 0 / 382.1 MB, free: 8.102 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.00154/0.1625, allocations: 0.9362 MB / 383 MB, free: 7.109 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001829/0.1627, allocations: 281 kB / 383.3 MB, free: 6.773 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001282/0.164, allocations: 0.953 MB / 384.3 MB, free: 5.812 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.057e-05/0.1641, allocations: 33.7 kB / 384.3 MB, free: 5.773 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.1642, allocations: 134 kB / 384.4 MB, free: 5.641 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.945e-05/0.1643, allocations: 67.52 kB / 384.5 MB, free: 5.574 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000216/0.1645, allocations: 165.3 kB / 384.7 MB, free: 5.406 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.1647, allocations: 338.8 kB / 385 MB, free: 5.066 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002516/0.165, allocations: 124.2 kB / 385.1 MB, free: 4.945 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002927/0.1653, allocations: 161 kB / 385.3 MB, free: 4.777 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007095/0.166, allocations: 0.7068 MB / 386 MB, free: 3.957 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.166, allocations: 3.938 kB / 386 MB, free: 3.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001058/0.1671, allocations: 0.7527 MB / 386.7 MB, free: 3.145 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001765/0.1672, allocations: 241.6 kB / 387 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.1673, allocations: 4 kB / 387 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.107e-05/0.1673, allocations: 4 kB / 387 MB, free: 2.852 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.946e-05/0.1673, allocations: 11.94 kB / 387 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.1674, allocations: 4 kB / 387 MB, free: 2.836 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002432/0.1676, allocations: 32.02 kB / 387 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000144/0.1678, allocations: 108.1 kB / 387.1 MB, free: 2.699 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 34 ($PRE.bUF3S1.inertialDelaySensitive.y,$PRE.bUF3S2.inertialDelaySensitive.y,wiredX.auxiliary[2],wiredX.auxiliary[1],bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.x,$PRE.bUF3S1.inertialDelaySensitive.x,bUF3S1.yy,bUF3S1.nextstate,x_table1.y,e_table1.y,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.x,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.yy,bUF3S2.nextstate,x_table2.y,e_table2.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.wiredX.auxiliary[2],wiredX.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 8 * 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.0006838/0.1685, allocations: 0.6045 MB / 387.7 MB, free: 2.035 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.1686, allocations: 87.41 kB / 387.8 MB, free: 1.949 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002214/0.1688, allocations: 134.9 kB / 388 MB, free: 1.812 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.1688, allocations: 0 / 388 MB, free: 1.812 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.1688, allocations: 0 / 388 MB, free: 1.812 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.1688, allocations: 0 / 388 MB, free: 1.812 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001981/0.1708, allocations: 1.433 MB / 389.4 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.1708, allocations: 4 kB / 389.4 MB, free: 276 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.81e-05/0.1709, allocations: 7.938 kB / 389.4 MB, free: 268 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.1709, allocations: 0 / 389.4 MB, free: 268 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.782e-05/0.1709, allocations: 27.98 kB / 389.4 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.1709, allocations: 0 / 389.4 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.1709, allocations: 0 / 389.4 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001337/0.1723, allocations: 0.9691 MB / 390.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006102/0.1729, allocations: 424.1 kB / 390.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/0.173, allocations: 20 kB / 390.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/0.1732, allocations: 23.98 kB / 390.9 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001811/0.1734, allocations: 59.88 kB / 390.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000137/0.1736, allocations: 107.9 kB / 391 MB, free: 14.56 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000948/0.1745, allocations: 0.6899 MB / 391.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1745, allocations: 4 kB / 391.7 MB, free: 13.87 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003818/0.1749, allocations: 95.94 kB / 391.8 MB, free: 13.78 MB / 334.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: 29 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.y,wiredX.auxiliary[1],wiredX.auxiliary[2]) * Number of discrete states: 27 (e_table2.y,x_table2.y,bUF3S2.yy,bUF3S2.nextstate,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,$whenCondition4,$whenCondition3,bUF3S2.inertialDelaySensitive.x,e_table1.y,x_table1.y,bUF3S1.yy,bUF3S1.nextstate,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S1.inertialDelaySensitive.x,wiredX.auxiliary[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 8 * 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.0002496/0.1752, allocations: 147.2 kB / 391.9 MB, free: 13.62 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001088/0.1763, allocations: 0.8857 MB / 392.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1763, allocations: 0 / 392.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007516/0.1771, allocations: 0.753 MB / 393.6 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001177/0.1782, allocations: 267.6 kB / 393.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002105/0.1804, allocations: 1.292 MB / 395.1 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006794/0.1811, allocations: 0.9442 MB / 396.1 MB, free: 9.23 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002608/0.1813, allocations: 89.34 kB / 396.2 MB, free: 9.141 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.1814, allocations: 51.34 kB / 396.2 MB, free: 9.09 MB / 334.1 MB Notification: Performance of SimCode: time 8.11e-07/0.1814, allocations: 8 kB / 396.2 MB, free: 9.082 MB / 334.1 MB Notification: Performance of Templates: time 0.01519/0.1966, allocations: 9.492 MB / 405.7 MB, free: 15.54 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Digital.Examples.WiredX.makefile (rm -f Modelica_3.1_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Digital.Examples.WiredX.sim & ./Modelica_3.1_Modelica.Electrical.Digital.Examples.WiredX -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1)