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.001596/0.001595, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001265/0.001265, allocations: 192 kB / 16.14 MB, free: 6.707 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.336/1.336, allocations: 205.1 MB / 222 MB, free: 4.742 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.001145/0.001145, allocations: 48.3 kB / 278 MB, free: 12.78 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1895/0.1907, allocations: 46.63 MB / 324.7 MB, free: 2.059 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.005972/0.1967, allocations: 5.199 MB / 329.9 MB, free: 13.92 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008311/0.205, allocations: 6.722 MB / 336.6 MB, free: 8.324 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006728/0.2057, allocations: 39.69 kB / 336.6 MB, free: 8.285 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00116/0.207, allocations: 441.7 kB / 337.1 MB, free: 7.852 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001832/0.2088, allocations: 0.6639 MB / 337.7 MB, free: 7.184 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008607/0.2097, allocations: 326.9 kB / 338 MB, free: 6.863 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002354/0.212, allocations: 1.946 MB / 340 MB, free: 4.91 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002587/0.2123, allocations: 155.5 kB / 340.1 MB, free: 4.742 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003346/0.2126, allocations: 318.2 kB / 340.5 MB, free: 4.43 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000296/0.213, allocations: 341.7 kB / 340.8 MB, free: 4.094 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.106e-05/0.213, allocations: 20 kB / 340.8 MB, free: 4.074 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008495/0.2139, allocations: 455.6 kB / 341.3 MB, free: 3.629 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.14e-05/0.214, allocations: 103.2 kB / 341.4 MB, free: 3.527 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003299/0.2143, allocations: 433.1 kB / 341.8 MB, free: 3.102 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001141/0.2155, allocations: 1.242 MB / 343 MB, free: 1.855 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2155, allocations: 0 / 343 MB, free: 1.855 MB / 270.1 MB Notification: Performance of FrontEnd: time 7.62e-07/0.2155, allocations: 0 / 343 MB, free: 1.855 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.2155, allocations: 4 kB / 343 MB, free: 1.852 MB / 270.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.001728/0.2172, allocations: 1.433 MB / 344.5 MB, free: 368 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.988e-05/0.2173, allocations: 8.031 kB / 344.5 MB, free: 360 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001422/0.2174, allocations: 130.4 kB / 344.6 MB, free: 228 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009937/0.2184, allocations: 0.8618 MB / 345.5 MB, free: 15.31 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.976e-05/0.2185, allocations: 16.44 kB / 345.5 MB, free: 15.29 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.212e-05/0.2185, allocations: 24 kB / 345.5 MB, free: 15.27 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005068/0.219, allocations: 302.6 kB / 345.8 MB, free: 14.96 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.219, allocations: 0 / 345.8 MB, free: 14.96 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.582e-05/0.2191, allocations: 15.94 kB / 345.8 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.2191, allocations: 4 kB / 345.8 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003949/0.2195, allocations: 229.8 kB / 346 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001587/0.2211, allocations: 1.118 MB / 347.1 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003807/0.2215, allocations: 246.5 kB / 347.4 MB, free: 13.3 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004531/0.222, allocations: 288.8 kB / 347.7 MB, free: 13.02 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008483/0.2228, allocations: 0.7631 MB / 348.4 MB, free: 12.11 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.59e-05/0.2229, allocations: 34.56 kB / 348.5 MB, free: 12.06 MB / 286.1 MB Notification: Performance of pre-optimization done (n=38): time 1.583e-06/0.2229, allocations: 0 / 348.5 MB, free: 12.06 MB / 286.1 MB Notification: Performance of matching and sorting (n=39): time 0.002763/0.2256, allocations: 1.567 MB / 350 MB, free: 10.4 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.181e-05/0.2257, allocations: 106.8 kB / 350.1 MB, free: 10.27 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009332/0.2266, allocations: 0.9417 MB / 351.1 MB, free: 9.32 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.294e-05/0.2267, allocations: 33.64 kB / 351.1 MB, free: 9.281 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002552/0.2269, allocations: 361.5 kB / 351.5 MB, free: 8.926 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/0.227, allocations: 130.1 kB / 351.6 MB, free: 8.797 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001586/0.2272, allocations: 117.5 kB / 351.7 MB, free: 8.676 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.2273, allocations: 325.9 kB / 352 MB, free: 8.352 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002416/0.2276, allocations: 120.6 kB / 352.1 MB, free: 8.23 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000294/0.2279, allocations: 163.6 kB / 352.3 MB, free: 8.062 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00142/0.2293, allocations: 0.7256 MB / 353 MB, free: 7.309 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.2293, allocations: 0 / 353 MB, free: 7.309 MB / 286.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008887/0.2302, allocations: 0.5554 MB / 353.6 MB, free: 6.734 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.108e-05/0.2303, allocations: 41.69 kB / 353.6 MB, free: 6.688 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.941e-05/0.2303, allocations: 16 kB / 353.6 MB, free: 6.672 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002268/0.2305, allocations: 69.72 kB / 353.7 MB, free: 6.598 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002324/0.2308, allocations: 51.91 kB / 353.8 MB, free: 6.547 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002282/0.2331, allocations: 2.989 MB / 356.7 MB, free: 3.281 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000269/0.2334, allocations: 12.03 kB / 356.8 MB, free: 3.27 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.271e-05/0.2334, allocations: 20 kB / 356.8 MB, free: 3.25 MB / 286.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.0003676/0.2338, allocations: 259.9 kB / 357 MB, free: 2.977 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001291/0.2339, allocations: 122.5 kB / 357.2 MB, free: 2.855 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00125/0.2352, allocations: 0.6646 MB / 357.8 MB, free: 2.168 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.2352, allocations: 4 kB / 357.8 MB, free: 2.164 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.2352, allocations: 11.94 kB / 357.8 MB, free: 2.152 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.2352, allocations: 0 / 357.8 MB, free: 2.152 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006482/0.2359, allocations: 0.6121 MB / 358.4 MB, free: 1.496 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.489e-05/0.2359, allocations: 19.94 kB / 358.5 MB, free: 1.477 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001867/0.2361, allocations: 27.98 kB / 358.5 MB, free: 1.449 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002031/0.2363, allocations: 73.67 kB / 358.6 MB, free: 1.371 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.557e-05/0.2364, allocations: 19.92 kB / 358.6 MB, free: 1.352 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002078/0.2384, allocations: 2.989 MB / 361.6 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.2385, allocations: 3.984 kB / 361.6 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001208/0.2397, allocations: 0.8588 MB / 362.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002969/0.24, allocations: 275.5 kB / 362.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.912e-05/0.2401, allocations: 11.94 kB / 362.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002908/0.2404, allocations: 12.06 kB / 362.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.333e-05/0.2405, allocations: 31.95 kB / 362.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.776e-05/0.2405, allocations: 20 kB / 362.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006667/0.2412, allocations: 0.6256 MB / 363.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2412, allocations: 0 / 363.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007388/0.242, allocations: 227.9 kB / 363.6 MB, free: 11.99 MB / 302.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.0004986/0.2425, allocations: 306.9 kB / 363.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001076/0.2435, allocations: 0.7776 MB / 364.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.2436, allocations: 4.062 kB / 364.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006729/0.2442, allocations: 0.6243 MB / 365.3 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005295/0.2448, allocations: 107.7 kB / 365.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002278/0.2471, allocations: 1.913 MB / 367.4 MB, free: 8.105 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005218/0.2476, allocations: 0.9959 MB / 368.3 MB, free: 7.082 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003272/0.2479, allocations: 97.62 kB / 368.4 MB, free: 6.984 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.701e-05/0.248, allocations: 47.44 kB / 368.5 MB, free: 6.938 MB / 302.1 MB Notification: Performance of SimCode: time 4e-07/0.248, allocations: 0 / 368.5 MB, free: 6.938 MB / 302.1 MB Notification: Performance of Templates: time 0.01548/0.2635, allocations: 8.353 MB / 376.8 MB, free: 14.57 MB / 318.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)