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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_trunk_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.001588/0.001588, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001754/0.001754, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001807/0.001807, allocations: 59.89 kB / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.2805, allocations: 50.55 MB / 408.8 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.006937/0.2875, allocations: 5.083 MB / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01315/0.3007, allocations: 10.8 MB / 424.7 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007984/0.3015, allocations: 27.75 kB / 424.7 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001971/0.3035, allocations: 0.7011 MB / 425.4 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00318/0.3067, allocations: 1.002 MB / 426.4 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001668/0.3084, allocations: 0.6038 MB / 427 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002438/0.3108, allocations: 1.385 MB / 428.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003258/0.3112, allocations: 181.1 kB / 428.6 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000388/0.3116, allocations: 286.5 kB / 428.9 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000393/0.312, allocations: 322 kB / 429.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.451e-05/0.3121, allocations: 32 kB / 429.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001642/0.3137, allocations: 0.7453 MB / 430 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000117/0.3138, allocations: 115.2 kB / 430.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003875/0.3142, allocations: 393.5 kB / 430.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001703/0.3159, allocations: 1.28 MB / 431.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.157e-06/0.316, allocations: 8 kB / 431.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.316, allocations: 0 / 431.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.511e-05/0.316, allocations: 7.984 kB / 431.8 MB, free: 10.39 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.002078/0.3181, allocations: 1.349 MB / 433.1 MB, free: 8.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.151e-05/0.3181, allocations: 12.03 kB / 433.1 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.578e-05/0.3182, allocations: 62.72 kB / 433.2 MB, free: 8.898 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000146/0.3184, allocations: 120.2 kB / 433.3 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001084/0.3195, allocations: 0.7596 MB / 434.1 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.377e-05/0.3195, allocations: 16.56 kB / 434.1 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.342e-05/0.3196, allocations: 28 kB / 434.1 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006421/0.3202, allocations: 317.3 kB / 434.4 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.3202, allocations: 0 / 434.4 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.041e-05/0.3203, allocations: 12 kB / 434.4 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.828e-05/0.3203, allocations: 11.98 kB / 434.4 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006707/0.321, allocations: 278.1 kB / 434.7 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002099/0.3231, allocations: 1.369 MB / 436.1 MB, free: 5.855 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007137/0.3238, allocations: 302 kB / 436.4 MB, free: 5.555 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004552/0.3243, allocations: 244.7 kB / 436.6 MB, free: 5.312 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003696/0.328, allocations: 2.798 MB / 439.4 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004544/0.3285, allocations: 207.3 kB / 439.6 MB, free: 1.922 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 4.448e-06/0.3285, allocations: 0 / 439.6 MB, free: 1.922 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.001511/0.33, allocations: 0.6354 MB / 440.3 MB, free: 1.258 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.065e-05/0.3301, allocations: 63.33 kB / 440.3 MB, free: 1.184 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009911/0.3311, allocations: 0.8072 MB / 441.1 MB, free: 368 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.16e-05/0.3311, allocations: 29.7 kB / 441.2 MB, free: 332 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004108/0.3315, allocations: 449 kB / 441.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.589e-05/0.3316, allocations: 107.1 kB / 441.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.3318, allocations: 73.98 kB / 441.8 MB, free: 15.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.3319, allocations: 333.8 kB / 442.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002999/0.3322, allocations: 112.7 kB / 442.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003859/0.3326, allocations: 218.6 kB / 442.4 MB, free: 15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001724/0.3344, allocations: 0.7156 MB / 443.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3344, allocations: 0 / 443.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009951/0.3354, allocations: 0.5181 MB / 443.7 MB, free: 13.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.3354, allocations: 4 kB / 443.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.695e-05/0.3355, allocations: 36 kB / 443.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001275/0.3356, allocations: 41.22 kB / 443.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003625/0.336, allocations: 87.81 kB / 443.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001257/0.3372, allocations: 1.449 MB / 445.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003143/0.3376, allocations: 43.75 kB / 445.3 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.196e-05/0.3376, allocations: 20 kB / 445.3 MB, free: 11.9 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.0003315/0.338, allocations: 201.8 kB / 445.5 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/0.3381, allocations: 111.3 kB / 445.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001162/0.3392, allocations: 496.3 kB / 446.1 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.463e-06/0.3393, allocations: 4 kB / 446.1 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.444e-06/0.3393, allocations: 0 / 446.1 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.3393, allocations: 7.922 kB / 446.1 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006655/0.34, allocations: 0.5736 MB / 446.7 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-05/0.34, allocations: 32 kB / 446.7 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000326/0.3403, allocations: 59.89 kB / 446.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.907e-05/0.3405, allocations: 28.84 kB / 446.8 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.984e-05/0.3405, allocations: 11.98 kB / 446.8 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001218/0.3417, allocations: 1.437 MB / 448.3 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3417, allocations: 144 / 448.3 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001265/0.343, allocations: 0.6265 MB / 448.9 MB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002375/0.3432, allocations: 192.4 kB / 449.1 MB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.834e-05/0.3433, allocations: 8 kB / 449.1 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.3436, allocations: 11.98 kB / 449.1 MB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.777e-05/0.3437, allocations: 27.97 kB / 449.1 MB, free: 7.844 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.631e-05/0.3437, allocations: 8 kB / 449.1 MB, free: 7.836 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000682/0.3444, allocations: 0.5504 MB / 449.7 MB, free: 7.277 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3444, allocations: 0 / 449.7 MB, free: 7.277 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006314/0.345, allocations: 243.3 kB / 449.9 MB, free: 7.039 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.002164/0.3472, allocations: 1.41 MB / 451.3 MB, free: 5.594 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001069/0.3483, allocations: 497.3 kB / 451.8 MB, free: 5.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3483, allocations: 0 / 451.8 MB, free: 5.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005809/0.3489, allocations: 328.2 kB / 452.1 MB, free: 4.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006374/0.3495, allocations: 124.4 kB / 452.3 MB, free: 4.629 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008941/0.3585, allocations: 5.948 MB / 458.2 MB, free: 14.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000603/0.3591, allocations: 0.9564 MB / 459.2 MB, free: 13.49 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000261/0.3594, allocations: 89.19 kB / 459.3 MB, free: 13.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003774/0.3598, allocations: 311.3 kB / 459.6 MB, free: 13.1 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3598, allocations: 0 / 459.6 MB, free: 13.1 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04962/0.4094, allocations: 17.45 MB / 477 MB, free: 11.8 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.13/12.54, allocations: 12.25 kB / 477 MB, free: 11.79 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-08 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)