Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo", uses=false) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006575/0.006575, allocations: 99.77 kB / 15.73 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001451/0.001451, allocations: 193.5 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.541/1.541, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02984/0.02984, allocations: 5.393 MB / 295.9 MB, free: 9.426 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001866/0.001866, allocations: 61.62 kB / 408.8 MB, free: 26.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09884/0.1007, allocations: 50.62 MB / 459.4 MB, free: 7.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter): time 0.0104/0.1112, allocations: 8.136 MB / 467.5 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005039/0.1162, allocations: 2.534 MB / 470.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009206/0.1172, allocations: 63.81 kB / 470.1 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006869/0.1241, allocations: 3.024 MB / 473.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002852/0.127, allocations: 0.8609 MB / 474 MB, free: 9.168 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002173/0.1292, allocations: 0.8257 MB / 474.8 MB, free: 8.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004923/0.1341, allocations: 3.654 MB / 478.5 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0157/0.1498, allocations: 10.37 MB / 488.9 MB, free: 10.21 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003877/0.1538, allocations: 2.155 MB / 491 MB, free: 8.047 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004367/0.1582, allocations: 2.387 MB / 493.4 MB, free: 5.652 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001452/0.1596, allocations: 0.6602 MB / 494.1 MB, free: 4.992 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002366/0.162, allocations: 0.9255 MB / 495 MB, free: 4.066 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001521/0.1636, allocations: 1.224 MB / 496.2 MB, free: 2.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004169/0.1678, allocations: 2.351 MB / 498.6 MB, free: 492 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01289/0.1807, allocations: 8.564 MB / 0.4952 GB, free: 7.891 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.666e-06/0.1807, allocations: 0 / 0.4952 GB, free: 7.891 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.1808, allocations: 0 / 0.4952 GB, free: 7.891 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002314/0.181, allocations: 0 / 0.4952 GB, free: 7.891 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: 1072 * Number of variables: 1072 Notification: Performance of Generate backend data structure: time 0.01805/0.199, allocations: 4.87 MB / 0.5 GB, free: 2.949 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.911e-05/0.1991, allocations: 12.03 kB / 0.5 GB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002084/0.2012, allocations: 0.5719 MB / 0.5006 GB, free: 2.355 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009833/0.2111, allocations: 1.567 MB / 0.5021 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2207/0.4318, allocations: 2.617 MB / 0.5047 GB, free: 44.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002903/0.4321, allocations: 299.9 kB / 0.5049 GB, free: 44 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001149/0.4333, allocations: 387.9 kB / 0.5053 GB, free: 43.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01385/0.4471, allocations: 6.36 MB / 0.5115 GB, free: 41.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001033/0.4473, allocations: 6.641 kB / 0.5115 GB, free: 41.31 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004089/0.4477, allocations: 159.6 kB / 0.5117 GB, free: 41.19 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003046/0.448, allocations: 202.2 kB / 0.5119 GB, free: 41.17 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01114/0.4592, allocations: 5.364 MB / 0.5171 GB, free: 39.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02441/0.4836, allocations: 21.41 MB / 0.538 GB, free: 22.08 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004042/0.4877, allocations: 3.78 MB / 0.5417 GB, free: 17.88 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008624/0.4886, allocations: 0.7083 MB / 0.5424 GB, free: 17.17 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001193/0.4887, allocations: 110 kB / 0.5425 GB, free: 17.05 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.098e-05/0.4887, allocations: 51.34 kB / 0.5426 GB, free: 16.99 MB / 382.1 MB Notification: Performance of pre-optimization done (n=86): time 2.655e-06/0.4887, allocations: 0 / 0.5426 GB, free: 16.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=86): time 0.002321/0.4911, allocations: 1.616 MB / 0.5441 GB, free: 15.37 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.33e-05/0.4911, allocations: 90.11 kB / 0.5442 GB, free: 15.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002026/0.4932, allocations: 1.611 MB / 0.5458 GB, free: 13.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.167e-05/0.4932, allocations: 37.7 kB / 0.5458 GB, free: 13.63 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008476/0.4941, allocations: 1.845 MB / 0.5476 GB, free: 11.83 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002152/0.4943, allocations: 340.7 kB / 0.548 GB, free: 11.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005809/0.4949, allocations: 499.7 kB / 0.5484 GB, free: 11.01 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.317e-05/0.495, allocations: 349.9 kB / 0.5488 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001227/0.4962, allocations: 1.079 MB / 0.5498 GB, free: 9.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001585/0.4978, allocations: 2.014 MB / 0.5518 GB, free: 7.078 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002806/0.5006, allocations: 3.058 MB / 0.5548 GB, free: 3.527 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.248e-05/0.5007, allocations: 8 kB / 0.5548 GB, free: 3.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=279) (initialization): time 0.004221/0.5049, allocations: 3.075 MB / 0.5578 GB, free: 444 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.666e-05/0.505, allocations: 23.94 kB / 0.5578 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.316e-05/0.505, allocations: 36 kB / 0.5578 GB, free: 384 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.433e-05/0.5051, allocations: 48 kB / 0.5579 GB, free: 336 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001782/0.5069, allocations: 0.5617 MB / 0.5584 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.906e-05/0.507, allocations: 91.47 kB / 0.5585 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001733/0.5087, allocations: 337.8 kB / 0.5589 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002253/0.5089, allocations: 121.1 kB / 0.559 GB, free: 15.23 MB / 398.1 MB Warning: Assuming fixed start value for the following 1 variables: voltageSource.plug_p.reference.gamma:VARIABLE(flow=false start = 0.0 unit = "rad" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 161 * Number of states: 0 () * Number of discrete variables: 1 (converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (278): * Single equations (assignments): 277 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.003172/0.5121, allocations: 1.641 MB / 0.5606 GB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00034/0.5125, allocations: 135.1 kB / 0.5607 GB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002633/0.5151, allocations: 1.38 MB / 0.562 GB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001673/0.5168, allocations: 1.061 MB / 0.5631 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.5168, allocations: 0 / 0.5631 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.395e-05/0.5168, allocations: 3.984 kB / 0.5631 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007557/0.5244, allocations: 4.269 MB / 0.5673 GB, free: 6.672 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.724e-06/0.5244, allocations: 0 / 0.5673 GB, free: 6.672 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009497/0.5254, allocations: 207.7 kB / 0.5675 GB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.598e-06/0.5254, allocations: 4 kB / 0.5675 GB, free: 6.465 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.561e-05/0.5255, allocations: 23.98 kB / 0.5675 GB, free: 6.441 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.075e-06/0.5255, allocations: 4 kB / 0.5675 GB, free: 6.438 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.5255, allocations: 12.06 kB / 0.5675 GB, free: 6.426 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003362/0.5289, allocations: 2.103 MB / 0.5695 GB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006826/0.5296, allocations: 316 kB / 0.5698 GB, free: 3.965 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001767/0.5298, allocations: 23.98 kB / 0.5699 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006123/0.5304, allocations: 51.94 kB / 0.5699 GB, free: 3.891 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001443/0.5305, allocations: 68.8 kB / 0.57 GB, free: 3.824 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.948e-05/0.5306, allocations: 27.98 kB / 0.57 GB, free: 3.797 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001747/0.5324, allocations: 1.101 MB / 0.5711 GB, free: 2.691 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5324, allocations: 4.062 kB / 0.5711 GB, free: 2.688 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002851/0.5352, allocations: 0.8677 MB / 0.5719 GB, free: 1.816 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (voltageSource.plug_p.reference.gamma,converter.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * 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.004054/0.5393, allocations: 2.72 MB / 0.5746 GB, free: 15.06 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004044/0.5434, allocations: 2.019 MB / 0.5766 GB, free: 13.05 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.5434, allocations: 4 kB / 0.5766 GB, free: 13.05 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001059/0.5445, allocations: 0.5725 MB / 0.5771 GB, free: 12.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002031/0.5465, allocations: 305.1 kB / 0.5774 GB, free: 12.19 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03168/0.5782, allocations: 18.77 MB / 0.5958 GB, free: 8.211 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003177/0.5814, allocations: 2.898 MB / 0.5986 GB, free: 5.277 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001982/0.5834, allocations: 0.8204 MB / 0.5994 GB, free: 4.449 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001675/0.5851, allocations: 1.124 MB / 0.6005 GB, free: 3.328 MB / 430.1 MB Notification: Performance of SimCode: time 7.02e-07/0.5851, allocations: 0 / 0.6005 GB, free: 3.328 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09253/0.6777, allocations: 44.36 MB / 0.6438 GB, free: 7.203 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.12/14.8, allocations: 13.34 kB / 0.6438 GB, free: 7.195 MB / 478.1 MB (rm -f PhotoVoltaics_PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter_res.csv --start-time 0 --stop-time 180 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.072 PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter.fmu > PhotoVoltaics_PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter.pipe 2>&1)