Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Electrical.Digital.Examples.WiredX") translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001322/0.001321, allocations: 109.9 kB / 16.92 MB, free: 5.797 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.001171/0.001171, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.818/1.818, allocations: 205.1 MB / 223.7 MB, free: 12.34 MB / 190.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.001263/0.001263, allocations: 56.14 kB / 280 MB, free: 3.184 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1239, allocations: 46.63 MB / 326.6 MB, free: 4.484 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.003456/0.1274, allocations: 1.806 MB / 328.4 MB, free: 2.66 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002359/0.1298, allocations: 0.9837 MB / 329.4 MB, free: 1.668 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.459e-05/0.1299, allocations: 4 kB / 329.4 MB, free: 1.664 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001758/0.1301, allocations: 19.78 kB / 329.4 MB, free: 1.645 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.11e-05/0.1302, allocations: 39.66 kB / 329.5 MB, free: 1.605 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004574/0.1307, allocations: 99.8 kB / 329.6 MB, free: 1.508 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000417/0.1311, allocations: 311.4 kB / 329.9 MB, free: 1.203 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001891/0.1313, allocations: 49.67 kB / 329.9 MB, free: 1.152 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008087/0.1321, allocations: 0.733 MB / 330.7 MB, free: 428 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002038/0.1323, allocations: 135.5 kB / 330.8 MB, free: 292 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.84e-05/0.1324, allocations: 20 kB / 330.8 MB, free: 272 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.144e-05/0.1325, allocations: 24 kB / 330.8 MB, free: 248 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001817/0.1327, allocations: 143.4 kB / 331 MB, free: 104 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002675/0.133, allocations: 234.4 kB / 331.2 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007889/0.1338, allocations: 0.7397 MB / 331.9 MB, free: 15.13 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1338, allocations: 0 / 331.9 MB, free: 15.13 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1338, allocations: 0 / 331.9 MB, free: 15.13 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.422e-05/0.1338, allocations: 4 kB / 331.9 MB, free: 15.12 MB / 286.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.001215/0.135, allocations: 1.168 MB / 333.1 MB, free: 13.86 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.1351, allocations: 12.03 kB / 333.1 MB, free: 13.84 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.1352, allocations: 76.09 kB / 333.2 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004129/0.1356, allocations: 396.1 kB / 333.6 MB, free: 13.34 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.254e-05/0.1357, allocations: 20.56 kB / 333.6 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.944e-05/0.1357, allocations: 24.36 kB / 333.6 MB, free: 13.3 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005009/0.1362, allocations: 246.2 kB / 333.9 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.1363, allocations: 3.938 kB / 333.9 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.245e-05/0.1363, allocations: 15.98 kB / 333.9 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-06/0.1363, allocations: 4 kB / 333.9 MB, free: 13.03 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003077/0.1366, allocations: 132.2 kB / 334 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/0.1379, allocations: 0.731 MB / 334.7 MB, free: 12.12 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004112/0.1384, allocations: 210.4 kB / 335 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003247/0.1387, allocations: 172.8 kB / 335.1 MB, free: 11.73 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.397e-05/0.1387, allocations: 4 kB / 335.1 MB, free: 11.73 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006831/0.1394, allocations: 385.8 kB / 335.5 MB, free: 11.32 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.684e-06/0.1394, allocations: 0 / 335.5 MB, free: 11.32 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001472/0.1409, allocations: 0.9239 MB / 336.4 MB, free: 10.34 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001793/0.1411, allocations: 285 kB / 336.7 MB, free: 9.996 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00128/0.1424, allocations: 0.953 MB / 337.7 MB, free: 9.035 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.8e-05/0.1424, allocations: 37.7 kB / 337.7 MB, free: 8.992 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.1426, allocations: 126 kB / 337.8 MB, free: 8.863 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.984e-05/0.1427, allocations: 59.27 kB / 337.9 MB, free: 8.805 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001999/0.1429, allocations: 157.1 kB / 338 MB, free: 8.645 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.143, allocations: 334.8 kB / 338.4 MB, free: 8.309 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002603/0.1433, allocations: 128.2 kB / 338.5 MB, free: 8.184 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002819/0.1436, allocations: 175.8 kB / 338.7 MB, free: 8 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007395/0.1443, allocations: 0.695 MB / 339.3 MB, free: 7.191 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.1444, allocations: 7.938 kB / 339.4 MB, free: 7.184 MB / 286.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001087/0.1454, allocations: 0.7605 MB / 340.1 MB, free: 6.367 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000194/0.1456, allocations: 245.6 kB / 340.4 MB, free: 6.078 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.1457, allocations: 4 kB / 340.4 MB, free: 6.074 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/0.1457, allocations: 0 / 340.4 MB, free: 6.074 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.894e-05/0.1457, allocations: 4 kB / 340.4 MB, free: 6.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.1458, allocations: 4 kB / 340.4 MB, free: 6.066 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002506/0.146, allocations: 31.91 kB / 340.4 MB, free: 6.035 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001208/0.1461, allocations: 104.2 kB / 340.5 MB, free: 5.934 MB / 286.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.0006598/0.1468, allocations: 0.6201 MB / 341.1 MB, free: 5.254 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.354e-05/0.1469, allocations: 75.16 kB / 341.2 MB, free: 5.18 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002/0.1471, allocations: 130.9 kB / 341.3 MB, free: 5.047 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.1471, allocations: 4 kB / 341.3 MB, free: 5.043 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.1471, allocations: 4 kB / 341.3 MB, free: 5.039 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.1471, allocations: 0 / 341.3 MB, free: 5.039 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001764/0.1489, allocations: 1.429 MB / 342.8 MB, free: 3.504 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.1489, allocations: 0 / 342.8 MB, free: 3.504 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.153e-05/0.149, allocations: 8 kB / 342.8 MB, free: 3.496 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.149, allocations: 0 / 342.8 MB, free: 3.496 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.467e-05/0.149, allocations: 31.98 kB / 342.8 MB, free: 3.465 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.149, allocations: 0 / 342.8 MB, free: 3.465 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1491, allocations: 3.938 kB / 342.8 MB, free: 3.461 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001203/0.1503, allocations: 0.957 MB / 343.8 MB, free: 2.438 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005268/0.1508, allocations: 423.6 kB / 344.2 MB, free: 2.004 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.961e-05/0.1509, allocations: 20 kB / 344.2 MB, free: 1.984 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002108/0.1511, allocations: 23.98 kB / 344.2 MB, free: 1.961 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001608/0.1513, allocations: 63.86 kB / 344.3 MB, free: 1.898 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/0.1514, allocations: 115.9 kB / 344.4 MB, free: 1.785 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0009055/0.1523, allocations: 0.686 MB / 345.1 MB, free: 1.102 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1523, allocations: 0 / 345.1 MB, free: 1.102 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004033/0.1527, allocations: 95.94 kB / 345.2 MB, free: 1.008 MB / 286.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.000214/0.153, allocations: 143.2 kB / 345.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.154, allocations: 0.8935 MB / 346.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.154, allocations: 3.938 kB / 346.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006644/0.1547, allocations: 0.7452 MB / 347 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001123/0.1558, allocations: 282.5 kB / 347.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002254/0.1581, allocations: 1.29 MB / 348.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006793/0.1588, allocations: 0.944 MB / 349.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002376/0.159, allocations: 93.33 kB / 349.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.91e-05/0.1591, allocations: 47.36 kB / 349.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1591, allocations: 0 / 349.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of Templates: time 0.01661/0.1758, allocations: 9.506 MB / 359.1 MB, free: 2.785 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.WiredX.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Digital.Examples.WiredX.sim & ./Modelica_3.2.2_Modelica.Electrical.Digital.Examples.WiredX -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1)