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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00166/0.00166, allocations: 117.7 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001908/0.001908, allocations: 211.8 kB / 18.74 MB, free: 4.312 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.585/1.585, allocations: 227.7 MB / 247.2 MB, free: 10.25 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.002187/0.002187, allocations: 63.89 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3188, allocations: 50.54 MB / 409.1 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.007047/0.3259, allocations: 5.084 MB / 414.1 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01524/0.3412, allocations: 10.81 MB / 425 MB, free: 1.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009642/0.3423, allocations: 31.75 kB / 425 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002261/0.3446, allocations: 0.6933 MB / 425.7 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004493/0.3491, allocations: 0.9985 MB / 426.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002558/0.3517, allocations: 0.6076 MB / 427.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003148/0.3549, allocations: 1.389 MB / 428.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005184/0.3554, allocations: 181.2 kB / 428.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005439/0.356, allocations: 282.6 kB / 429.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004684/0.3565, allocations: 317.9 kB / 429.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.825e-05/0.3566, allocations: 32 kB / 429.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002345/0.3589, allocations: 0.7415 MB / 430.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002042/0.3592, allocations: 119.2 kB / 430.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000632/0.3598, allocations: 405.4 kB / 430.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00286/0.3627, allocations: 1.276 MB / 432 MB, free: 10.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.3627, allocations: 0 / 432 MB, free: 10.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.3627, allocations: 0 / 432 MB, free: 10.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.711e-05/0.3628, allocations: 0 / 432 MB, free: 10.34 MB / 350.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.002496/0.3653, allocations: 1.357 MB / 433.4 MB, free: 8.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.3653, allocations: 8.031 kB / 433.4 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.583e-05/0.3654, allocations: 66.72 kB / 433.4 MB, free: 8.848 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001758/0.3656, allocations: 120.2 kB / 433.5 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001254/0.3669, allocations: 0.7557 MB / 434.3 MB, free: 7.922 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.663e-05/0.3669, allocations: 20.56 kB / 434.3 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001556/0.3671, allocations: 27.94 kB / 434.3 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007203/0.3678, allocations: 321.3 kB / 434.7 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.3679, allocations: 0 / 434.7 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.763e-05/0.3679, allocations: 12 kB / 434.7 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.598e-05/0.3679, allocations: 7.984 kB / 434.7 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006669/0.3686, allocations: 278.2 kB / 435 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002413/0.371, allocations: 1.369 MB / 436.3 MB, free: 5.805 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008007/0.3719, allocations: 298.5 kB / 436.6 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004547/0.3723, allocations: 236.8 kB / 436.8 MB, free: 5.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004206/0.3766, allocations: 2.805 MB / 439.6 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005463/0.3772, allocations: 207.3 kB / 439.9 MB, free: 1.871 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 2.635e-06/0.3772, allocations: 0 / 439.9 MB, free: 1.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.001717/0.3789, allocations: 0.6432 MB / 440.5 MB, free: 1.199 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.624e-05/0.379, allocations: 59.41 kB / 440.6 MB, free: 1.129 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001268/0.3803, allocations: 0.8149 MB / 441.4 MB, free: 304 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.155e-05/0.3804, allocations: 25.7 kB / 441.4 MB, free: 272 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004198/0.3808, allocations: 448.9 kB / 441.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001282/0.3809, allocations: 111.1 kB / 441.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/0.3811, allocations: 77.97 kB / 442 MB, free: 15.63 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.3812, allocations: 317.9 kB / 442.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003303/0.3816, allocations: 124.7 kB / 442.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003856/0.382, allocations: 218.5 kB / 442.7 MB, free: 14.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001809/0.3838, allocations: 0.7082 MB / 443.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.3838, allocations: 4 kB / 443.4 MB, free: 14.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001166/0.385, allocations: 0.5141 MB / 443.9 MB, free: 13.67 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/0.385, allocations: 8 kB / 443.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.91e-05/0.3851, allocations: 32 kB / 443.9 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001617/0.3853, allocations: 36.83 kB / 444 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003729/0.3856, allocations: 87.77 kB / 444 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001529/0.3872, allocations: 1.453 MB / 445.5 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004486/0.3877, allocations: 35.77 kB / 445.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-05/0.3877, allocations: 24.06 kB / 445.6 MB, free: 11.85 MB / 366.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.0004261/0.3882, allocations: 201.7 kB / 445.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001821/0.3884, allocations: 111.3 kB / 445.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001308/0.3897, allocations: 492.3 kB / 446.3 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/0.3897, allocations: 4 kB / 446.3 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.3897, allocations: 0 / 446.3 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.939e-06/0.3897, allocations: 7.922 kB / 446.4 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008262/0.3906, allocations: 0.5773 MB / 446.9 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.176e-05/0.3906, allocations: 40 kB / 447 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003435/0.391, allocations: 51.95 kB / 447 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001373/0.3911, allocations: 36.77 kB / 447.1 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.073e-05/0.3912, allocations: 4 kB / 447.1 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001437/0.3926, allocations: 1.441 MB / 448.5 MB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3926, allocations: 0 / 448.5 MB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00142/0.3941, allocations: 0.6158 MB / 449.1 MB, free: 8.051 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003159/0.3944, allocations: 188.4 kB / 449.3 MB, free: 7.848 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.038e-05/0.3945, allocations: 4 kB / 449.3 MB, free: 7.844 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002345/0.3948, allocations: 19.98 kB / 449.3 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.3949, allocations: 23.97 kB / 449.4 MB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.983e-05/0.3949, allocations: 19.98 kB / 449.4 MB, free: 7.781 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000877/0.3958, allocations: 0.5387 MB / 449.9 MB, free: 7.234 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.054e-06/0.3958, allocations: 0 / 449.9 MB, free: 7.234 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007964/0.3966, allocations: 255.2 kB / 450.2 MB, free: 6.984 MB / 366.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.002549/0.3992, allocations: 1.41 MB / 451.6 MB, free: 5.535 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00113/0.4004, allocations: 488.8 kB / 452 MB, free: 5.039 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.4004, allocations: 7.875 kB / 452.1 MB, free: 5.031 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005751/0.401, allocations: 337.8 kB / 452.4 MB, free: 4.684 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008975/0.4019, allocations: 116.4 kB / 452.5 MB, free: 4.574 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01071/0.4126, allocations: 5.948 MB / 458.4 MB, free: 14.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000595/0.4133, allocations: 0.9525 MB / 459.4 MB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002986/0.4136, allocations: 89.19 kB / 459.5 MB, free: 13.36 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004542/0.414, allocations: 315.3 kB / 459.8 MB, free: 13.05 MB / 382.1 MB Notification: Performance of SimCode: time 9.72e-07/0.414, allocations: 0 / 459.8 MB, free: 13.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05696/0.471, allocations: 17.46 MB / 477.3 MB, free: 11.82 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.69/13.16, allocations: 7.781 kB / 477.3 MB, free: 11.82 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)