Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter") translateModel(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,tolerance=1e-08,outputFormat="empty",numberOfIntervals=1998,variableFilter="",fileNamePrefix="Modelica_3.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.001494/0.001499, 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.001832/0.001832, allocations: 191.3 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.461/1.461, allocations: 205.1 MB / 222 MB, free: 5 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.001351/0.001351, allocations: 51.92 kB / 278.1 MB, free: 13 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2151/0.2164, allocations: 46.62 MB / 324.7 MB, free: 1.84 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.005379/0.2218, allocations: 5.029 MB / 329.7 MB, free: 13.82 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01217/0.2341, allocations: 10.64 MB / 340.3 MB, free: 4.484 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009122/0.2351, allocations: 4 kB / 340.3 MB, free: 4.48 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002084/0.2371, allocations: 0.6339 MB / 341 MB, free: 3.844 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003267/0.2404, allocations: 0.7974 MB / 341.8 MB, free: 3.039 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001453/0.2419, allocations: 435.8 kB / 342.2 MB, free: 2.609 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002329/0.2443, allocations: 1.307 MB / 343.5 MB, free: 1.297 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002648/0.2445, allocations: 161.8 kB / 343.7 MB, free: 1.121 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003475/0.2449, allocations: 254.6 kB / 343.9 MB, free: 0.8711 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000279/0.2452, allocations: 309.9 kB / 344.2 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.296e-05/0.2452, allocations: 20 kB / 344.2 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001446/0.2467, allocations: 0.6597 MB / 344.9 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001063/0.2468, allocations: 107.3 kB / 345 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005017/0.2473, allocations: 397.3 kB / 345.4 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001282/0.2486, allocations: 1.234 MB / 346.6 MB, free: 14.15 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2486, allocations: 4 kB / 346.6 MB, free: 14.15 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.2486, allocations: 0 / 346.6 MB, free: 14.15 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.2487, allocations: 0 / 346.6 MB, free: 14.15 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.001879/0.2505, allocations: 1.315 MB / 347.9 MB, free: 12.78 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.2506, allocations: 12.03 kB / 348 MB, free: 12.77 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001564/0.2508, allocations: 119.5 kB / 348.1 MB, free: 12.65 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001139/0.2519, allocations: 0.7465 MB / 348.8 MB, free: 11.85 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.2519, allocations: 24.55 kB / 348.8 MB, free: 11.83 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.529e-05/0.252, allocations: 24 kB / 348.9 MB, free: 11.8 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006802/0.2527, allocations: 321.3 kB / 349.2 MB, free: 11.48 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.2527, allocations: 0 / 349.2 MB, free: 11.48 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.854e-05/0.2528, allocations: 12 kB / 349.2 MB, free: 11.47 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.46e-05/0.2528, allocations: 12 kB / 349.2 MB, free: 11.46 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006626/0.2535, allocations: 278.2 kB / 349.5 MB, free: 11.19 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002151/0.2556, allocations: 1.361 MB / 350.8 MB, free: 9.738 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006637/0.2563, allocations: 302.5 kB / 351.1 MB, free: 9.434 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004018/0.2567, allocations: 238 kB / 351.4 MB, free: 9.199 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004177/0.2609, allocations: 3.6 MB / 355 MB, free: 5.055 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004106/0.2613, allocations: 191.3 kB / 355.2 MB, free: 4.855 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.873e-06/0.2613, allocations: 0 / 355.2 MB, free: 4.855 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001759/0.2631, allocations: 0.7342 MB / 355.9 MB, free: 4.07 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001419/0.2633, allocations: 55.39 kB / 355.9 MB, free: 4.004 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001003/0.2643, allocations: 0.8192 MB / 356.8 MB, free: 3.168 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.643e-05/0.2643, allocations: 33.7 kB / 356.8 MB, free: 3.129 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003448/0.2647, allocations: 444.4 kB / 357.2 MB, free: 2.688 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.102e-05/0.2648, allocations: 98.53 kB / 357.3 MB, free: 2.59 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.2649, allocations: 81.92 kB / 357.4 MB, free: 2.504 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.265, allocations: 318 kB / 357.7 MB, free: 2.188 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002758/0.2653, allocations: 112.7 kB / 357.8 MB, free: 2.078 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003275/0.2656, allocations: 228 kB / 358 MB, free: 1.809 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005865/0.2662, allocations: 360.9 kB / 358.4 MB, free: 1.41 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.2662, allocations: 0 / 358.4 MB, free: 1.41 MB / 286.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009744/0.2672, allocations: 0.5213 MB / 358.9 MB, free: 0.875 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.2672, allocations: 12.06 kB / 358.9 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.423e-05/0.2673, allocations: 32 kB / 359 MB, free: 0.832 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002048/0.2675, allocations: 53.69 kB / 359 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002906/0.2678, allocations: 67.89 kB / 359.1 MB, free: 0.707 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002/0.2698, allocations: 2.662 MB / 361.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003759/0.2702, allocations: 39.67 kB / 361.8 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.122e-05/0.2702, allocations: 20 kB / 361.8 MB, free: 13.72 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.0002441/0.2705, allocations: 201.7 kB / 362 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.692e-05/0.2706, allocations: 106.8 kB / 362.1 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001078/0.2717, allocations: 497 kB / 362.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.2717, allocations: 0 / 362.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.2717, allocations: 11.88 kB / 362.6 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.2717, allocations: 0 / 362.6 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005489/0.2723, allocations: 0.5583 MB / 363.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.871e-05/0.2723, allocations: 28 kB / 363.2 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002408/0.2726, allocations: 43.95 kB / 363.2 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001402/0.2727, allocations: 53.72 kB / 363.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.474e-05/0.2728, allocations: 8 kB / 363.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001738/0.2745, allocations: 2.654 MB / 365.9 MB, free: 9.234 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2745, allocations: 0 / 365.9 MB, free: 9.234 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001144/0.2757, allocations: 0.6035 MB / 366.5 MB, free: 8.605 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001844/0.2759, allocations: 183.8 kB / 366.7 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.168e-05/0.2759, allocations: 12 kB / 366.7 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002279/0.2762, allocations: 15.98 kB / 366.8 MB, free: 8.379 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.315e-05/0.2763, allocations: 23.97 kB / 366.8 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.538e-05/0.2763, allocations: 11.98 kB / 366.8 MB, free: 8.344 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005893/0.2769, allocations: 0.5467 MB / 367.3 MB, free: 7.789 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2769, allocations: 0 / 367.3 MB, free: 7.789 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005946/0.2775, allocations: 239.8 kB / 367.6 MB, free: 7.555 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.000564/0.2781, allocations: 360.9 kB / 367.9 MB, free: 7.188 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009969/0.2791, allocations: 0.5818 MB / 368.5 MB, free: 6.574 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.2791, allocations: 3.938 kB / 368.5 MB, free: 6.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005689/0.2797, allocations: 438.9 kB / 368.9 MB, free: 6.109 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004793/0.2802, allocations: 96.41 kB / 369 MB, free: 6.012 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00244/0.2826, allocations: 1.768 MB / 370.8 MB, free: 4.215 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005051/0.2831, allocations: 0.9561 MB / 371.8 MB, free: 3.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002718/0.2834, allocations: 81.16 kB / 371.8 MB, free: 3.152 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.903e-05/0.2835, allocations: 51.42 kB / 371.9 MB, free: 3.102 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2835, allocations: 3.938 kB / 371.9 MB, free: 3.098 MB / 302.1 MB Notification: Performance of Templates: time 0.01465/0.2982, allocations: 7.988 MB / 379.9 MB, free: 11.11 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)