Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001045/0.001045, allocations: 122.8 kB / 17.79 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001088/0.001088, allocations: 197.2 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.313/1.313, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2464, allocations: 50.53 MB / 408.7 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01375/0.2602, allocations: 15.31 MB / 424.1 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02289/0.2831, allocations: 20.79 MB / 444.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002277/0.2855, allocations: 87.25 kB / 444.9 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003091/0.2886, allocations: 1.263 MB / 446.2 MB, free: 11.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007245/0.2959, allocations: 2.375 MB / 448.6 MB, free: 9.539 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004698/0.3006, allocations: 1.436 MB / 450 MB, free: 8.094 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01007/0.3107, allocations: 6.687 MB / 456.7 MB, free: 1.387 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000884/0.3116, allocations: 477.5 kB / 457.2 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001753/0.3134, allocations: 1.135 MB / 458.3 MB, free: 15.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001227/0.3146, allocations: 1.145 MB / 459.4 MB, free: 14.6 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002016/0.3148, allocations: 72 kB / 459.5 MB, free: 14.53 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004614/0.3195, allocations: 1.483 MB / 461 MB, free: 13.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003738/0.3199, allocations: 337.5 kB / 461.3 MB, free: 12.71 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001516/0.3214, allocations: 1.436 MB / 462.8 MB, free: 11.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006596/0.328, allocations: 3.997 MB / 466.8 MB, free: 7.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.543e-06/0.328, allocations: 7.875 kB / 466.8 MB, free: 7.242 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.328, allocations: 0 / 466.8 MB, free: 7.242 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.427e-05/0.3281, allocations: 0 / 466.8 MB, free: 7.242 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005511/0.3336, allocations: 3.958 MB / 470.7 MB, free: 3.203 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.3337, allocations: 12.02 kB / 470.7 MB, free: 3.191 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001146/0.3338, allocations: 94.52 kB / 470.8 MB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004078/0.3342, allocations: 437.3 kB / 471.2 MB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003286/0.3375, allocations: 2.506 MB / 473.8 MB, free: 88 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.991e-05/0.3376, allocations: 37 kB / 473.8 MB, free: 52 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/0.3377, allocations: 51.95 kB / 473.8 MB, free: 0 / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/0.3391, allocations: 0.7343 MB / 474.6 MB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.3391, allocations: 0 / 474.6 MB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.25e-05/0.3392, allocations: 20 kB / 474.6 MB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.141e-05/0.3392, allocations: 23.98 kB / 474.6 MB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001517/0.3407, allocations: 0.8085 MB / 475.4 MB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00494/0.3457, allocations: 3.118 MB / 478.5 MB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001192/0.3469, allocations: 0.5781 MB / 479.1 MB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009655/0.3479, allocations: 0.6477 MB / 479.8 MB, free: 9.969 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02888/0.3768, allocations: 30.76 MB / 0.4986 GB, free: 6.957 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007614/0.3776, allocations: 365.7 kB / 0.4989 GB, free: 6.59 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 3.146e-06/0.3776, allocations: 0 / 0.4989 GB, free: 6.59 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002214/0.3798, allocations: 1.134 MB / 0.5 GB, free: 5.445 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/0.3798, allocations: 55.41 kB / 0.5001 GB, free: 5.379 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003445/0.3833, allocations: 3.09 MB / 0.5031 GB, free: 2.289 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.814e-05/0.3834, allocations: 37.7 kB / 0.5031 GB, free: 2.246 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001211/0.3846, allocations: 1.582 MB / 0.5047 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001565/0.3848, allocations: 178.5 kB / 0.5048 GB, free: 492 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002875/0.3851, allocations: 230.4 kB / 0.5051 GB, free: 256 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.3852, allocations: 341.9 kB / 0.5054 GB, free: 15.91 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005872/0.3858, allocations: 237.9 kB / 0.5056 GB, free: 15.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000782/0.3866, allocations: 0.602 MB / 0.5062 GB, free: 14.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001384/0.388, allocations: 0.9051 MB / 0.5071 GB, free: 13.82 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.797e-06/0.388, allocations: 4 kB / 0.5071 GB, free: 13.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00215/0.3902, allocations: 1.262 MB / 0.5083 GB, free: 12.55 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.3902, allocations: 10.97 kB / 0.5083 GB, free: 12.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001092/0.3903, allocations: 80 kB / 0.5084 GB, free: 12.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.124e-05/0.3904, allocations: 20 kB / 0.5084 GB, free: 12.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000716/0.3911, allocations: 208.1 kB / 0.5086 GB, free: 12.24 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.264e-05/0.3911, allocations: 23.92 kB / 0.5087 GB, free: 12.22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009565/0.3921, allocations: 111.3 kB / 0.5088 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.732e-05/0.3922, allocations: 67.94 kB / 0.5088 GB, free: 12.04 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000668/0.3929, allocations: 453.4 kB / 0.5093 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000351/0.3932, allocations: 425.2 kB / 0.5097 GB, free: 11.17 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002454/0.3957, allocations: 1.207 MB / 0.5108 GB, free: 9.945 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.3957, allocations: 4 kB / 0.5108 GB, free: 9.941 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.3957, allocations: 4 kB / 0.5108 GB, free: 9.938 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.677e-06/0.3957, allocations: 3.984 kB / 0.5108 GB, free: 9.934 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003561/0.3993, allocations: 2.147 MB / 0.5129 GB, free: 7.723 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.39e-05/0.3994, allocations: 68 kB / 0.513 GB, free: 7.656 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004735/0.3999, allocations: 103.9 kB / 0.5131 GB, free: 7.555 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.241e-06/0.3999, allocations: 0 / 0.5131 GB, free: 7.555 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.928e-05/0.4, allocations: 32 kB / 0.5131 GB, free: 7.523 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.793e-06/0.4, allocations: 4 kB / 0.5131 GB, free: 7.52 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4, allocations: 0 / 0.5131 GB, free: 7.52 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002396/0.4024, allocations: 1.347 MB / 0.5145 GB, free: 6.145 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009174/0.4033, allocations: 0.5022 MB / 0.5149 GB, free: 5.621 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003025/0.4036, allocations: 8 kB / 0.515 GB, free: 5.613 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007049/0.4043, allocations: 31.97 kB / 0.515 GB, free: 5.582 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/0.4045, allocations: 59.88 kB / 0.515 GB, free: 5.523 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.742e-05/0.4046, allocations: 40 kB / 0.5151 GB, free: 5.484 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002613/0.4072, allocations: 2.011 MB / 0.517 GB, free: 3.48 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4072, allocations: 0 / 0.517 GB, free: 3.48 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001328/0.4085, allocations: 0.5969 MB / 0.5176 GB, free: 2.883 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * 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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003455/0.412, allocations: 2.585 MB / 0.5202 GB, free: 272 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001566/0.4136, allocations: 0.8012 MB / 0.5209 GB, free: 15.43 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4136, allocations: 1.312 kB / 0.5209 GB, free: 15.43 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007245/0.4143, allocations: 447.1 kB / 0.5214 GB, free: 14.97 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002564/0.4169, allocations: 0.6509 MB / 0.522 GB, free: 14.32 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2153/0.6322, allocations: 17.05 MB / 0.5387 GB, free: 128.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009521/0.6332, allocations: 1.713 MB / 0.5403 GB, free: 127.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009919/0.6342, allocations: 357.6 kB / 0.5407 GB, free: 127.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009508/0.6352, allocations: 1.265 MB / 0.5419 GB, free: 127.4 MB / 462.1 MB Notification: Performance of SimCode: time 7.41e-07/0.6352, allocations: 3.688 kB / 0.5419 GB, free: 127.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08677/0.7219, allocations: 63 MB / 0.6034 GB, free: 69.28 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.6/16.32, allocations: 11.78 kB / 0.6034 GB, free: 69.27 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)