Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001551/0.001551, allocations: 109.2 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001706/0.001706, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.4 MB / 246.9 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 63.45 kB / 306.9 MB, free: 1.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08805/0.0894, allocations: 50.53 MB / 357.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.005935/0.09537, allocations: 5.104 MB / 362.5 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1732/0.2687, allocations: 11.01 MB / 373.5 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007088/0.2694, allocations: 8.906 kB / 373.6 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001905/0.2714, allocations: 0.6451 MB / 374.2 MB, free: 9 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003026/0.2744, allocations: 0.8134 MB / 375 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00177/0.2762, allocations: 438 kB / 375.4 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002562/0.2788, allocations: 1.343 MB / 376.8 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003225/0.2792, allocations: 160.6 kB / 376.9 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004189/0.2796, allocations: 271.5 kB / 377.2 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002849/0.2799, allocations: 312.3 kB / 377.5 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.791e-05/0.2799, allocations: 25.06 kB / 377.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001887/0.2818, allocations: 0.7407 MB / 378.3 MB, free: 8.414 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.282, allocations: 102.1 kB / 378.4 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003763/0.2823, allocations: 390.3 kB / 378.8 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001115/0.2835, allocations: 0.9088 MB / 379.7 MB, free: 8.102 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2835, allocations: 0 / 379.7 MB, free: 8.102 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2835, allocations: 1.281 kB / 379.7 MB, free: 8.102 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.48e-05/0.2835, allocations: 0 / 379.7 MB, free: 8.102 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.001928/0.2854, allocations: 1.329 MB / 381 MB, free: 7.246 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.2855, allocations: 10.11 kB / 381 MB, free: 7.246 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/0.2856, allocations: 113.1 kB / 381.1 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009114/0.2866, allocations: 0.7419 MB / 381.9 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.2866, allocations: 21.25 kB / 381.9 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.514e-05/0.2867, allocations: 29.81 kB / 381.9 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00063/0.2873, allocations: 321.4 kB / 382.2 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.2873, allocations: 0 / 382.2 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.237e-05/0.2874, allocations: 11.47 kB / 382.2 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.2874, allocations: 7.359 kB / 382.2 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006372/0.288, allocations: 276.6 kB / 382.5 MB, free: 6.746 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001907/0.2899, allocations: 1.376 MB / 383.9 MB, free: 5.855 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007081/0.2907, allocations: 297.1 kB / 384.2 MB, free: 5.723 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003991/0.2911, allocations: 240 kB / 384.4 MB, free: 5.621 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003141/0.2942, allocations: 2.801 MB / 387.2 MB, free: 3.254 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005634/0.2948, allocations: 207.7 kB / 387.4 MB, free: 3.152 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 3.647e-06/0.2948, allocations: 1.172 kB / 387.4 MB, free: 3.152 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001527/0.2964, allocations: 0.6288 MB / 388 MB, free: 2.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.823e-05/0.2964, allocations: 62.73 kB / 388.1 MB, free: 2.773 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001021/0.2974, allocations: 0.8061 MB / 388.9 MB, free: 2.441 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.2975, allocations: 31.7 kB / 388.9 MB, free: 2.406 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002692/0.2977, allocations: 442.5 kB / 389.4 MB, free: 2.051 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.157e-05/0.2978, allocations: 104.3 kB / 389.5 MB, free: 1.973 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.2979, allocations: 74.31 kB / 389.5 MB, free: 1.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.844e-05/0.298, allocations: 323.8 kB / 389.9 MB, free: 1.617 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003006/0.2983, allocations: 122.2 kB / 390 MB, free: 1.578 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003131/0.2986, allocations: 218.8 kB / 390.2 MB, free: 1.414 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00148/0.3001, allocations: 0.7193 MB / 390.9 MB, free: 1.082 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.3001, allocations: 8.625 kB / 390.9 MB, free: 1.074 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009474/0.3011, allocations: 0.5022 MB / 391.4 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.3011, allocations: 10.5 kB / 391.4 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-05/0.3012, allocations: 41.19 kB / 391.5 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000119/0.3013, allocations: 27.16 kB / 391.5 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003612/0.3017, allocations: 91.75 kB / 391.6 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009491/0.3026, allocations: 1.349 MB / 392.9 MB, free: 15.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003925/0.303, allocations: 44.31 kB / 393 MB, free: 15.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.261e-05/0.3031, allocations: 21.34 kB / 393 MB, free: 15.43 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.0003466/0.3034, allocations: 201.3 kB / 393.2 MB, free: 15.27 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/0.3036, allocations: 106.6 kB / 393.3 MB, free: 15.21 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001105/0.3047, allocations: 0.4897 MB / 393.8 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.3047, allocations: 1.969 kB / 393.8 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.3047, allocations: 5.281 kB / 393.8 MB, free: 14.99 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.3047, allocations: 0.9375 kB / 393.8 MB, free: 14.99 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007241/0.3054, allocations: 0.5657 MB / 394.4 MB, free: 14.65 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.926e-05/0.3055, allocations: 33.61 kB / 394.4 MB, free: 14.65 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000319/0.3058, allocations: 62.5 kB / 394.5 MB, free: 14.64 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.857e-05/0.3059, allocations: 26.09 kB / 394.5 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.981e-05/0.306, allocations: 13.06 kB / 394.5 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001031/0.307, allocations: 1.335 MB / 395.8 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.307, allocations: 4.906 kB / 395.8 MB, free: 13.28 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001208/0.3082, allocations: 0.6014 MB / 396.4 MB, free: 12.99 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002672/0.3085, allocations: 185.9 kB / 396.6 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001117/0.3086, allocations: 14.48 kB / 396.6 MB, free: 12.81 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002607/0.3089, allocations: 19.33 kB / 396.7 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.133e-05/0.309, allocations: 25.34 kB / 396.7 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-05/0.309, allocations: 14.28 kB / 396.7 MB, free: 12.78 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006924/0.3097, allocations: 0.5477 MB / 397.2 MB, free: 12.46 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3097, allocations: 0 / 397.2 MB, free: 12.46 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007596/0.3105, allocations: 234.6 kB / 397.5 MB, free: 12.41 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.0007721/0.3113, allocations: 371.3 kB / 397.8 MB, free: 12.23 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009919/0.3123, allocations: 494.9 kB / 398.3 MB, free: 11.94 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.3123, allocations: 0.75 kB / 398.3 MB, free: 11.94 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005269/0.3128, allocations: 336.3 kB / 398.6 MB, free: 11.71 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006683/0.3135, allocations: 103.1 kB / 398.7 MB, free: 11.65 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003305/0.3168, allocations: 1.961 MB / 400.7 MB, free: 10.41 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005523/0.3174, allocations: 0.9609 MB / 401.7 MB, free: 9.586 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001115/0.3175, allocations: 46.16 kB / 401.7 MB, free: 9.578 MB / 318.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3175, allocations: 0 / 401.7 MB, free: 9.578 MB / 318.1 MB Notification: Performance of Templates: time 0.01984/0.3374, allocations: 13.96 MB / 415.7 MB, free: 12.91 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)