Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_4_1_0-beta_om_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.001648/0.001648, 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.001902/0.001902, 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 4.1.0-beta.om/package.mo): time 1.555/1.555, allocations: 227.7 MB / 247.2 MB, free: 10.2 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 63.89 kB / 358.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2903/0.2922, allocations: 50.55 MB / 409.1 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008854/0.3012, allocations: 8.047 MB / 417.1 MB, free: 9.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02258/0.3238, allocations: 19.46 MB / 436.6 MB, free: 5.801 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001371/0.3252, allocations: 59.44 kB / 436.6 MB, free: 5.742 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002688/0.3279, allocations: 0.839 MB / 437.5 MB, free: 4.898 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006638/0.3346, allocations: 1.798 MB / 439.3 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005243/0.3399, allocations: 1.346 MB / 440.6 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006563/0.3465, allocations: 3.288 MB / 443.9 MB, free: 14.44 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000527/0.347, allocations: 224.6 kB / 444.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009841/0.348, allocations: 0.5521 MB / 444.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007123/0.3488, allocations: 0.5551 MB / 445.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001015/0.3489, allocations: 40 kB / 445.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005146/0.354, allocations: 1.459 MB / 446.7 MB, free: 11.58 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002934/0.3544, allocations: 170.8 kB / 446.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001055/0.3554, allocations: 0.6793 MB / 447.6 MB, free: 10.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004692/0.3601, allocations: 2.221 MB / 449.8 MB, free: 8.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.3602, allocations: 4 kB / 449.8 MB, free: 8.496 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3602, allocations: 0 / 449.8 MB, free: 8.496 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.701e-05/0.3602, allocations: 0 / 449.8 MB, free: 8.496 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.003135/0.3633, allocations: 2.074 MB / 451.9 MB, free: 6.359 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.3634, allocations: 8.031 kB / 451.9 MB, free: 6.352 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.147e-05/0.3635, allocations: 66.53 kB / 451.9 MB, free: 6.277 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002354/0.3637, allocations: 202.7 kB / 452.1 MB, free: 6.078 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001852/0.3656, allocations: 1.367 MB / 453.5 MB, free: 4.641 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.3656, allocations: 16.56 kB / 453.5 MB, free: 4.625 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.94e-05/0.3657, allocations: 39.92 kB / 453.6 MB, free: 4.586 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008904/0.3666, allocations: 425.1 kB / 454 MB, free: 4.168 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.3666, allocations: 4 kB / 454 MB, free: 4.164 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.496e-05/0.3667, allocations: 11.98 kB / 454 MB, free: 4.152 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.903e-05/0.3667, allocations: 15.98 kB / 454 MB, free: 4.137 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001082/0.3678, allocations: 470.1 kB / 454.5 MB, free: 3.676 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002739/0.3705, allocations: 1.619 MB / 456.1 MB, free: 1.984 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009367/0.3715, allocations: 371.4 kB / 456.4 MB, free: 1.613 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007409/0.3723, allocations: 413.8 kB / 456.9 MB, free: 1.207 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01626/0.3885, allocations: 15.53 MB / 472.4 MB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006378/0.3892, allocations: 259.7 kB / 472.6 MB, free: 15.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.144e-06/0.3892, allocations: 0 / 472.6 MB, free: 15.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.002167/0.3914, allocations: 0.8457 MB / 473.5 MB, free: 14.39 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.316e-05/0.3915, allocations: 63.34 kB / 473.5 MB, free: 14.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001782/0.3933, allocations: 1.452 MB / 475 MB, free: 12.83 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.015e-05/0.3933, allocations: 37.7 kB / 475 MB, free: 12.79 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006423/0.394, allocations: 0.7271 MB / 475.8 MB, free: 12.05 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.386e-05/0.3941, allocations: 99.2 kB / 475.9 MB, free: 11.95 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001969/0.3943, allocations: 130.1 kB / 476 MB, free: 11.82 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.3944, allocations: 326 kB / 476.3 MB, free: 11.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004524/0.3949, allocations: 153 kB / 476.4 MB, free: 11.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005949/0.3955, allocations: 367.4 kB / 476.8 MB, free: 10.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001038/0.3965, allocations: 0.5255 MB / 477.3 MB, free: 10.28 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.3965, allocations: 0 / 477.3 MB, free: 10.28 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00156/0.3981, allocations: 0.7679 MB / 478.1 MB, free: 9.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.3981, allocations: 8 kB / 478.1 MB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.476e-05/0.3982, allocations: 40 kB / 478.1 MB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000326/0.3985, allocations: 136.8 kB / 478.3 MB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004208/0.399, allocations: 116 kB / 478.4 MB, free: 9.203 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006567/0.3996, allocations: 0.6812 MB / 479.1 MB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005423/0.4002, allocations: 71.59 kB / 479.1 MB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.577e-05/0.4003, allocations: 36.06 kB / 479.2 MB, free: 8.391 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.0004374/0.4007, allocations: 277.7 kB / 479.5 MB, free: 8.109 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002038/0.4009, allocations: 202.7 kB / 479.7 MB, free: 7.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001813/0.4027, allocations: 0.7347 MB / 480.4 MB, free: 7.164 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.4028, allocations: 7.984 kB / 480.4 MB, free: 7.156 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.4028, allocations: 0 / 480.4 MB, free: 7.156 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.4028, allocations: 0 / 480.4 MB, free: 7.156 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002218/0.405, allocations: 1.319 MB / 481.7 MB, free: 5.766 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.247e-05/0.4051, allocations: 32 kB / 481.7 MB, free: 5.734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002509/0.4053, allocations: 56 kB / 481.8 MB, free: 5.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002569/0.4056, allocations: 120.8 kB / 481.9 MB, free: 5.559 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.431e-05/0.4057, allocations: 23.92 kB / 481.9 MB, free: 5.535 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006029/0.4063, allocations: 0.6617 MB / 482.6 MB, free: 4.848 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4063, allocations: 8 kB / 482.6 MB, free: 4.84 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00137/0.4077, allocations: 0.7141 MB / 483.3 MB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003949/0.4081, allocations: 287.8 kB / 483.6 MB, free: 3.797 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001472/0.4082, allocations: 11.98 kB / 483.6 MB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003997/0.4086, allocations: 27.91 kB / 483.6 MB, free: 3.758 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001275/0.4088, allocations: 43.89 kB / 483.7 MB, free: 3.715 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.747e-05/0.4088, allocations: 24 kB / 483.7 MB, free: 3.691 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001305/0.4101, allocations: 0.961 MB / 484.7 MB, free: 2.711 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4101, allocations: 0 / 484.7 MB, free: 2.711 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008693/0.411, allocations: 335.5 kB / 485 MB, free: 2.383 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.0025/0.4135, allocations: 1.742 MB / 486.7 MB, free: 0.6016 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001381/0.4149, allocations: 0.5083 MB / 487.2 MB, free: 84 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4149, allocations: 128 / 487.2 MB, free: 84 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006817/0.4156, allocations: 299.9 kB / 487.5 MB, free: 15.78 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00139/0.417, allocations: 322.8 kB / 487.9 MB, free: 15.46 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0133/0.4303, allocations: 9.013 MB / 496.9 MB, free: 6.066 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007287/0.4311, allocations: 1.153 MB / 498 MB, free: 4.883 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005762/0.4317, allocations: 199.9 kB / 498.2 MB, free: 4.684 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005951/0.4323, allocations: 0.5579 MB / 498.8 MB, free: 4.129 MB / 414.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4323, allocations: 0 / 498.8 MB, free: 4.129 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07373/0.506, allocations: 35.35 MB / 0.5216 GB, free: 1.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.19/15.69, allocations: 11.27 kB / 0.5216 GB, free: 1.082 MB / 446.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)