Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=1998,variableFilter="time|Q1.vbc|Q1.vbe",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter") translateModel(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,tolerance=1e-08,outputFormat="mat",numberOfIntervals=1998,variableFilter="time|Q1.vbc|Q1.vbe",fileNamePrefix="Modelica_3.2.3_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.001237/0.001237, allocations: 107.5 kB / 18.4 MB, free: 4.699 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.001263/0.001263, allocations: 187.1 kB / 19.33 MB, free: 3.781 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.304/1.304, allocations: 205.1 MB / 225.2 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.002024/0.002024, allocations: 51.92 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09403/0.09607, allocations: 46.61 MB / 375.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.1656/0.2617, allocations: 5.007 MB / 380.8 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009042/0.2708, allocations: 10.45 MB / 391.3 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005876/0.2714, allocations: 29.31 kB / 391.3 MB, free: 4.137 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001672/0.2731, allocations: 0.6789 MB / 392 MB, free: 3.766 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002761/0.2759, allocations: 0.989 MB / 393 MB, free: 3.168 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001532/0.2774, allocations: 0.6018 MB / 393.6 MB, free: 2.895 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00202/0.2795, allocations: 1.335 MB / 394.9 MB, free: 2.383 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002548/0.2797, allocations: 176.8 kB / 395.1 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002922/0.28, allocations: 277.5 kB / 395.3 MB, free: 2.176 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003438/0.2804, allocations: 314.9 kB / 395.6 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.168e-05/0.2804, allocations: 31.5 kB / 395.7 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001412/0.2819, allocations: 0.676 MB / 396.4 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.483e-05/0.282, allocations: 111.2 kB / 396.5 MB, free: 1.777 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003245/0.2823, allocations: 409.7 kB / 396.9 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001425/0.2837, allocations: 1.267 MB / 398.1 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2837, allocations: 0 / 398.1 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2837, allocations: 1.25 kB / 398.1 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.041e-05/0.2838, allocations: 0 / 398.1 MB, free: 0.9805 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001727/0.2855, allocations: 1.32 MB / 399.5 MB, free: 36 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.2856, allocations: 9.062 kB / 399.5 MB, free: 36 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001594/0.2858, allocations: 121.8 kB / 399.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001168/0.2869, allocations: 0.7476 MB / 400.3 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.376e-05/0.287, allocations: 19.41 kB / 400.3 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.219e-05/0.287, allocations: 25.58 kB / 400.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006634/0.2877, allocations: 316.2 kB / 400.7 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.2877, allocations: 3.938 kB / 400.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.488e-05/0.2878, allocations: 10.75 kB / 400.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.2878, allocations: 12.53 kB / 400.7 MB, free: 15.31 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000668/0.2885, allocations: 277.3 kB / 401 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002038/0.2905, allocations: 1.365 MB / 402.3 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000728/0.2913, allocations: 296.4 kB / 402.6 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004178/0.2917, allocations: 253.4 kB / 402.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004368/0.2961, allocations: 3.587 MB / 406.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004209/0.2965, allocations: 187.1 kB / 406.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.685e-06/0.2965, allocations: 0.6562 kB / 406.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001792/0.2983, allocations: 0.7291 MB / 407.4 MB, free: 10.35 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/0.2984, allocations: 60.11 kB / 407.4 MB, free: 10.28 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001006/0.2994, allocations: 0.8199 MB / 408.3 MB, free: 9.898 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.071e-05/0.2994, allocations: 30.86 kB / 408.3 MB, free: 9.863 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003654/0.2998, allocations: 458.7 kB / 408.7 MB, free: 9.461 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.388e-05/0.2999, allocations: 90.66 kB / 408.8 MB, free: 9.383 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.3, allocations: 80.64 kB / 408.9 MB, free: 9.328 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.3001, allocations: 317.5 kB / 409.2 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002819/0.3004, allocations: 113.5 kB / 409.3 MB, free: 8.965 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003765/0.3008, allocations: 225.1 kB / 409.5 MB, free: 8.77 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006452/0.3014, allocations: 356.8 kB / 409.9 MB, free: 8.508 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.3015, allocations: 1.094 kB / 409.9 MB, free: 8.508 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009739/0.3024, allocations: 0.5278 MB / 410.4 MB, free: 8.215 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.3025, allocations: 10.53 kB / 410.4 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.928e-05/0.3025, allocations: 31.53 kB / 410.5 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002361/0.3028, allocations: 58.03 kB / 410.5 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003043/0.3031, allocations: 76.06 kB / 410.6 MB, free: 8.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002152/0.3052, allocations: 2.848 MB / 413.4 MB, free: 5.219 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003892/0.3056, allocations: 42.52 kB / 413.5 MB, free: 5.191 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.813e-05/0.3057, allocations: 20 kB / 413.5 MB, free: 5.188 MB / 334.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.0003184/0.306, allocations: 208 kB / 413.7 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.3061, allocations: 106.9 kB / 413.8 MB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00108/0.3072, allocations: 495 kB / 414.3 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.3072, allocations: 2.875 kB / 414.3 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.746e-06/0.3072, allocations: 0 / 414.3 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.3073, allocations: 1.5 kB / 414.3 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006599/0.3079, allocations: 0.557 MB / 414.9 MB, free: 4.219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.17e-05/0.308, allocations: 28.69 kB / 414.9 MB, free: 4.219 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002394/0.3082, allocations: 49.52 kB / 414.9 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001456/0.3084, allocations: 61.36 kB / 415 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/0.3084, allocations: 5.938 kB / 415 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00197/0.3104, allocations: 2.845 MB / 417.8 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3104, allocations: 5.391 kB / 417.8 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001263/0.3117, allocations: 0.6019 MB / 418.4 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000265/0.312, allocations: 189.7 kB / 418.6 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.742e-05/0.312, allocations: 2.219 kB / 418.6 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002423/0.3123, allocations: 18.88 kB / 418.7 MB, free: 0.668 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.191e-05/0.3124, allocations: 29.94 kB / 418.7 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.826e-05/0.3124, allocations: 13.38 kB / 418.7 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006727/0.3131, allocations: 0.5464 MB / 419.2 MB, free: 336 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3131, allocations: 0 / 419.2 MB, free: 336 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.000739/0.3138, allocations: 235.5 kB / 419.5 MB, free: 288 kB / 334.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.00059/0.3144, allocations: 363.2 kB / 419.8 MB, free: 68 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001057/0.3155, allocations: 0.5898 MB / 420.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3155, allocations: 0 / 420.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005961/0.3161, allocations: 438.8 kB / 420.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004663/0.3166, allocations: 96.02 kB / 420.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002351/0.319, allocations: 1.558 MB / 422.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004876/0.3195, allocations: 0.952 MB / 423.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.3196, allocations: 48.53 kB / 423.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3196, allocations: 0 / 423.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of Templates: time 0.02092/0.3405, allocations: 17.58 MB / 441.1 MB, free: 12.46 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)