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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001183/0.001183, allocations: 197.3 kB / 18.01 MB, free: 5.066 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.349/1.349, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 47.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2531, allocations: 49.44 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.005986/0.2591, allocations: 5.088 MB / 405.3 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01205/0.2712, allocations: 10.77 MB / 416.1 MB, free: 8.891 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007123/0.272, allocations: 31.75 kB / 416.1 MB, free: 8.859 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001754/0.2738, allocations: 0.6856 MB / 416.8 MB, free: 8.172 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0027/0.2765, allocations: 1.01 MB / 417.8 MB, free: 7.152 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001506/0.278, allocations: 0.5999 MB / 418.4 MB, free: 6.551 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002105/0.2801, allocations: 1.369 MB / 419.8 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002944/0.2804, allocations: 177.2 kB / 420 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003472/0.2808, allocations: 290.5 kB / 420.2 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003733/0.2811, allocations: 317.9 kB / 420.6 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.249e-05/0.2812, allocations: 32 kB / 420.6 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001447/0.2827, allocations: 0.7375 MB / 421.3 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.2828, allocations: 107.3 kB / 421.4 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000353/0.2831, allocations: 409.4 kB / 421.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001614/0.2848, allocations: 1.276 MB / 423.1 MB, free: 1.836 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.2848, allocations: 0 / 423.1 MB, free: 1.836 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.877e-06/0.2848, allocations: 0 / 423.1 MB, free: 1.836 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.256e-05/0.2848, allocations: 3.938 kB / 423.1 MB, free: 1.832 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.002036/0.2869, allocations: 1.357 MB / 424.5 MB, free: 428 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.2869, allocations: 8.031 kB / 424.5 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.26e-05/0.287, allocations: 74.66 kB / 424.5 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001426/0.2871, allocations: 120.2 kB / 424.7 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.2882, allocations: 0.7557 MB / 425.4 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.408e-05/0.2882, allocations: 20.56 kB / 425.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.752e-05/0.2883, allocations: 24 kB / 425.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006398/0.289, allocations: 317.3 kB / 425.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.289, allocations: 0 / 425.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.456e-05/0.289, allocations: 12 kB / 425.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.289, allocations: 8 kB / 425.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006564/0.2897, allocations: 282.2 kB / 426.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001909/0.2916, allocations: 1.365 MB / 427.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006885/0.2923, allocations: 294.6 kB / 427.7 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004318/0.2928, allocations: 244.6 kB / 428 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004264/0.297, allocations: 3.6 MB / 431.6 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004283/0.2975, allocations: 196.8 kB / 431.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.783e-06/0.2975, allocations: 4 kB / 431.7 MB, free: 8.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001655/0.2992, allocations: 0.7271 MB / 432.5 MB, free: 7.621 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.438e-05/0.2992, allocations: 59.34 kB / 432.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009222/0.3001, allocations: 0.8153 MB / 433.4 MB, free: 6.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.955e-05/0.3002, allocations: 33.7 kB / 433.4 MB, free: 6.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003792/0.3006, allocations: 452.8 kB / 433.8 MB, free: 6.234 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.588e-05/0.3007, allocations: 103.1 kB / 433.9 MB, free: 6.133 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/0.3008, allocations: 77.95 kB / 434 MB, free: 6.051 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.3009, allocations: 321.9 kB / 434.3 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002884/0.3012, allocations: 116.7 kB / 434.4 MB, free: 5.617 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003681/0.3016, allocations: 228 kB / 434.7 MB, free: 5.352 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007067/0.3023, allocations: 365.3 kB / 435 MB, free: 4.949 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.3023, allocations: 0 / 435 MB, free: 4.949 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009955/0.3033, allocations: 0.5296 MB / 435.5 MB, free: 4.406 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.3033, allocations: 8 kB / 435.5 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.088e-05/0.3034, allocations: 32 kB / 435.6 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002217/0.3036, allocations: 53.69 kB / 435.6 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002998/0.3039, allocations: 71.88 kB / 435.7 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002208/0.3062, allocations: 2.848 MB / 438.5 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003101/0.3065, allocations: 47.66 kB / 438.6 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.917e-05/0.3065, allocations: 20 kB / 438.6 MB, free: 1.039 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.000264/0.3068, allocations: 205.7 kB / 438.8 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/0.3069, allocations: 115.3 kB / 438.9 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001056/0.308, allocations: 493.9 kB / 439.4 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.308, allocations: 4 kB / 439.4 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.308, allocations: 0 / 439.4 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.308, allocations: 0 / 439.4 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006094/0.3086, allocations: 0.5622 MB / 440 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.556e-05/0.3087, allocations: 35.94 kB / 440 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002423/0.3089, allocations: 43.95 kB / 440.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000146/0.3091, allocations: 49.62 kB / 440.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.662e-05/0.3091, allocations: 12 kB / 440.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002081/0.3112, allocations: 2.84 MB / 443 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.3112, allocations: 3.984 kB / 443 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001181/0.3124, allocations: 0.5964 MB / 443.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002097/0.3126, allocations: 192.3 kB / 443.7 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.297e-05/0.3127, allocations: 4 kB / 443.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002208/0.3129, allocations: 20.03 kB / 443.8 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.886e-05/0.313, allocations: 31.91 kB / 443.8 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.583e-05/0.3131, allocations: 12 kB / 443.8 MB, free: 11.44 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006437/0.3137, allocations: 0.5506 MB / 444.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3137, allocations: 0 / 444.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006133/0.3143, allocations: 243.4 kB / 444.6 MB, free: 10.64 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.002045/0.3164, allocations: 1.41 MB / 446 MB, free: 9.195 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001109/0.3175, allocations: 0.5993 MB / 446.6 MB, free: 8.566 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.3175, allocations: 4.062 kB / 446.6 MB, free: 8.562 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006205/0.3182, allocations: 434.9 kB / 447 MB, free: 8.105 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005722/0.3188, allocations: 116.3 kB / 447.1 MB, free: 7.992 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0081/0.3269, allocations: 5.81 MB / 453 MB, free: 1.953 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005621/0.3274, allocations: 0.9561 MB / 453.9 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002451/0.3277, allocations: 89.19 kB / 454 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003672/0.3281, allocations: 331.3 kB / 454.3 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3281, allocations: 0 / 454.3 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05024/0.3783, allocations: 17.49 MB / 471.8 MB, free: 15.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.22, allocations: 11.81 kB / 471.8 MB, free: 15.26 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter_res.csv --start-time 0 --stop-time 1e-07 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 1.001e-10 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)