Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Spice3.Examples.Graetz") translateModel(Modelica.Electrical.Spice3.Examples.Graetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.007195/0.007195, allocations: 105.4 kB / 15.74 MB, free: 6.008 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.0017/0.0017, allocations: 199.9 kB / 16.68 MB, free: 5.93 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.358/1.358, allocations: 205.1 MB / 222.5 MB, free: 4.359 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.00112/0.00112, allocations: 58.3 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08049/0.08162, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.005867/0.08753, allocations: 5.194 MB / 378.4 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008932/0.09649, allocations: 6.57 MB / 384.9 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005983/0.09711, allocations: 39.69 kB / 385 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001208/0.09837, allocations: 0.5046 MB / 385.5 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001982/0.1004, allocations: 0.8108 MB / 386.3 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001176/0.1015, allocations: 430.5 kB / 386.7 MB, free: 3.707 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002652/0.1042, allocations: 1.981 MB / 388.7 MB, free: 1.719 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002767/0.1045, allocations: 167 kB / 388.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004115/0.1049, allocations: 342.3 kB / 389.2 MB, free: 1.207 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003572/0.1053, allocations: 345.7 kB / 389.5 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.767e-05/0.1054, allocations: 32 kB / 389.5 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008847/0.1062, allocations: 467.6 kB / 390 MB, free: 388 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.1064, allocations: 111.2 kB / 390.1 MB, free: 276 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003775/0.1067, allocations: 449 kB / 390.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001271/0.108, allocations: 1.269 MB / 391.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.108, allocations: 0 / 391.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1081, allocations: 0 / 391.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.163e-05/0.1081, allocations: 3.938 kB / 391.8 MB, free: 14.55 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.001955/0.11, allocations: 1.444 MB / 393.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.1101, allocations: 12.03 kB / 393.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001473/0.1102, allocations: 130.3 kB / 393.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00109/0.1113, allocations: 0.8464 MB / 394.3 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.096e-05/0.1114, allocations: 16.44 kB / 394.3 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.465e-05/0.1114, allocations: 23.91 kB / 394.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005285/0.112, allocations: 306.6 kB / 394.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.112, allocations: 0 / 394.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.458e-05/0.112, allocations: 19.94 kB / 394.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.1121, allocations: 8 kB / 394.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004165/0.1125, allocations: 225.7 kB / 394.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001726/0.1142, allocations: 1.114 MB / 396 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004134/0.1146, allocations: 246.4 kB / 396.2 MB, free: 9.988 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004864/0.1151, allocations: 288.7 kB / 396.5 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009439/0.1161, allocations: 0.7671 MB / 397.2 MB, free: 8.785 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.1161, allocations: 30.56 kB / 397.3 MB, free: 8.746 MB / 334.1 MB Notification: Performance of pre-optimization done (n=38): time 2.434e-06/0.1161, allocations: 0 / 397.3 MB, free: 8.746 MB / 334.1 MB Notification: Performance of matching and sorting (n=39): time 0.002951/0.1191, allocations: 1.554 MB / 398.8 MB, free: 7.094 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.237e-05/0.1192, allocations: 106.8 kB / 398.9 MB, free: 6.965 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001022/0.1202, allocations: 0.934 MB / 399.9 MB, free: 6.023 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.227e-05/0.1203, allocations: 37.69 kB / 399.9 MB, free: 5.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002807/0.1206, allocations: 353.6 kB / 400.2 MB, free: 5.629 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.759e-05/0.1207, allocations: 130 kB / 400.4 MB, free: 5.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001735/0.1208, allocations: 117.6 kB / 400.5 MB, free: 5.379 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.121, allocations: 321.9 kB / 400.8 MB, free: 5.059 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002607/0.1212, allocations: 120.6 kB / 400.9 MB, free: 4.938 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002754/0.1215, allocations: 171.5 kB / 401.1 MB, free: 4.762 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001415/0.1229, allocations: 0.7331 MB / 401.8 MB, free: 4 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.1229, allocations: 0 / 401.8 MB, free: 4 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000954/0.1239, allocations: 0.5619 MB / 402.4 MB, free: 3.418 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.809e-05/0.124, allocations: 33.7 kB / 402.4 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.269e-05/0.124, allocations: 19.98 kB / 402.4 MB, free: 3.359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002224/0.1242, allocations: 69.72 kB / 402.5 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002381/0.1245, allocations: 43.91 kB / 402.5 MB, free: 3.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002547/0.127, allocations: 3.328 MB / 405.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000307/0.1274, allocations: 16.03 kB / 405.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.072e-05/0.1274, allocations: 27.97 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.0004194/0.1279, allocations: 267.7 kB / 406.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001438/0.128, allocations: 122.5 kB / 406.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001258/0.1293, allocations: 0.6569 MB / 407 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.1293, allocations: 4 kB / 407 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.1293, allocations: 0 / 407 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.645e-06/0.1293, allocations: 7.984 kB / 407 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006931/0.13, allocations: 0.616 MB / 407.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.379e-05/0.13, allocations: 15.94 kB / 407.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001932/0.1302, allocations: 35.91 kB / 407.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002096/0.1305, allocations: 73.67 kB / 407.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.431e-05/0.1305, allocations: 16 kB / 407.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002403/0.1329, allocations: 3.335 MB / 411.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.1329, allocations: 4 kB / 411.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001381/0.1343, allocations: 0.851 MB / 411.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004365/0.1348, allocations: 279.5 kB / 412.2 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.1349, allocations: 7.938 kB / 412.2 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002816/0.1352, allocations: 8 kB / 412.2 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.404e-05/0.1353, allocations: 35.95 kB / 412.2 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.418e-05/0.1353, allocations: 16 kB / 412.2 MB, free: 8.852 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008025/0.1361, allocations: 0.6296 MB / 412.9 MB, free: 8.219 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1361, allocations: 0 / 412.9 MB, free: 8.219 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007917/0.1369, allocations: 227.8 kB / 413.1 MB, free: 7.996 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.0005512/0.1375, allocations: 299 kB / 413.4 MB, free: 7.691 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001162/0.1387, allocations: 0.7844 MB / 414.2 MB, free: 6.844 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1387, allocations: 0 / 414.2 MB, free: 6.844 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006692/0.1394, allocations: 0.6215 MB / 414.8 MB, free: 6.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005419/0.1399, allocations: 108.6 kB / 414.9 MB, free: 6.051 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002411/0.1423, allocations: 1.564 MB / 416.5 MB, free: 4.449 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006402/0.143, allocations: 0.9961 MB / 417.5 MB, free: 3.426 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002723/0.1433, allocations: 97.62 kB / 417.6 MB, free: 3.328 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001032/0.1434, allocations: 51.44 kB / 417.6 MB, free: 3.277 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1434, allocations: 0 / 417.6 MB, free: 3.277 MB / 350.1 MB Notification: Performance of Templates: time 0.01756/0.161, allocations: 8.676 MB / 426.3 MB, free: 10.59 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Graetz.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.Graetz.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.Graetz -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1)