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.00644/0.00644, allocations: 95.31 kB / 15.73 MB, free: 6.051 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.001548/0.001548, allocations: 202.6 kB / 16.68 MB, free: 5.973 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.469/1.469, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.144/0.144, allocations: 5.382 MB / 295.9 MB, free: 2.879 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 60.14 kB / 408.8 MB, free: 14.25 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.252, allocations: 50.62 MB / 459.4 MB, free: 19.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter): time 0.008074/0.2601, allocations: 8.126 MB / 467.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00608/0.2662, allocations: 2.548 MB / 470.1 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001522/0.2678, allocations: 65.81 kB / 470.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006562/0.2744, allocations: 3.028 MB / 473.2 MB, free: 9.824 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003143/0.2776, allocations: 0.8571 MB / 474 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002021/0.2796, allocations: 0.8265 MB / 474.9 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004879/0.2845, allocations: 3.656 MB / 478.5 MB, free: 6.836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01318/0.2977, allocations: 10.38 MB / 488.9 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004027/0.3018, allocations: 2.153 MB / 491 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004402/0.3062, allocations: 2.388 MB / 493.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001684/0.3079, allocations: 0.6679 MB / 494.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002935/0.3108, allocations: 0.9139 MB / 495 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00146/0.3123, allocations: 1.22 MB / 496.2 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003653/0.316, allocations: 2.358 MB / 498.6 MB, free: 10.48 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01004/0.326, allocations: 8.557 MB / 0.4953 GB, free: 1.895 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.3261, allocations: 4 kB / 0.4953 GB, free: 1.891 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.296e-06/0.3261, allocations: 3.938 kB / 0.4953 GB, free: 1.887 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002151/0.3263, allocations: 0 / 0.4953 GB, free: 1.887 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: 1072 * Number of variables: 1072 Notification: Performance of Generate backend data structure: time 0.01565/0.342, allocations: 4.866 MB / 0.5 GB, free: 12.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.833e-05/0.3421, allocations: 8.031 kB / 0.5 GB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002106/0.3442, allocations: 0.5797 MB / 0.5006 GB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01014/0.3543, allocations: 1.563 MB / 0.5021 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006018/0.3604, allocations: 2.616 MB / 0.5047 GB, free: 8.121 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003689/0.3608, allocations: 300 kB / 0.505 GB, free: 7.824 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001705/0.3625, allocations: 392 kB / 0.5053 GB, free: 7.441 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01655/0.3791, allocations: 6.36 MB / 0.5115 GB, free: 1.008 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000144/0.3793, allocations: 4 kB / 0.5115 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001215/0.3805, allocations: 160 kB / 0.5117 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002644/0.3808, allocations: 199.4 kB / 0.5119 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01183/0.3926, allocations: 5.362 MB / 0.5171 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04031/0.433, allocations: 21.41 MB / 0.538 GB, free: 5.176 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005799/0.4388, allocations: 3.797 MB / 0.5417 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001278/0.4401, allocations: 0.7067 MB / 0.5424 GB, free: 240 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001664/0.4403, allocations: 110.1 kB / 0.5425 GB, free: 112 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.4404, allocations: 43.5 kB / 0.5426 GB, free: 60 kB / 414.1 MB Notification: Performance of pre-optimization done (n=86): time 3.046e-06/0.4404, allocations: 0 / 0.5426 GB, free: 60 kB / 414.1 MB Notification: Performance of matching and sorting (n=86): time 0.00308/0.4435, allocations: 1.62 MB / 0.5442 GB, free: 14.43 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.5e-05/0.4436, allocations: 86.11 kB / 0.5442 GB, free: 14.33 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003049/0.4466, allocations: 1.606 MB / 0.5458 GB, free: 12.71 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001084/0.4467, allocations: 41.7 kB / 0.5459 GB, free: 12.66 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001494/0.4482, allocations: 1.846 MB / 0.5477 GB, free: 10.8 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005737/0.4488, allocations: 337.4 kB / 0.548 GB, free: 10.46 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001125/0.45, allocations: 0.4959 MB / 0.5485 GB, free: 9.961 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.4502, allocations: 349.9 kB / 0.5488 GB, free: 9.613 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001831/0.452, allocations: 1.075 MB / 0.5499 GB, free: 8.527 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00242/0.4545, allocations: 2.017 MB / 0.5518 GB, free: 6.004 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003988/0.4585, allocations: 3.058 MB / 0.5548 GB, free: 2.449 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.75e-05/0.4585, allocations: 12 kB / 0.5548 GB, free: 2.438 MB / 430.1 MB Notification: Performance of matching and sorting (n=279) (initialization): time 0.005714/0.4642, allocations: 3.075 MB / 0.5578 GB, free: 15.35 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.308e-05/0.4643, allocations: 20 kB / 0.5578 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-05/0.4644, allocations: 32 kB / 0.5579 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.136e-05/0.4645, allocations: 55.94 kB / 0.5579 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001999/0.4665, allocations: 0.5654 MB / 0.5585 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-05/0.4666, allocations: 71.72 kB / 0.5585 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002084/0.4687, allocations: 337.9 kB / 0.5589 GB, free: 14.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003443/0.4691, allocations: 127.9 kB / 0.559 GB, free: 14.15 MB / 446.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.003925/0.473, allocations: 1.641 MB / 0.5606 GB, free: 12.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005166/0.4736, allocations: 131.1 kB / 0.5607 GB, free: 12.38 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002721/0.4763, allocations: 1.378 MB / 0.5621 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001754/0.4781, allocations: 1.057 MB / 0.5631 GB, free: 9.922 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.148e-05/0.4781, allocations: 3.938 kB / 0.5631 GB, free: 9.918 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.541e-05/0.4781, allocations: 11.97 kB / 0.5631 GB, free: 9.906 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009196/0.4873, allocations: 4.263 MB / 0.5673 GB, free: 5.574 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/0.4874, allocations: 4.031 kB / 0.5673 GB, free: 5.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009333/0.4883, allocations: 203.7 kB / 0.5675 GB, free: 5.371 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.96e-05/0.4883, allocations: 15.94 kB / 0.5675 GB, free: 5.355 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.968e-05/0.4884, allocations: 23.98 kB / 0.5675 GB, free: 5.332 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.334e-05/0.4885, allocations: 4 kB / 0.5675 GB, free: 5.328 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.4885, allocations: 3.938 kB / 0.5675 GB, free: 5.324 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003179/0.4916, allocations: 2.103 MB / 0.5696 GB, free: 3.195 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007311/0.4924, allocations: 323.8 kB / 0.5699 GB, free: 2.859 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003/0.4927, allocations: 19.98 kB / 0.5699 GB, free: 2.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006692/0.4934, allocations: 55.94 kB / 0.57 GB, free: 2.785 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001476/0.4935, allocations: 60.86 kB / 0.57 GB, free: 2.727 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.706e-05/0.4936, allocations: 31.98 kB / 0.57 GB, free: 2.695 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001553/0.4952, allocations: 1.101 MB / 0.5711 GB, free: 1.59 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4952, allocations: 0 / 0.5711 GB, free: 1.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002491/0.4977, allocations: 0.86 MB / 0.572 GB, free: 0.7266 MB / 446.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.003534/0.5012, allocations: 2.739 MB / 0.5746 GB, free: 13.94 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003404/0.5046, allocations: 2.021 MB / 0.5766 GB, free: 11.92 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.5047, allocations: 0 / 0.5766 GB, free: 11.92 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008756/0.5055, allocations: 0.5716 MB / 0.5772 GB, free: 11.35 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001775/0.5073, allocations: 301.1 kB / 0.5774 GB, free: 11.07 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2436/0.7509, allocations: 18.76 MB / 0.5958 GB, free: 108.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003184/0.7542, allocations: 2.903 MB / 0.5986 GB, free: 107.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002037/0.7562, allocations: 0.8152 MB / 0.5994 GB, free: 107.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001357/0.7576, allocations: 1.122 MB / 0.6005 GB, free: 106.2 MB / 462.1 MB Notification: Performance of SimCode: time 1.183e-06/0.7576, allocations: 0 / 0.6005 GB, free: 106.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07959/0.8372, allocations: 44.36 MB / 0.6438 GB, free: 79.29 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.67/14.51, allocations: 12.86 kB / 0.6438 GB, free: 79.28 MB / 462.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)