Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.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.Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001585/0.001585, allocations: 118.8 kB / 17.79 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.001789/0.001789, allocations: 198 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.516/1.516, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001963/0.001963, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2613, allocations: 50.54 MB / 408.7 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008995/0.2704, allocations: 8.037 MB / 416.8 MB, free: 9.477 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02335/0.2937, allocations: 19.47 MB / 436.3 MB, free: 5.938 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001103/0.2949, allocations: 59.5 kB / 436.3 MB, free: 5.879 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002296/0.2972, allocations: 0.8506 MB / 437.2 MB, free: 5.023 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005618/0.3029, allocations: 1.798 MB / 439 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004159/0.307, allocations: 1.346 MB / 440.3 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005907/0.313, allocations: 3.288 MB / 443.6 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004541/0.3135, allocations: 216.6 kB / 443.8 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008581/0.3143, allocations: 0.5522 MB / 444.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006682/0.315, allocations: 0.559 MB / 444.9 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.853e-05/0.3151, allocations: 40 kB / 445 MB, free: 13.17 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003787/0.3189, allocations: 1.451 MB / 446.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001871/0.3191, allocations: 178.8 kB / 446.6 MB, free: 11.54 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007185/0.3198, allocations: 0.6792 MB / 447.3 MB, free: 10.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003319/0.3232, allocations: 2.217 MB / 449.5 MB, free: 8.633 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.3232, allocations: 0 / 449.5 MB, free: 8.633 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3232, allocations: 0 / 449.5 MB, free: 8.633 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.633e-05/0.3232, allocations: 4 kB / 449.5 MB, free: 8.629 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003107/0.3263, allocations: 2.077 MB / 451.6 MB, free: 6.488 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.3264, allocations: 8.031 kB / 451.6 MB, free: 6.48 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.061e-05/0.3265, allocations: 70.53 kB / 451.6 MB, free: 6.402 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002312/0.3267, allocations: 198.7 kB / 451.8 MB, free: 6.207 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001911/0.3286, allocations: 1.367 MB / 453.2 MB, free: 4.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.3287, allocations: 16.56 kB / 453.2 MB, free: 4.754 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.878e-05/0.3287, allocations: 28 kB / 453.2 MB, free: 4.727 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009221/0.3297, allocations: 441.1 kB / 453.7 MB, free: 4.293 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.3297, allocations: 0 / 453.7 MB, free: 4.293 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.942e-05/0.3298, allocations: 12 kB / 453.7 MB, free: 4.281 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.946e-05/0.3298, allocations: 12 kB / 453.7 MB, free: 4.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/0.3309, allocations: 478 kB / 454.2 MB, free: 3.801 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002825/0.3337, allocations: 1.611 MB / 455.8 MB, free: 2.117 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009143/0.3347, allocations: 371.4 kB / 456.1 MB, free: 1.746 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00075/0.3354, allocations: 413.8 kB / 456.5 MB, free: 1.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01696/0.3524, allocations: 15.52 MB / 472.1 MB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000628/0.353, allocations: 263.1 kB / 472.3 MB, free: 15.4 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.124e-06/0.3531, allocations: 0 / 472.3 MB, free: 15.4 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.002083/0.3552, allocations: 0.8573 MB / 473.2 MB, free: 14.51 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.589e-05/0.3552, allocations: 63.33 kB / 473.2 MB, free: 14.44 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001847/0.3571, allocations: 1.452 MB / 474.7 MB, free: 12.95 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.39e-05/0.3571, allocations: 33.7 kB / 474.7 MB, free: 12.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006776/0.3578, allocations: 0.731 MB / 475.5 MB, free: 12.17 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001137/0.3579, allocations: 91.22 kB / 475.5 MB, free: 12.08 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001933/0.3581, allocations: 134 kB / 475.7 MB, free: 11.95 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.3583, allocations: 322 kB / 476 MB, free: 11.62 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000449/0.3588, allocations: 161 kB / 476.1 MB, free: 11.46 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006071/0.3594, allocations: 363.4 kB / 476.5 MB, free: 11.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/0.3605, allocations: 0.5295 MB / 477 MB, free: 10.4 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.122e-06/0.3605, allocations: 0 / 477 MB, free: 10.4 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00152/0.362, allocations: 0.7679 MB / 477.8 MB, free: 9.621 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.3621, allocations: 8 kB / 477.8 MB, free: 9.613 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-05/0.3621, allocations: 39.98 kB / 477.8 MB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003176/0.3625, allocations: 132.8 kB / 478 MB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004213/0.3629, allocations: 111.7 kB / 478.1 MB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006843/0.3636, allocations: 0.6814 MB / 478.8 MB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005555/0.3641, allocations: 71.59 kB / 478.8 MB, free: 8.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.394e-05/0.3642, allocations: 32 kB / 478.9 MB, free: 8.523 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004387/0.3647, allocations: 281.6 kB / 479.1 MB, free: 8.238 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002051/0.3649, allocations: 198.7 kB / 479.3 MB, free: 8.043 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001761/0.3666, allocations: 0.7425 MB / 480.1 MB, free: 7.289 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.3667, allocations: 0 / 480.1 MB, free: 7.289 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.3667, allocations: 4 kB / 480.1 MB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.3667, allocations: 0 / 480.1 MB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002212/0.3689, allocations: 1.314 MB / 481.4 MB, free: 5.902 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.777e-05/0.369, allocations: 39.98 kB / 481.4 MB, free: 5.863 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000244/0.3692, allocations: 43.95 kB / 481.5 MB, free: 5.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000246/0.3695, allocations: 132.9 kB / 481.6 MB, free: 5.688 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.899e-05/0.3695, allocations: 19.94 kB / 481.6 MB, free: 5.668 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000634/0.3702, allocations: 0.6695 MB / 482.3 MB, free: 4.973 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3702, allocations: 0 / 482.3 MB, free: 4.973 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001307/0.3715, allocations: 0.718 MB / 483 MB, free: 4.227 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003999/0.3719, allocations: 287.7 kB / 483.3 MB, free: 3.926 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001369/0.3721, allocations: 8 kB / 483.3 MB, free: 3.918 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004167/0.3725, allocations: 23.97 kB / 483.3 MB, free: 3.895 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/0.3726, allocations: 47.89 kB / 483.4 MB, free: 3.848 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.369e-05/0.3727, allocations: 20 kB / 483.4 MB, free: 3.828 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001238/0.3739, allocations: 0.9571 MB / 484.4 MB, free: 2.852 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3739, allocations: 0 / 484.4 MB, free: 2.852 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008814/0.3748, allocations: 335.5 kB / 484.7 MB, free: 2.523 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002447/0.3773, allocations: 1.763 MB / 486.4 MB, free: 0.7227 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001314/0.3786, allocations: 0.5083 MB / 486.9 MB, free: 208 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3786, allocations: 0 / 486.9 MB, free: 208 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000671/0.3793, allocations: 295.3 kB / 487.2 MB, free: 15.9 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001239/0.3805, allocations: 314.8 kB / 487.5 MB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.013/0.3936, allocations: 9.01 MB / 496.6 MB, free: 6.199 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007852/0.3944, allocations: 1.145 MB / 497.7 MB, free: 5.023 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000582/0.395, allocations: 203.9 kB / 497.9 MB, free: 4.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006509/0.3956, allocations: 0.5618 MB / 498.5 MB, free: 4.262 MB / 414.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3956, allocations: 0 / 498.5 MB, free: 4.262 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07293/0.4686, allocations: 35.32 MB / 0.5213 GB, free: 1.066 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.94/15.41, allocations: 15.64 kB / 0.5213 GB, free: 1.055 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.csv --start-time 0 --stop-time 1e-11 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 5.0025e-15 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)