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.001421/0.001421, allocations: 112.6 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.001465/0.001465, allocations: 193.4 kB / 18 MB, free: 5.074 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.538/1.538, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002232/0.002232, allocations: 51.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.3018, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.006993/0.3088, allocations: 5.07 MB / 405.3 MB, free: 3.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01504/0.3239, allocations: 10.78 MB / 416.1 MB, free: 8.891 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009981/0.325, allocations: 31.75 kB / 416.1 MB, free: 8.859 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002181/0.3272, allocations: 0.6778 MB / 416.8 MB, free: 8.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004092/0.3314, allocations: 1.01 MB / 417.8 MB, free: 7.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002131/0.3335, allocations: 0.6076 MB / 418.4 MB, free: 6.551 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002783/0.3363, allocations: 1.365 MB / 419.8 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003821/0.3367, allocations: 173.2 kB / 420 MB, free: 5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004618/0.3372, allocations: 294.5 kB / 420.2 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004188/0.3376, allocations: 314 kB / 420.5 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.447e-05/0.3377, allocations: 32 kB / 420.6 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002019/0.3397, allocations: 0.7492 MB / 421.3 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.3399, allocations: 103.3 kB / 421.4 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004474/0.3403, allocations: 409.4 kB / 421.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002275/0.3426, allocations: 1.272 MB / 423.1 MB, free: 1.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.944e-06/0.3426, allocations: 4 kB / 423.1 MB, free: 1.836 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3427, allocations: 0 / 423.1 MB, free: 1.836 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.792e-05/0.3427, allocations: 0 / 423.1 MB, free: 1.836 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.002456/0.3451, allocations: 1.361 MB / 424.5 MB, free: 428 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.3452, allocations: 11.97 kB / 424.5 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.278e-05/0.3453, allocations: 62.72 kB / 424.5 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00017/0.3455, allocations: 124.2 kB / 424.7 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001173/0.3467, allocations: 0.7596 MB / 425.4 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.397e-05/0.3467, allocations: 20.56 kB / 425.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.483e-05/0.3468, allocations: 24 kB / 425.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007046/0.3475, allocations: 317.3 kB / 425.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.3475, allocations: 4 kB / 425.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00016/0.3477, allocations: 8 kB / 425.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.811e-05/0.3477, allocations: 11.98 kB / 425.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006726/0.3484, allocations: 278.1 kB / 426.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002234/0.3506, allocations: 1.365 MB / 427.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007467/0.3514, allocations: 302.5 kB / 427.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004527/0.3518, allocations: 248.6 kB / 428 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004794/0.3567, allocations: 3.588 MB / 431.6 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004745/0.3572, allocations: 195.2 kB / 431.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 2.815e-06/0.3572, allocations: 0 / 431.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001861/0.3591, allocations: 0.7249 MB / 432.5 MB, free: 7.629 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.046e-05/0.3591, allocations: 59.41 kB / 432.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001066/0.3602, allocations: 0.8232 MB / 433.4 MB, free: 6.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.662e-05/0.3603, allocations: 29.64 kB / 433.4 MB, free: 6.684 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000417/0.3607, allocations: 456.8 kB / 433.8 MB, free: 6.234 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001361/0.3608, allocations: 107.1 kB / 433.9 MB, free: 6.129 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/0.361, allocations: 66.03 kB / 434 MB, free: 6.059 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002182/0.3612, allocations: 329.9 kB / 434.3 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003106/0.3615, allocations: 112.7 kB / 434.4 MB, free: 5.621 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003862/0.3619, allocations: 236 kB / 434.7 MB, free: 5.348 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007125/0.3626, allocations: 365.3 kB / 435 MB, free: 4.945 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.3626, allocations: 0 / 435 MB, free: 4.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001106/0.3637, allocations: 0.5254 MB / 435.5 MB, free: 4.406 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.3638, allocations: 7.938 kB / 435.6 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.829e-05/0.3638, allocations: 32 kB / 435.6 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002425/0.3641, allocations: 53.69 kB / 435.6 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003175/0.3644, allocations: 76.3 kB / 435.7 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002508/0.3669, allocations: 2.848 MB / 438.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003997/0.3674, allocations: 51.66 kB / 438.6 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.421e-05/0.3674, allocations: 16 kB / 438.6 MB, free: 1.035 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.0003164/0.3677, allocations: 201.7 kB / 438.8 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.3679, allocations: 107.3 kB / 438.9 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001171/0.3691, allocations: 497.9 kB / 439.4 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.3691, allocations: 7.984 kB / 439.4 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3691, allocations: 4 kB / 439.4 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.3691, allocations: 0 / 439.4 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007388/0.3699, allocations: 0.5622 MB / 440 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.171e-05/0.3699, allocations: 35.92 kB / 440 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000261/0.3702, allocations: 39.91 kB / 440.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001737/0.3704, allocations: 53.67 kB / 440.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.665e-05/0.3704, allocations: 4 kB / 440.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002398/0.3728, allocations: 2.844 MB / 443 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.3728, allocations: 4.062 kB / 443 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001343/0.3742, allocations: 0.608 MB / 443.6 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002728/0.3745, allocations: 188.3 kB / 443.8 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.949e-05/0.3746, allocations: 4 kB / 443.8 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002263/0.3748, allocations: 15.98 kB / 443.8 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.3749, allocations: 23.97 kB / 443.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.362e-05/0.375, allocations: 15.98 kB / 443.8 MB, free: 11.44 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000751/0.3757, allocations: 0.5428 MB / 444.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3757, allocations: 0 / 444.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000706/0.3764, allocations: 251.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.002332/0.3788, allocations: 1.414 MB / 446 MB, free: 9.191 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001241/0.38, allocations: 0.6012 MB / 446.6 MB, free: 8.559 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3801, allocations: 0 / 446.6 MB, free: 8.559 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006812/0.3808, allocations: 437.2 kB / 447 MB, free: 8.102 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000649/0.3814, allocations: 120.4 kB / 447.2 MB, free: 7.984 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009597/0.391, allocations: 5.802 MB / 453 MB, free: 1.953 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000675/0.3918, allocations: 0.9561 MB / 453.9 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002969/0.3921, allocations: 81.2 kB / 454 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004241/0.3925, allocations: 335.3 kB / 454.3 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of SimCode: time 1.513e-06/0.3925, allocations: 4 kB / 454.3 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05606/0.4486, allocations: 17.49 MB / 471.8 MB, free: 15.26 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.49/12.93, allocations: 0.625 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-08 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)