Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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.0.0_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.001149/0.001149, allocations: 111.8 kB / 17.74 MB, free: 5.359 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.001212/0.001212, allocations: 181.5 kB / 18.66 MB, free: 4.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001615/0.001615, allocations: 47.92 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2829, allocations: 49.44 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.005504/0.2884, allocations: 5.076 MB / 406.5 MB, free: 3.766 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01131/0.2998, allocations: 10.77 MB / 417.2 MB, free: 8.945 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006812/0.3005, allocations: 27.75 kB / 417.3 MB, free: 8.918 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002226/0.3028, allocations: 0.6954 MB / 418 MB, free: 8.223 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004628/0.3074, allocations: 1.01 MB / 419 MB, free: 7.203 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001879/0.3093, allocations: 0.5998 MB / 419.6 MB, free: 6.602 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002399/0.3117, allocations: 1.369 MB / 420.9 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000316/0.3121, allocations: 169.2 kB / 421.1 MB, free: 5.051 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004604/0.3125, allocations: 286.5 kB / 421.4 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004376/0.313, allocations: 329.9 kB / 421.7 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.977e-05/0.3131, allocations: 36 kB / 421.8 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001673/0.3148, allocations: 0.7414 MB / 422.5 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002051/0.315, allocations: 107.3 kB / 422.6 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004661/0.3155, allocations: 401.4 kB / 423 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001759/0.3172, allocations: 1.261 MB / 424.3 MB, free: 1.902 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3172, allocations: 0 / 424.3 MB, free: 1.902 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.3173, allocations: 0 / 424.3 MB, free: 1.902 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.3173, allocations: 0 / 424.3 MB, free: 1.902 MB / 334.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.001974/0.3193, allocations: 1.327 MB / 425.6 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.3193, allocations: 8.031 kB / 425.6 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001453/0.3195, allocations: 119.5 kB / 425.7 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001038/0.3205, allocations: 0.7433 MB / 426.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.494e-05/0.3205, allocations: 28.44 kB / 426.5 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001674/0.3207, allocations: 24 kB / 426.5 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006224/0.3213, allocations: 321.3 kB / 426.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.3214, allocations: 0 / 426.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.16e-05/0.3214, allocations: 8 kB / 426.8 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.339e-05/0.3214, allocations: 12 kB / 426.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006265/0.322, allocations: 274.2 kB / 427.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001878/0.3239, allocations: 1.368 MB / 428.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006818/0.3246, allocations: 298.5 kB / 428.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003996/0.325, allocations: 244.6 kB / 429 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004037/0.3291, allocations: 3.592 MB / 432.6 MB, free: 8.797 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004026/0.3295, allocations: 200.8 kB / 432.8 MB, free: 8.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.923e-06/0.3295, allocations: 0 / 432.8 MB, free: 8.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001741/0.3313, allocations: 0.7265 MB / 433.5 MB, free: 7.812 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.715e-05/0.3313, allocations: 55.41 kB / 433.6 MB, free: 7.746 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008615/0.3322, allocations: 0.8193 MB / 434.4 MB, free: 6.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.847e-05/0.3322, allocations: 33.64 kB / 434.4 MB, free: 6.871 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003293/0.3326, allocations: 448.4 kB / 434.9 MB, free: 6.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.21e-05/0.3327, allocations: 98.53 kB / 435 MB, free: 6.332 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/0.3328, allocations: 77.92 kB / 435 MB, free: 6.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.3329, allocations: 317.9 kB / 435.3 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002739/0.3332, allocations: 120.6 kB / 435.5 MB, free: 5.816 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003464/0.3335, allocations: 232 kB / 435.7 MB, free: 5.547 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006271/0.3342, allocations: 369.6 kB / 436 MB, free: 5.141 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-06/0.3342, allocations: 0 / 436 MB, free: 5.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009507/0.3351, allocations: 0.5171 MB / 436.6 MB, free: 4.609 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.3352, allocations: 4 kB / 436.6 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.625e-05/0.3352, allocations: 32 kB / 436.6 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002265/0.3355, allocations: 53.69 kB / 436.6 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003055/0.3358, allocations: 84.27 kB / 436.7 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001987/0.3378, allocations: 2.848 MB / 439.6 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003387/0.3381, allocations: 39.67 kB / 439.6 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.235e-05/0.3382, allocations: 20 kB / 439.6 MB, free: 1.242 MB / 350.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.0003225/0.3385, allocations: 207.8 kB / 439.8 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.3386, allocations: 106.7 kB / 439.9 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001149/0.3398, allocations: 489.2 kB / 440.4 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.3398, allocations: 8 kB / 440.4 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.3398, allocations: 0 / 440.4 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.3398, allocations: 0 / 440.4 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005993/0.3404, allocations: 0.5622 MB / 441 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.151e-05/0.3405, allocations: 28 kB / 441 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002529/0.3407, allocations: 47.89 kB / 441.1 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001535/0.3409, allocations: 49.69 kB / 441.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.63e-05/0.3409, allocations: 8 kB / 441.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001918/0.3429, allocations: 2.844 MB / 444 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3429, allocations: 4.062 kB / 444 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0012/0.3441, allocations: 0.6003 MB / 444.6 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002327/0.3443, allocations: 183.8 kB / 444.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.025e-05/0.3444, allocations: 8 kB / 444.8 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002294/0.3446, allocations: 15.97 kB / 444.8 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.3448, allocations: 27.91 kB / 444.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.969e-05/0.3448, allocations: 12 kB / 444.8 MB, free: 11.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006913/0.3455, allocations: 0.5506 MB / 445.4 MB, free: 11.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3455, allocations: 0 / 445.4 MB, free: 11.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006931/0.3462, allocations: 239.8 kB / 445.6 MB, free: 10.87 MB / 366.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.0006023/0.3468, allocations: 356.3 kB / 445.9 MB, free: 10.51 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00143/0.3483, allocations: 0.5994 MB / 446.5 MB, free: 9.883 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3483, allocations: 0 / 446.5 MB, free: 9.883 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007584/0.3491, allocations: 434.9 kB / 447 MB, free: 9.426 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005962/0.3497, allocations: 112.4 kB / 447.1 MB, free: 9.316 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002463/0.3521, allocations: 1.557 MB / 448.6 MB, free: 7.723 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004759/0.3526, allocations: 0.9561 MB / 449.6 MB, free: 6.738 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.991e-05/0.3527, allocations: 43.44 kB / 449.6 MB, free: 6.695 MB / 366.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3527, allocations: 0 / 449.6 MB, free: 6.695 MB / 366.1 MB Notification: Performance of Templates: time 0.02192/0.3747, allocations: 17.58 MB / 467.2 MB, free: 5.098 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)