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.008638/0.008638, allocations: 103.8 kB / 15.73 MB, free: 6.051 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.001588/0.001588, allocations: 191.5 kB / 16.67 MB, free: 5.984 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.795/1.795, allocations: 205.1 MB / 222.5 MB, free: 4.531 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.001332/0.001332, allocations: 57.83 kB / 326.6 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1159, allocations: 46.62 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.004384/0.1203, allocations: 1.809 MB / 375 MB, free: 15.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002788/0.1232, allocations: 0.9829 MB / 376 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002162/0.1234, allocations: 0 / 376 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002576/0.1238, allocations: 27.78 kB / 376 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002236/0.124, allocations: 43.66 kB / 376 MB, free: 14.44 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006001/0.1246, allocations: 91.81 kB / 376.1 MB, free: 14.35 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005869/0.1252, allocations: 319.3 kB / 376.4 MB, free: 14.04 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001928/0.1254, allocations: 53.59 kB / 376.5 MB, free: 13.99 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000941/0.1264, allocations: 0.7446 MB / 377.2 MB, free: 13.24 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003261/0.1267, allocations: 147.4 kB / 377.4 MB, free: 13.1 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001056/0.1268, allocations: 24 kB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.1e-05/0.1269, allocations: 20 kB / 377.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001812/0.1271, allocations: 139.4 kB / 377.6 MB, free: 12.92 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002897/0.1274, allocations: 238.2 kB / 377.8 MB, free: 12.68 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008644/0.1283, allocations: 0.7512 MB / 378.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.1283, allocations: 0 / 378.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.1283, allocations: 0 / 378.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.082e-05/0.1283, allocations: 0 / 378.5 MB, free: 11.93 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.002173/0.1305, allocations: 1.161 MB / 379.7 MB, free: 10.67 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/0.1306, allocations: 8.031 kB / 379.7 MB, free: 10.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002229/0.1308, allocations: 84 kB / 379.8 MB, free: 10.58 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006187/0.1314, allocations: 396.2 kB / 380.2 MB, free: 10.15 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.933e-05/0.1315, allocations: 16.56 kB / 380.2 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.435e-05/0.1316, allocations: 16.38 kB / 380.2 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006373/0.1322, allocations: 250.2 kB / 380.4 MB, free: 9.867 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.1322, allocations: 3.938 kB / 380.5 MB, free: 9.863 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.51e-05/0.1323, allocations: 12 kB / 380.5 MB, free: 9.852 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.1323, allocations: 0 / 380.5 MB, free: 9.852 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003325/0.1326, allocations: 140.2 kB / 380.6 MB, free: 9.715 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001505/0.1342, allocations: 0.7387 MB / 381.3 MB, free: 8.926 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003969/0.1346, allocations: 202.4 kB / 381.5 MB, free: 8.719 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003351/0.1349, allocations: 180.7 kB / 381.7 MB, free: 8.539 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.604e-05/0.1349, allocations: 4 kB / 381.7 MB, free: 8.535 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006571/0.1356, allocations: 389.9 kB / 382.1 MB, free: 8.117 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.164e-06/0.1356, allocations: 0 / 382.1 MB, free: 8.117 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001605/0.1372, allocations: 0.9239 MB / 383 MB, free: 7.137 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001923/0.1374, allocations: 289 kB / 383.3 MB, free: 6.793 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001564/0.139, allocations: 0.9491 MB / 384.3 MB, free: 5.836 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.338e-05/0.1391, allocations: 33.7 kB / 384.3 MB, free: 5.797 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.1392, allocations: 126.1 kB / 384.4 MB, free: 5.672 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.251e-05/0.1393, allocations: 67.19 kB / 384.5 MB, free: 5.605 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002817/0.1396, allocations: 165 kB / 384.6 MB, free: 5.438 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002032/0.1398, allocations: 338.8 kB / 385 MB, free: 5.098 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003053/0.1401, allocations: 120.2 kB / 385.1 MB, free: 4.98 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002838/0.1404, allocations: 163.8 kB / 385.2 MB, free: 4.809 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007912/0.1412, allocations: 0.7029 MB / 385.9 MB, free: 3.992 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/0.1412, allocations: 3.938 kB / 386 MB, free: 3.988 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001133/0.1424, allocations: 0.7526 MB / 386.7 MB, free: 3.18 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001995/0.1426, allocations: 241.6 kB / 386.9 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.1426, allocations: 0 / 386.9 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.1426, allocations: 7.922 kB / 386.9 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.434e-05/0.1427, allocations: 15.94 kB / 387 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.639e-06/0.1427, allocations: 0 / 387 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002878/0.143, allocations: 31.98 kB / 387 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001371/0.1432, allocations: 112.1 kB / 387.1 MB, free: 2.73 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.0007785/0.1439, allocations: 0.6123 MB / 387.7 MB, free: 2.059 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.1441, allocations: 75.16 kB / 387.8 MB, free: 1.984 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003112/0.1444, allocations: 130.9 kB / 387.9 MB, free: 1.852 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.1444, allocations: 7.938 kB / 387.9 MB, free: 1.844 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.1444, allocations: 0 / 387.9 MB, free: 1.844 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.1444, allocations: 0 / 387.9 MB, free: 1.844 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00218/0.1466, allocations: 1.429 MB / 389.4 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1466, allocations: 0 / 389.4 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.254e-05/0.1467, allocations: 7.984 kB / 389.4 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.1467, allocations: 3.938 kB / 389.4 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.03e-05/0.1468, allocations: 31.98 kB / 389.4 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.1468, allocations: 0 / 389.4 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1468, allocations: 0 / 389.4 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001267/0.148, allocations: 0.961 MB / 390.4 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005979/0.1487, allocations: 423.8 kB / 390.8 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.1488, allocations: 19.98 kB / 390.8 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000223/0.149, allocations: 23.98 kB / 390.8 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001748/0.1492, allocations: 55.89 kB / 390.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001259/0.1493, allocations: 115.9 kB / 391 MB, free: 14.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001133/0.1505, allocations: 0.6821 MB / 391.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1505, allocations: 0 / 391.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000462/0.1509, allocations: 99.84 kB / 391.8 MB, free: 13.82 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.0002109/0.1512, allocations: 147.2 kB / 391.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001045/0.1522, allocations: 0.8779 MB / 392.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1522, allocations: 0 / 392.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006683/0.1529, allocations: 0.753 MB / 393.5 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.154, allocations: 283.5 kB / 393.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002844/0.1568, allocations: 1.273 MB / 395.1 MB, free: 10.26 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009359/0.1578, allocations: 0.9442 MB / 396 MB, free: 9.285 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003581/0.1582, allocations: 93.33 kB / 396.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.1583, allocations: 51.36 kB / 396.2 MB, free: 9.141 MB / 334.1 MB Notification: Performance of SimCode: time 2.084e-06/0.1583, allocations: 4 kB / 396.2 MB, free: 9.137 MB / 334.1 MB Notification: Performance of Templates: time 0.01783/0.1761, allocations: 9.496 MB / 405.7 MB, free: 15.6 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)