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.005216/0.005216, allocations: 101.6 kB / 15.73 MB, free: 6.047 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.001272/0.001272, allocations: 188.6 kB / 16.67 MB, free: 5.98 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.425/1.425, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001137/0.001137, allocations: 55.92 kB / 326.5 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08415/0.0853, allocations: 46.61 MB / 373.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.1775/0.2628, allocations: 5.2 MB / 378.3 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009313/0.2722, allocations: 6.568 MB / 384.9 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001031/0.2733, allocations: 41 kB / 385 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001628/0.275, allocations: 0.4913 MB / 385.4 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003176/0.2782, allocations: 0.8103 MB / 386.3 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002006/0.2802, allocations: 434.6 kB / 386.7 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00341/0.2836, allocations: 1.982 MB / 388.7 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002884/0.2839, allocations: 176.7 kB / 388.8 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000504/0.2844, allocations: 343.8 kB / 389.2 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003726/0.2848, allocations: 342.8 kB / 389.5 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.497e-05/0.2849, allocations: 30.19 kB / 389.5 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001432/0.2863, allocations: 469.8 kB / 390 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.2864, allocations: 111.9 kB / 390.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003435/0.2868, allocations: 445.6 kB / 390.5 MB, free: 4.297 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001488/0.2883, allocations: 1.274 MB / 391.8 MB, free: 3.758 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.2883, allocations: 0 / 391.8 MB, free: 3.758 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2883, allocations: 1.188 kB / 391.8 MB, free: 3.758 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.2883, allocations: 0 / 391.8 MB, free: 3.758 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001881/0.2902, allocations: 1.438 MB / 393.3 MB, free: 2.699 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.2903, allocations: 9.625 kB / 393.3 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/0.2904, allocations: 131.6 kB / 393.4 MB, free: 2.629 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001065/0.2915, allocations: 0.852 MB / 394.2 MB, free: 2.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.036e-05/0.2915, allocations: 17.56 kB / 394.3 MB, free: 2.082 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.677e-05/0.2916, allocations: 26.73 kB / 394.3 MB, free: 2.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005276/0.2921, allocations: 310.8 kB / 394.6 MB, free: 1.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.2922, allocations: 0 / 394.6 MB, free: 1.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.359e-05/0.2922, allocations: 15.09 kB / 394.6 MB, free: 1.918 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/0.2922, allocations: 6.703 kB / 394.6 MB, free: 1.918 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004043/0.2926, allocations: 218.4 kB / 394.8 MB, free: 1.844 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001717/0.2944, allocations: 1.121 MB / 395.9 MB, free: 1.188 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003838/0.2948, allocations: 241.2 kB / 396.2 MB, free: 1.074 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004813/0.2952, allocations: 293.8 kB / 396.5 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000817/0.2961, allocations: 0.7538 MB / 397.2 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.656e-05/0.2961, allocations: 46.03 kB / 397.3 MB, free: 132 kB / 318.1 MB Notification: Performance of pre-optimization done (n=38): time 2.004e-06/0.2961, allocations: 0 / 397.3 MB, free: 132 kB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.003099/0.2992, allocations: 1.55 MB / 398.8 MB, free: 15.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.385e-05/0.2993, allocations: 111.5 kB / 398.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001122/0.3005, allocations: 0.9267 MB / 399.8 MB, free: 14.65 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.803e-05/0.3005, allocations: 31.58 kB / 399.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002996/0.3008, allocations: 359 kB / 400.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/0.3009, allocations: 131.8 kB / 400.4 MB, free: 14.22 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001843/0.3011, allocations: 114.9 kB / 400.5 MB, free: 14.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.3013, allocations: 330.8 kB / 400.8 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002703/0.3016, allocations: 121.5 kB / 400.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002958/0.3019, allocations: 158.6 kB / 401.1 MB, free: 13.72 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001453/0.3033, allocations: 0.7427 MB / 401.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3033, allocations: 1.922 kB / 401.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009851/0.3043, allocations: 0.554 MB / 402.4 MB, free: 13.06 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.392e-05/0.3044, allocations: 41.5 kB / 402.4 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.428e-05/0.3044, allocations: 24.42 kB / 402.4 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002266/0.3047, allocations: 67.41 kB / 402.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002321/0.3049, allocations: 40.16 kB / 402.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002605/0.3075, allocations: 3.332 MB / 405.9 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004733/0.308, allocations: 10.78 kB / 405.9 MB, free: 9.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.344e-05/0.3081, allocations: 26.44 kB / 405.9 MB, free: 9.723 MB / 334.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.0004455/0.3085, allocations: 262.4 kB / 406.2 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001617/0.3087, allocations: 123.6 kB / 406.3 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001344/0.3101, allocations: 0.6653 MB / 406.9 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.3101, allocations: 7.328 kB / 407 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3101, allocations: 2.812 kB / 407 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.3101, allocations: 2.422 kB / 407 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008521/0.311, allocations: 0.6161 MB / 407.6 MB, free: 8.727 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.639e-05/0.311, allocations: 16.19 kB / 407.6 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000192/0.3112, allocations: 36.38 kB / 407.6 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000197/0.3114, allocations: 72.77 kB / 407.7 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.493e-05/0.3115, allocations: 13.44 kB / 407.7 MB, free: 8.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0025/0.314, allocations: 3.323 MB / 411 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.314, allocations: 192 / 411 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001367/0.3154, allocations: 0.8685 MB / 411.9 MB, free: 4.781 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004469/0.3158, allocations: 273.1 kB / 412.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.3159, allocations: 14.41 kB / 412.2 MB, free: 4.539 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002892/0.3162, allocations: 14.53 kB / 412.2 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.358e-05/0.3163, allocations: 35.89 kB / 412.2 MB, free: 4.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.824e-05/0.3164, allocations: 17.88 kB / 412.2 MB, free: 4.508 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008091/0.3172, allocations: 0.6274 MB / 412.9 MB, free: 4.148 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3172, allocations: 1.094 kB / 412.9 MB, free: 4.148 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001014/0.3182, allocations: 222.7 kB / 413.1 MB, free: 4.105 MB / 334.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.0005495/0.3188, allocations: 306 kB / 413.4 MB, free: 3.918 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001142/0.3199, allocations: 0.7703 MB / 414.2 MB, free: 3.312 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.32, allocations: 4.062 kB / 414.2 MB, free: 3.309 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006781/0.3206, allocations: 0.6276 MB / 414.8 MB, free: 2.754 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005866/0.3212, allocations: 99.41 kB / 414.9 MB, free: 2.691 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002114/0.3234, allocations: 1.57 MB / 416.5 MB, free: 1.719 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005176/0.3239, allocations: 0.9993 MB / 417.5 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002697/0.3242, allocations: 91.08 kB / 417.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.724e-05/0.3243, allocations: 54.23 kB / 417.6 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3243, allocations: 0 / 417.6 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of Templates: time 0.01718/0.3415, allocations: 8.679 MB / 426.3 MB, free: 8.926 MB / 350.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)