Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Graetz.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.Spice3.Examples.Graetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Graetz") translateModel(Modelica.Electrical.Spice3.Examples.Graetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Graetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006227/0.006228, allocations: 101.8 kB / 15.73 MB, free: 6.012 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.001389/0.001389, allocations: 190 kB / 16.67 MB, free: 5.949 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.346/1.346, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.001212/0.001212, allocations: 47.19 kB / 326.5 MB, free: 14.37 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08456/0.08578, allocations: 46.62 MB / 373.2 MB, free: 1.336 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.006522/0.09234, allocations: 5.201 MB / 378.4 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008746/0.1011, allocations: 6.566 MB / 384.9 MB, free: 5.512 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001433/0.1026, allocations: 39.69 kB / 385 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002082/0.1048, allocations: 0.5046 MB / 385.5 MB, free: 4.965 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003144/0.108, allocations: 0.8109 MB / 386.3 MB, free: 4.148 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001843/0.1098, allocations: 434.4 kB / 386.7 MB, free: 3.723 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003623/0.1135, allocations: 1.981 MB / 388.7 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000429/0.1139, allocations: 171 kB / 388.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006683/0.1146, allocations: 362.3 kB / 389.2 MB, free: 1.199 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005968/0.1152, allocations: 345.7 kB / 389.5 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001134/0.1153, allocations: 32 kB / 389.6 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001234/0.1166, allocations: 467.6 kB / 390 MB, free: 380 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001249/0.1167, allocations: 111.2 kB / 390.1 MB, free: 268 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004584/0.1172, allocations: 449 kB / 390.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001907/0.1191, allocations: 1.269 MB / 391.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.1191, allocations: 0 / 391.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1191, allocations: 3.938 kB / 391.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.108e-05/0.1192, allocations: 0 / 391.8 MB, free: 14.54 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.002113/0.1213, allocations: 1.44 MB / 393.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.1213, allocations: 8.031 kB / 393.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001613/0.1215, allocations: 130.3 kB / 393.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001102/0.1226, allocations: 0.8542 MB / 394.3 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.1227, allocations: 16.44 kB / 394.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.509e-05/0.1227, allocations: 27.91 kB / 394.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000529/0.1233, allocations: 306.6 kB / 394.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.1233, allocations: 0 / 394.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.438e-05/0.1233, allocations: 15.92 kB / 394.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.1233, allocations: 8 kB / 394.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004122/0.1237, allocations: 225.8 kB / 394.9 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001711/0.1255, allocations: 1.118 MB / 396 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003879/0.1259, allocations: 238.5 kB / 396.2 MB, free: 9.984 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000482/0.1264, allocations: 292.7 kB / 396.5 MB, free: 9.695 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009423/0.1273, allocations: 0.7632 MB / 397.3 MB, free: 8.781 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.719e-05/0.1274, allocations: 34.56 kB / 397.3 MB, free: 8.738 MB / 334.1 MB Notification: Performance of pre-optimization done (n=38): time 2.043e-06/0.1274, allocations: 0 / 397.3 MB, free: 8.738 MB / 334.1 MB Notification: Performance of matching and sorting (n=39): time 0.00288/0.1303, allocations: 1.554 MB / 398.9 MB, free: 7.086 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.284e-05/0.1303, allocations: 106.8 kB / 399 MB, free: 6.957 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000951/0.1313, allocations: 0.9301 MB / 399.9 MB, free: 6.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.107e-05/0.1313, allocations: 37.69 kB / 399.9 MB, free: 5.977 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002701/0.1316, allocations: 357.6 kB / 400.3 MB, free: 5.621 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.506e-05/0.1317, allocations: 134 kB / 400.4 MB, free: 5.488 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001645/0.1319, allocations: 113.6 kB / 400.5 MB, free: 5.371 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.132, allocations: 325.9 kB / 400.8 MB, free: 5.047 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002455/0.1322, allocations: 116.6 kB / 400.9 MB, free: 4.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002601/0.1325, allocations: 167.6 kB / 401.1 MB, free: 4.758 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00144/0.134, allocations: 0.737 MB / 401.8 MB, free: 3.992 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.134, allocations: 0 / 401.8 MB, free: 3.992 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009183/0.1349, allocations: 0.5619 MB / 402.4 MB, free: 3.41 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.875e-05/0.1349, allocations: 33.7 kB / 402.4 MB, free: 3.371 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.272e-05/0.135, allocations: 19.98 kB / 402.5 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000223/0.1352, allocations: 65.69 kB / 402.5 MB, free: 3.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002411/0.1355, allocations: 47.91 kB / 402.6 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002555/0.138, allocations: 3.327 MB / 405.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003042/0.1384, allocations: 8 kB / 405.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.951e-05/0.1384, allocations: 23.98 kB / 405.9 MB, free: 15.6 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: D2.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D4.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D3.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D1.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004088/0.1388, allocations: 271.9 kB / 406.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001426/0.139, allocations: 122.5 kB / 406.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001249/0.1403, allocations: 0.6608 MB / 407 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.1403, allocations: 4 kB / 407 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1403, allocations: 8 kB / 407 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.483e-06/0.1403, allocations: 7.969 kB / 407 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006971/0.141, allocations: 0.6121 MB / 407.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-05/0.141, allocations: 19.94 kB / 407.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001855/0.1412, allocations: 35.91 kB / 407.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002024/0.1414, allocations: 69.67 kB / 407.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.397e-05/0.1415, allocations: 12 kB / 407.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002426/0.1439, allocations: 3.343 MB / 411.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1439, allocations: 0 / 411.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001302/0.1452, allocations: 0.8433 MB / 411.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004023/0.1457, allocations: 275.6 kB / 412.2 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.777e-05/0.1457, allocations: 15.92 kB / 412.2 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002614/0.146, allocations: 12.06 kB / 412.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.161e-05/0.1461, allocations: 35.95 kB / 412.3 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.259e-05/0.1462, allocations: 20 kB / 412.3 MB, free: 8.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007264/0.1469, allocations: 0.6256 MB / 412.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1469, allocations: 0 / 412.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008288/0.1477, allocations: 231.9 kB / 413.1 MB, free: 7.984 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (D1.pin,D4.n.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005292/0.1483, allocations: 294.9 kB / 413.4 MB, free: 7.684 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001163/0.1495, allocations: 0.7806 MB / 414.2 MB, free: 6.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.1495, allocations: 0 / 414.2 MB, free: 6.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006775/0.1502, allocations: 0.6252 MB / 414.8 MB, free: 6.152 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005583/0.1507, allocations: 104.7 kB / 414.9 MB, free: 6.047 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002191/0.1529, allocations: 1.56 MB / 416.5 MB, free: 4.449 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005278/0.1535, allocations: 1 MB / 417.5 MB, free: 3.422 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002509/0.1537, allocations: 97.62 kB / 417.6 MB, free: 3.324 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.916e-05/0.1538, allocations: 43.44 kB / 417.6 MB, free: 3.281 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1538, allocations: 0 / 417.6 MB, free: 3.281 MB / 350.1 MB Notification: Performance of Templates: time 0.01691/0.1708, allocations: 8.875 MB / 426.5 MB, free: 10.39 MB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Graetz.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Graetz.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Graetz -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1)