Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_3_2_3_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.001616/0.001616, allocations: 114.4 kB / 17.73 MB, free: 5.355 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.001878/0.001878, allocations: 183.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.368/1.368, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 51.92 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0847/0.08606, allocations: 46.62 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.005715/0.09182, allocations: 5.018 MB / 379.7 MB, free: 56 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1944/0.2863, allocations: 10.44 MB / 390.1 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008231/0.2872, allocations: 29.28 kB / 390.1 MB, free: 4.258 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002155/0.2894, allocations: 0.6851 MB / 390.8 MB, free: 3.883 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004813/0.2942, allocations: 0.9882 MB / 391.8 MB, free: 3.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002407/0.2967, allocations: 0.6031 MB / 392.4 MB, free: 3.016 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002706/0.2994, allocations: 1.339 MB / 393.7 MB, free: 2.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003221/0.2998, allocations: 179.8 kB / 393.9 MB, free: 2.414 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005119/0.3003, allocations: 279 kB / 394.2 MB, free: 2.289 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003878/0.3007, allocations: 315 kB / 394.5 MB, free: 2.125 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.219e-05/0.3008, allocations: 31.16 kB / 394.5 MB, free: 2.125 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002364/0.3032, allocations: 0.6778 MB / 395.2 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001735/0.3034, allocations: 110.2 kB / 395.3 MB, free: 1.891 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000503/0.3039, allocations: 404.4 kB / 395.7 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002397/0.3063, allocations: 1.272 MB / 397 MB, free: 1.094 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.639e-05/0.3063, allocations: 0 / 397 MB, free: 1.094 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.3064, allocations: 4 kB / 397 MB, free: 1.09 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.63e-05/0.3064, allocations: 0 / 397 MB, free: 1.09 MB / 318.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.002275/0.3087, allocations: 1.353 MB / 398.3 MB, free: 112 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.3087, allocations: 9.906 kB / 398.3 MB, free: 112 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.925e-05/0.3088, allocations: 69.3 kB / 398.4 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001911/0.309, allocations: 123.1 kB / 398.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/0.3102, allocations: 0.7553 MB / 399.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.3103, allocations: 18.86 kB / 399.3 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.545e-05/0.3103, allocations: 29.34 kB / 399.3 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007032/0.311, allocations: 324.3 kB / 399.7 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.3111, allocations: 0 / 399.7 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.7e-05/0.3111, allocations: 15.12 kB / 399.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/0.3111, allocations: 7.875 kB / 399.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006713/0.3118, allocations: 279.6 kB / 399.9 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002258/0.3141, allocations: 1.372 MB / 401.3 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007538/0.3149, allocations: 291.4 kB / 401.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004539/0.3153, allocations: 253.8 kB / 401.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004671/0.32, allocations: 3.592 MB / 405.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004535/0.3205, allocations: 197.4 kB / 405.6 MB, free: 10.76 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 3.737e-06/0.3205, allocations: 0 / 405.6 MB, free: 10.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001855/0.3224, allocations: 0.734 MB / 406.4 MB, free: 10.33 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.3225, allocations: 55.61 kB / 406.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/0.3236, allocations: 0.8122 MB / 407.2 MB, free: 9.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.275e-05/0.3236, allocations: 30.92 kB / 407.3 MB, free: 9.895 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003567/0.324, allocations: 454.9 kB / 407.7 MB, free: 9.496 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.001e-05/0.3241, allocations: 111.2 kB / 407.8 MB, free: 9.398 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.3242, allocations: 73.36 kB / 407.9 MB, free: 9.352 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.3243, allocations: 325.2 kB / 408.2 MB, free: 9.031 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002938/0.3246, allocations: 116.6 kB / 408.3 MB, free: 8.977 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003575/0.325, allocations: 217.3 kB / 408.5 MB, free: 8.789 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00065/0.3256, allocations: 364.7 kB / 408.9 MB, free: 8.52 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.3256, allocations: 1.125 kB / 408.9 MB, free: 8.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00114/0.3268, allocations: 0.5248 MB / 409.4 MB, free: 8.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.3268, allocations: 6.719 kB / 409.4 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.255e-05/0.3269, allocations: 36.22 kB / 409.5 MB, free: 8.227 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002413/0.3271, allocations: 61.05 kB / 409.5 MB, free: 8.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003226/0.3275, allocations: 79.75 kB / 409.6 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002053/0.3295, allocations: 2.847 MB / 412.4 MB, free: 5.227 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006182/0.3302, allocations: 45.84 kB / 412.5 MB, free: 5.195 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.586e-05/0.3303, allocations: 19.56 kB / 412.5 MB, free: 5.191 MB / 334.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.0004102/0.3307, allocations: 204.1 kB / 412.7 MB, free: 5.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002061/0.3309, allocations: 107.8 kB / 412.8 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001177/0.3321, allocations: 499.2 kB / 413.3 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.877e-06/0.3321, allocations: 3.562 kB / 413.3 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3321, allocations: 1.25 kB / 413.3 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.3321, allocations: 7.922 kB / 413.3 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009456/0.3331, allocations: 0.5458 MB / 413.9 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.143e-05/0.3332, allocations: 30.53 kB / 413.9 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002796/0.3334, allocations: 47.61 kB / 413.9 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001732/0.3336, allocations: 50.78 kB / 414 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.108e-05/0.3337, allocations: 8.875 kB / 414 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001918/0.3356, allocations: 2.85 MB / 416.8 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.3356, allocations: 7.875 kB / 416.8 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001335/0.337, allocations: 0.6029 MB / 417.5 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000366/0.3373, allocations: 185.9 kB / 417.6 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.956e-05/0.3375, allocations: 14.36 kB / 417.6 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002462/0.3377, allocations: 10.7 kB / 417.7 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.3378, allocations: 33.47 kB / 417.7 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.011e-05/0.3379, allocations: 13.75 kB / 417.7 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007288/0.3386, allocations: 0.55 MB / 418.3 MB, free: 332 kB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3386, allocations: 0 / 418.3 MB, free: 332 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008683/0.3395, allocations: 242.2 kB / 418.5 MB, free: 276 kB / 334.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.002189/0.3417, allocations: 1.415 MB / 419.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001187/0.3429, allocations: 0.5883 MB / 420.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3429, allocations: 6.125 kB / 420.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006088/0.3435, allocations: 439.6 kB / 420.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006044/0.3441, allocations: 85.67 kB / 421 MB, free: 14.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008129/0.3523, allocations: 5.837 MB / 426.9 MB, free: 9.672 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004717/0.3528, allocations: 0.9522 MB / 427.8 MB, free: 8.691 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002634/0.3531, allocations: 85.2 kB / 427.9 MB, free: 8.609 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003279/0.3534, allocations: 331.3 kB / 428.2 MB, free: 8.285 MB / 350.1 MB Notification: Performance of SimCode: time 1.333e-06/0.3534, allocations: 0 / 428.2 MB, free: 8.285 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04715/0.4006, allocations: 17.49 MB / 445.7 MB, free: 6.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.09, allocations: 4.062 kB / 445.7 MB, free: 6.727 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)