Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.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.Spice3BenchmarkRtlInverter,tolerance=1e-08,outputFormat="empty",numberOfIntervals=1998,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter") translateModel(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,tolerance=1e-08,outputFormat="empty",numberOfIntervals=1998,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001408/0.001407, allocations: 99.36 kB / 15.33 MB, free: 0.5078 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.001094/0.001094, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.367/1.367, allocations: 205.1 MB / 222.1 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.0011/0.0011, allocations: 51.92 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2324, allocations: 46.63 MB / 324.8 MB, free: 1.941 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.006371/0.2388, allocations: 5.013 MB / 329.9 MB, free: 13.93 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01089/0.2497, allocations: 10.33 MB / 340.2 MB, free: 4.723 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000831/0.2506, allocations: 11.94 kB / 340.2 MB, free: 4.711 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001738/0.2524, allocations: 0.6223 MB / 340.8 MB, free: 4.086 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002845/0.2552, allocations: 0.8365 MB / 341.7 MB, free: 3.246 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001424/0.2567, allocations: 0.5224 MB / 342.2 MB, free: 2.719 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001772/0.2585, allocations: 1.338 MB / 343.5 MB, free: 1.375 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002614/0.2587, allocations: 181.2 kB / 343.7 MB, free: 1.188 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002828/0.259, allocations: 262.6 kB / 344 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003026/0.2593, allocations: 317.9 kB / 344.3 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.352e-05/0.2594, allocations: 32 kB / 344.3 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001149/0.2606, allocations: 0.6791 MB / 345 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.19e-05/0.2607, allocations: 111.3 kB / 345.1 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002859/0.261, allocations: 405.4 kB / 345.5 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001252/0.2622, allocations: 1.257 MB / 346.7 MB, free: 14.14 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2622, allocations: 0 / 346.7 MB, free: 14.14 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2622, allocations: 0 / 346.7 MB, free: 14.14 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.2623, allocations: 0 / 346.7 MB, free: 14.14 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001721/0.264, allocations: 1.315 MB / 348 MB, free: 12.77 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.264, allocations: 8.031 kB / 348.1 MB, free: 12.76 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001375/0.2642, allocations: 115.5 kB / 348.2 MB, free: 12.65 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009378/0.2651, allocations: 0.7582 MB / 348.9 MB, free: 11.84 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.92e-05/0.2652, allocations: 20.56 kB / 348.9 MB, free: 11.82 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.63e-05/0.2652, allocations: 24 kB / 349 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005942/0.2658, allocations: 317.3 kB / 349.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.2658, allocations: 0 / 349.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.181e-05/0.2659, allocations: 8 kB / 349.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.636e-05/0.2659, allocations: 19.98 kB / 349.3 MB, free: 11.45 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005996/0.2665, allocations: 274.2 kB / 349.6 MB, free: 11.18 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001761/0.2683, allocations: 1.365 MB / 350.9 MB, free: 9.727 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006274/0.2689, allocations: 310.4 kB / 351.2 MB, free: 9.414 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003682/0.2693, allocations: 241.8 kB / 351.5 MB, free: 9.176 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00377/0.2731, allocations: 3.604 MB / 355.1 MB, free: 5.023 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004026/0.2735, allocations: 187.3 kB / 355.3 MB, free: 4.828 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 2.044e-06/0.2735, allocations: 0 / 355.3 MB, free: 4.828 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001493/0.275, allocations: 0.7387 MB / 356 MB, free: 4.039 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.493e-05/0.2751, allocations: 59.39 kB / 356.1 MB, free: 3.969 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008153/0.2759, allocations: 0.8153 MB / 356.9 MB, free: 3.137 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.696e-05/0.2759, allocations: 29.7 kB / 356.9 MB, free: 3.102 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003135/0.2762, allocations: 456.4 kB / 357.4 MB, free: 2.648 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.541e-05/0.2763, allocations: 94.64 kB / 357.4 MB, free: 2.555 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.2764, allocations: 77.94 kB / 357.5 MB, free: 2.473 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.74e-05/0.2765, allocations: 318 kB / 357.8 MB, free: 2.156 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002676/0.2768, allocations: 112.7 kB / 357.9 MB, free: 2.047 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003202/0.2771, allocations: 228.1 kB / 358.2 MB, free: 1.777 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005877/0.2777, allocations: 364.9 kB / 358.5 MB, free: 1.375 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2777, allocations: 3.938 kB / 358.5 MB, free: 1.371 MB / 286.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008736/0.2786, allocations: 0.5174 MB / 359 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.2787, allocations: 8.094 kB / 359.1 MB, free: 0.832 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-05/0.2787, allocations: 32 kB / 359.1 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002265/0.2789, allocations: 57.62 kB / 359.1 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002918/0.2792, allocations: 67.89 kB / 359.2 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001975/0.2812, allocations: 2.852 MB / 362.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002831/0.2815, allocations: 39.67 kB / 362.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.578e-05/0.2816, allocations: 24.06 kB / 362.1 MB, free: 13.47 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 (VIN.counter,$PRE.VIN.counter,VIN.counter2,$PRE.VIN.counter2,VIN.T0,$PRE.VIN.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002238/0.2818, allocations: 205.7 kB / 362.3 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.87e-05/0.2819, allocations: 106.7 kB / 362.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001032/0.2829, allocations: 493.1 kB / 362.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.283, allocations: 4 kB / 362.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.283, allocations: 0 / 362.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.283, allocations: 4 kB / 362.9 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005835/0.2836, allocations: 0.5583 MB / 363.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.331e-05/0.2836, allocations: 31.98 kB / 363.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002409/0.2839, allocations: 43.91 kB / 363.5 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001429/0.284, allocations: 57.7 kB / 363.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.594e-05/0.2841, allocations: 8 kB / 363.6 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001829/0.2859, allocations: 2.844 MB / 366.5 MB, free: 8.781 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.2859, allocations: 11.94 kB / 366.5 MB, free: 8.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001105/0.287, allocations: 0.6033 MB / 367.1 MB, free: 8.141 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001769/0.2872, allocations: 179.8 kB / 367.2 MB, free: 7.945 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.773e-05/0.2873, allocations: 8 kB / 367.3 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002238/0.2875, allocations: 15.92 kB / 367.3 MB, free: 7.922 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.463e-05/0.2876, allocations: 23.97 kB / 367.3 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.509e-05/0.2877, allocations: 15.98 kB / 367.3 MB, free: 7.883 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005942/0.2883, allocations: 0.5467 MB / 367.9 MB, free: 7.328 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2883, allocations: 0 / 367.9 MB, free: 7.328 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006404/0.2889, allocations: 239.7 kB / 368.1 MB, free: 7.094 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Q1.vbe,Q1.vbc) * Number of discrete variables: 4 ($whenCondition1,VIN.T0,VIN.counter,VIN.counter2) * Number of discrete states: 2 (VIN.counter,VIN.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * 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,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006237/0.2896, allocations: 352.3 kB / 368.4 MB, free: 6.738 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001078/0.2906, allocations: 0.6011 MB / 369 MB, free: 6.105 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2907, allocations: 0 / 369 MB, free: 6.105 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005896/0.2913, allocations: 439 kB / 369.5 MB, free: 5.645 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004944/0.2918, allocations: 100.4 kB / 369.6 MB, free: 5.543 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002379/0.2941, allocations: 1.77 MB / 371.3 MB, free: 3.742 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004921/0.2947, allocations: 0.9599 MB / 372.3 MB, free: 2.754 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002821/0.2949, allocations: 85.2 kB / 372.4 MB, free: 2.672 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.979e-05/0.295, allocations: 43.44 kB / 372.4 MB, free: 2.629 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.295, allocations: 0 / 372.4 MB, free: 2.629 MB / 302.1 MB Notification: Performance of Templates: time 0.0155/0.3105, allocations: 8.249 MB / 380.7 MB, free: 10.38 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)