Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001287/0.001292, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001336/0.001336, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.426/1.426, allocations: 227.7 MB / 247.7 MB, free: 10.31 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001926, allocations: 68.73 kB / 307.9 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09444/0.09638, allocations: 50.55 MB / 358.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.006161/0.1026, allocations: 5.079 MB / 363.5 MB, free: 8.848 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1675/0.2701, allocations: 10.8 MB / 374.3 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000731/0.2709, allocations: 9.344 kB / 374.3 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001789/0.2727, allocations: 0.6892 MB / 375 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002821/0.2755, allocations: 1.014 MB / 376 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001849/0.2774, allocations: 0.6034 MB / 376.6 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002319/0.2797, allocations: 1.381 MB / 378 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003018/0.28, allocations: 170 kB / 378.2 MB, free: 8.586 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003729/0.2804, allocations: 284.5 kB / 378.5 MB, free: 8.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00031/0.2807, allocations: 319.6 kB / 378.8 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.362e-05/0.2808, allocations: 31.59 kB / 378.8 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001781/0.2826, allocations: 0.7502 MB / 379.5 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.2827, allocations: 111.2 kB / 379.7 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003255/0.2831, allocations: 405.6 kB / 380.1 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001675/0.2847, allocations: 1.254 MB / 381.3 MB, free: 7.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.2848, allocations: 0 / 381.3 MB, free: 7.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2848, allocations: 3.938 kB / 381.3 MB, free: 7.926 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.253e-05/0.2848, allocations: 1.344 kB / 381.3 MB, free: 7.926 MB / 302.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.00195/0.2867, allocations: 1.318 MB / 382.6 MB, free: 7.078 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.2868, allocations: 9.656 kB / 382.6 MB, free: 7.078 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001496/0.287, allocations: 112.8 kB / 382.7 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001037/0.288, allocations: 0.7528 MB / 383.5 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.178e-05/0.288, allocations: 18.25 kB / 383.5 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.216e-05/0.2881, allocations: 31.8 kB / 383.6 MB, free: 6.637 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006346/0.2887, allocations: 315.6 kB / 383.9 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.2888, allocations: 1.078 kB / 383.9 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.226e-05/0.2888, allocations: 11.92 kB / 383.9 MB, free: 6.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.2888, allocations: 7.625 kB / 383.9 MB, free: 6.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006402/0.2895, allocations: 277.2 kB / 384.2 MB, free: 6.418 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001866/0.2913, allocations: 1.383 MB / 385.5 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006656/0.292, allocations: 297.8 kB / 385.8 MB, free: 5.391 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003944/0.2924, allocations: 243.5 kB / 386.1 MB, free: 5.285 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003077/0.2955, allocations: 2.792 MB / 388.9 MB, free: 2.922 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004087/0.2959, allocations: 205.9 kB / 389.1 MB, free: 2.824 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 2.124e-06/0.296, allocations: 4 kB / 389.1 MB, free: 2.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001405/0.2974, allocations: 0.6318 MB / 389.7 MB, free: 2.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.579e-05/0.2974, allocations: 56.3 kB / 389.7 MB, free: 2.438 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008767/0.2983, allocations: 0.8112 MB / 390.6 MB, free: 2.102 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.532e-05/0.2983, allocations: 31.2 kB / 390.6 MB, free: 2.066 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002692/0.2986, allocations: 441.1 kB / 391 MB, free: 1.715 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.485e-05/0.2987, allocations: 104.9 kB / 391.1 MB, free: 1.637 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.2988, allocations: 74.31 kB / 391.2 MB, free: 1.594 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.126e-05/0.2988, allocations: 323.8 kB / 391.5 MB, free: 1.281 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002825/0.2991, allocations: 120.9 kB / 391.6 MB, free: 1.242 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003174/0.2995, allocations: 220.4 kB / 391.8 MB, free: 1.078 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001495/0.301, allocations: 0.7244 MB / 392.6 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.301, allocations: 0 / 392.6 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009367/0.3019, allocations: 0.5045 MB / 393.1 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.302, allocations: 10.31 kB / 393.1 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-05/0.302, allocations: 35.39 kB / 393.1 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001338/0.3022, allocations: 36.91 kB / 393.2 MB, free: 500 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003638/0.3025, allocations: 85.22 kB / 393.2 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001152/0.3037, allocations: 1.451 MB / 394.7 MB, free: 15.03 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004046/0.3041, allocations: 49.48 kB / 394.7 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.235e-05/0.3042, allocations: 17.16 kB / 394.8 MB, free: 15 MB / 318.1 MB Warning: Assuming fixed start value for the following 1 variables: Q1.vbx:VARIABLE(unit = "V" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003755/0.3046, allocations: 200.4 kB / 394.9 MB, free: 14.83 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001277/0.3047, allocations: 107.8 kB / 395.1 MB, free: 14.78 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001165/0.3059, allocations: 495.9 kB / 395.5 MB, free: 14.56 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.3059, allocations: 5.781 kB / 395.5 MB, free: 14.56 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.3059, allocations: 5.469 kB / 395.5 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.3059, allocations: 0 / 395.5 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007508/0.3067, allocations: 0.5615 MB / 396.1 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.835e-05/0.3067, allocations: 35.36 kB / 396.1 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003201/0.307, allocations: 58.39 kB / 396.2 MB, free: 14.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.339e-05/0.3071, allocations: 27.84 kB / 396.2 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.929e-05/0.3072, allocations: 13.48 kB / 396.2 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001148/0.3083, allocations: 1.442 MB / 397.7 MB, free: 12.63 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3084, allocations: 0 / 397.7 MB, free: 12.63 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00125/0.3096, allocations: 0.6048 MB / 398.3 MB, free: 12.29 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002535/0.3099, allocations: 189.8 kB / 398.5 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.137e-05/0.31, allocations: 11.08 kB / 398.5 MB, free: 12.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002343/0.3102, allocations: 10.98 kB / 398.5 MB, free: 12.1 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.491e-05/0.3103, allocations: 29.62 kB / 398.5 MB, free: 12.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.78e-05/0.3104, allocations: 13.22 kB / 398.5 MB, free: 12.08 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007529/0.3111, allocations: 0.5441 MB / 399.1 MB, free: 11.76 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3111, allocations: 0 / 399.1 MB, free: 11.76 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000753/0.3119, allocations: 242.1 kB / 399.3 MB, free: 11.7 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Q1.vbe,Q1.vbc,Q1.vbx) * 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 (22): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0005935/0.3125, allocations: 364.3 kB / 399.7 MB, free: 11.53 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001036/0.3135, allocations: 0.4925 MB / 400.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3136, allocations: 0 / 400.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005241/0.3141, allocations: 338.4 kB / 400.5 MB, free: 11 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006228/0.3147, allocations: 124.2 kB / 400.6 MB, free: 10.93 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002889/0.3176, allocations: 1.713 MB / 402.3 MB, free: 9.93 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005483/0.3182, allocations: 0.9569 MB / 403.3 MB, free: 9.113 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.3183, allocations: 45.25 kB / 403.3 MB, free: 9.105 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3183, allocations: 2.625 kB / 403.3 MB, free: 9.105 MB / 318.1 MB Notification: Performance of Templates: time 0.0202/0.3385, allocations: 13.98 MB / 417.3 MB, free: 12.04 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)