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.001219/0.001219, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001626/0.001627, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.2863, allocations: 50.55 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008817/0.2952, allocations: 8.031 MB / 416.8 MB, free: 9.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02083/0.316, allocations: 19.47 MB / 436.2 MB, free: 5.934 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001239/0.3173, allocations: 55.5 kB / 436.3 MB, free: 5.879 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00223/0.3196, allocations: 0.8585 MB / 437.2 MB, free: 5.016 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005485/0.3251, allocations: 1.809 MB / 439 MB, free: 3.195 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004135/0.3292, allocations: 1.354 MB / 440.3 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005064/0.3343, allocations: 3.288 MB / 443.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003831/0.3347, allocations: 220.6 kB / 443.8 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007589/0.3355, allocations: 0.5639 MB / 444.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005655/0.3361, allocations: 0.559 MB / 445 MB, free: 13.17 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.982e-05/0.3362, allocations: 40 kB / 445 MB, free: 13.13 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003728/0.3399, allocations: 1.455 MB / 446.4 MB, free: 11.67 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002354/0.3402, allocations: 166.8 kB / 446.6 MB, free: 11.51 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008067/0.341, allocations: 0.687 MB / 447.3 MB, free: 10.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004204/0.3452, allocations: 2.225 MB / 449.5 MB, free: 8.582 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.3452, allocations: 0 / 449.5 MB, free: 8.582 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3452, allocations: 0 / 449.5 MB, free: 8.582 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.145e-05/0.3453, allocations: 0 / 449.5 MB, free: 8.582 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.003251/0.3485, allocations: 2.081 MB / 451.6 MB, free: 6.438 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.3486, allocations: 8.031 kB / 451.6 MB, free: 6.43 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.958e-05/0.3487, allocations: 66.53 kB / 451.7 MB, free: 6.355 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002401/0.3489, allocations: 202.7 kB / 451.9 MB, free: 6.156 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001916/0.3508, allocations: 1.367 MB / 453.2 MB, free: 4.719 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.306e-05/0.3509, allocations: 20.56 kB / 453.3 MB, free: 4.699 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.548e-05/0.351, allocations: 27.98 kB / 453.3 MB, free: 4.672 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009035/0.3519, allocations: 437.1 kB / 453.7 MB, free: 4.242 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.3519, allocations: 0 / 453.7 MB, free: 4.242 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.816e-05/0.3519, allocations: 12 kB / 453.7 MB, free: 4.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.496e-05/0.352, allocations: 11.98 kB / 453.7 MB, free: 4.219 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/0.353, allocations: 478 kB / 454.2 MB, free: 3.75 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002867/0.3559, allocations: 1.615 MB / 455.8 MB, free: 2.062 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008924/0.3568, allocations: 372.5 kB / 456.2 MB, free: 1.691 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006919/0.3575, allocations: 405.9 kB / 456.6 MB, free: 1.293 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01591/0.3734, allocations: 15.53 MB / 472.1 MB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006215/0.3741, allocations: 263.1 kB / 472.4 MB, free: 15.35 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.344e-06/0.3741, allocations: 0 / 472.4 MB, free: 15.35 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.002033/0.3762, allocations: 0.8573 MB / 473.2 MB, free: 14.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5e-05/0.3762, allocations: 63.33 kB / 473.3 MB, free: 14.39 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001656/0.3779, allocations: 1.455 MB / 474.7 MB, free: 12.89 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.922e-05/0.3779, allocations: 33.7 kB / 474.8 MB, free: 12.86 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005945/0.3785, allocations: 0.7154 MB / 475.5 MB, free: 12.13 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.283e-05/0.3786, allocations: 103.2 kB / 475.6 MB, free: 12.03 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001825/0.3788, allocations: 134.1 kB / 475.7 MB, free: 11.89 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.379, allocations: 326 kB / 476 MB, free: 11.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004456/0.3794, allocations: 157 kB / 476.2 MB, free: 11.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005715/0.38, allocations: 359.4 kB / 476.5 MB, free: 10.97 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009709/0.381, allocations: 0.5255 MB / 477.1 MB, free: 10.36 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.381, allocations: 4 kB / 477.1 MB, free: 10.35 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001481/0.3825, allocations: 0.7681 MB / 477.8 MB, free: 9.574 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.3825, allocations: 4 kB / 477.8 MB, free: 9.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.396e-05/0.3826, allocations: 44.09 kB / 477.9 MB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003231/0.3829, allocations: 140.7 kB / 478 MB, free: 9.387 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004073/0.3833, allocations: 107.7 kB / 478.1 MB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000633/0.384, allocations: 0.6852 MB / 478.8 MB, free: 8.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005489/0.3845, allocations: 71.59 kB / 478.9 MB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.393e-05/0.3846, allocations: 32 kB / 478.9 MB, free: 8.469 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.0003753/0.385, allocations: 273.6 kB / 479.2 MB, free: 8.191 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001692/0.3852, allocations: 198.8 kB / 479.4 MB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00173/0.3869, allocations: 0.7425 MB / 480.1 MB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.3869, allocations: 4 kB / 480.1 MB, free: 7.238 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3869, allocations: 0 / 480.1 MB, free: 7.238 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3869, allocations: 4 kB / 480.1 MB, free: 7.234 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002159/0.3891, allocations: 1.314 MB / 481.4 MB, free: 5.852 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.274e-05/0.3892, allocations: 36 kB / 481.5 MB, free: 5.816 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002474/0.3894, allocations: 47.89 kB / 481.5 MB, free: 5.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002322/0.3897, allocations: 128.9 kB / 481.6 MB, free: 5.641 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.424e-05/0.3897, allocations: 23.86 kB / 481.7 MB, free: 5.617 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005419/0.3903, allocations: 0.6657 MB / 482.3 MB, free: 4.926 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.3903, allocations: 11.98 kB / 482.3 MB, free: 4.914 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001264/0.3915, allocations: 0.7141 MB / 483.1 MB, free: 4.172 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004067/0.392, allocations: 291.7 kB / 483.3 MB, free: 3.867 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001484/0.3921, allocations: 4 kB / 483.4 MB, free: 3.863 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004344/0.3926, allocations: 31.95 kB / 483.4 MB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.3927, allocations: 43.91 kB / 483.4 MB, free: 3.789 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.284e-05/0.3927, allocations: 19.98 kB / 483.4 MB, free: 3.77 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001115/0.3938, allocations: 0.9571 MB / 484.4 MB, free: 2.793 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3938, allocations: 4 kB / 484.4 MB, free: 2.789 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008702/0.3947, allocations: 331.6 kB / 484.7 MB, free: 2.465 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.002297/0.397, allocations: 1.752 MB / 486.5 MB, free: 0.6719 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001301/0.3983, allocations: 0.5114 MB / 487 MB, free: 152 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3984, allocations: 0 / 487 MB, free: 152 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006507/0.399, allocations: 296.3 kB / 487.3 MB, free: 15.85 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001298/0.4003, allocations: 310.7 kB / 487.6 MB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01251/0.4128, allocations: 9.01 MB / 496.6 MB, free: 6.148 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006474/0.4135, allocations: 1.145 MB / 497.7 MB, free: 4.973 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005541/0.4141, allocations: 203.9 kB / 497.9 MB, free: 4.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000559/0.4147, allocations: 0.5618 MB / 498.5 MB, free: 4.211 MB / 414.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4147, allocations: 0 / 498.5 MB, free: 4.211 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06928/0.4839, allocations: 35.32 MB / 0.5213 GB, free: 1.023 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.88/14.36, allocations: 15.42 kB / 0.5213 GB, free: 1.012 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)