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.01052/0.01052, allocations: 101.1 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.001827/0.001827, allocations: 190.6 kB / 16.67 MB, free: 5.977 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.844/1.844, allocations: 205.1 MB / 222.6 MB, free: 4.375 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.001177/0.001177, allocations: 46.97 kB / 326.5 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1278, allocations: 46.63 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.003735/0.1316, allocations: 1.805 MB / 375 MB, free: 15.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00213/0.1337, allocations: 0.9829 MB / 376 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.174e-05/0.1338, allocations: 0 / 376 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001758/0.134, allocations: 23.73 kB / 376 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001194/0.1342, allocations: 47.64 kB / 376 MB, free: 14.42 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005037/0.1347, allocations: 87.83 kB / 376.1 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005066/0.1352, allocations: 323.4 kB / 376.4 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002081/0.1354, allocations: 57.53 kB / 376.5 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009193/0.1363, allocations: 0.7408 MB / 377.2 MB, free: 13.22 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002651/0.1366, allocations: 147.4 kB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.028e-05/0.1367, allocations: 24 kB / 377.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.06e-05/0.1368, allocations: 24 kB / 377.4 MB, free: 13.03 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001747/0.1369, allocations: 139.4 kB / 377.6 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002534/0.1372, allocations: 238.2 kB / 377.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006722/0.1379, allocations: 0.7435 MB / 378.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.1379, allocations: 3.938 kB / 378.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.1379, allocations: 0 / 378.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.758e-06/0.1379, allocations: 0 / 378.5 MB, free: 11.91 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.001191/0.1391, allocations: 1.165 MB / 379.7 MB, free: 10.64 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.1392, allocations: 8.031 kB / 379.7 MB, free: 10.63 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001317/0.1393, allocations: 80 kB / 379.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004301/0.1397, allocations: 392.2 kB / 380.2 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.365e-05/0.1398, allocations: 16.56 kB / 380.2 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.098e-05/0.1398, allocations: 20.38 kB / 380.2 MB, free: 10.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005467/0.1404, allocations: 246.2 kB / 380.4 MB, free: 9.848 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.1404, allocations: 3.938 kB / 380.5 MB, free: 9.844 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.487e-05/0.1405, allocations: 16 kB / 380.5 MB, free: 9.828 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.76e-06/0.1405, allocations: 0 / 380.5 MB, free: 9.828 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002894/0.1408, allocations: 140.2 kB / 380.6 MB, free: 9.691 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001138/0.1419, allocations: 0.7387 MB / 381.3 MB, free: 8.902 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003751/0.1423, allocations: 202.4 kB / 381.5 MB, free: 8.695 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002898/0.1426, allocations: 180.7 kB / 381.7 MB, free: 8.516 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/0.1426, allocations: 0 / 381.7 MB, free: 8.516 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006651/0.1433, allocations: 389.9 kB / 382.1 MB, free: 8.098 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.733e-06/0.1433, allocations: 0 / 382.1 MB, free: 8.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001473/0.1448, allocations: 0.9278 MB / 383 MB, free: 7.113 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001781/0.145, allocations: 281 kB / 383.3 MB, free: 6.777 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001261/0.1463, allocations: 0.9491 MB / 384.3 MB, free: 5.82 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.125e-05/0.1463, allocations: 37.7 kB / 384.3 MB, free: 5.777 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.1464, allocations: 126 kB / 384.4 MB, free: 5.652 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.463e-05/0.1465, allocations: 59.27 kB / 384.5 MB, free: 5.594 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002084/0.1467, allocations: 165 kB / 384.6 MB, free: 5.426 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.1469, allocations: 338.8 kB / 385 MB, free: 5.086 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002474/0.1471, allocations: 124.2 kB / 385.1 MB, free: 4.965 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002606/0.1474, allocations: 163.9 kB / 385.2 MB, free: 4.793 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007191/0.1481, allocations: 0.7029 MB / 385.9 MB, free: 3.977 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.1481, allocations: 7.875 kB / 386 MB, free: 3.969 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001005/0.1491, allocations: 0.7487 MB / 386.7 MB, free: 3.164 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000171/0.1493, allocations: 249.6 kB / 386.9 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.1493, allocations: 0 / 386.9 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.1494, allocations: 3.984 kB / 386.9 MB, free: 2.867 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.734e-05/0.1494, allocations: 8 kB / 387 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.1494, allocations: 0 / 387 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000244/0.1497, allocations: 35.98 kB / 387 MB, free: 2.824 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001333/0.1498, allocations: 108.1 kB / 387.1 MB, free: 2.719 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.0006449/0.1505, allocations: 0.6162 MB / 387.7 MB, free: 2.043 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.1506, allocations: 75.16 kB / 387.8 MB, free: 1.969 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001892/0.1508, allocations: 126.9 kB / 387.9 MB, free: 1.84 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.1508, allocations: 4 kB / 387.9 MB, free: 1.836 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.1508, allocations: 0 / 387.9 MB, free: 1.836 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.1508, allocations: 4 kB / 387.9 MB, free: 1.832 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001797/0.1526, allocations: 1.441 MB / 389.4 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1526, allocations: 0 / 389.4 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.718e-05/0.1526, allocations: 4 kB / 389.4 MB, free: 288 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.1527, allocations: 0 / 389.4 MB, free: 288 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.815e-05/0.1527, allocations: 31.98 kB / 389.4 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.1527, allocations: 0 / 389.4 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.1527, allocations: 3.938 kB / 389.4 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.154, allocations: 0.9649 MB / 390.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005573/0.1546, allocations: 419.8 kB / 390.8 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/0.1547, allocations: 24 kB / 390.8 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002292/0.1549, allocations: 15.98 kB / 390.8 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001753/0.1551, allocations: 59.84 kB / 390.9 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001254/0.1553, allocations: 115.9 kB / 391 MB, free: 14.57 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000928/0.1562, allocations: 0.686 MB / 391.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1562, allocations: 0 / 391.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000427/0.1566, allocations: 95.84 kB / 391.8 MB, free: 13.8 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.000246/0.1569, allocations: 151.2 kB / 391.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001175/0.1581, allocations: 0.874 MB / 392.8 MB, free: 12.67 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.1581, allocations: 4 kB / 392.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007475/0.1588, allocations: 0.7452 MB / 393.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001165/0.16, allocations: 291.5 kB / 393.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002669/0.1627, allocations: 1.27 MB / 395.1 MB, free: 10.24 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008293/0.1635, allocations: 0.9442 MB / 396 MB, free: 9.266 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003367/0.1639, allocations: 89.34 kB / 396.1 MB, free: 9.176 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/0.164, allocations: 43.38 kB / 396.2 MB, free: 9.133 MB / 334.1 MB Notification: Performance of SimCode: time 1.342e-06/0.164, allocations: 4 kB / 396.2 MB, free: 9.129 MB / 334.1 MB Notification: Performance of Templates: time 0.01943/0.1835, allocations: 9.504 MB / 405.7 MB, free: 15.58 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)