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.001586/0.001586, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001821/0.001821, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.407/1.407, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1712/0.1712, allocations: 5.389 MB / 295.8 MB, free: 2.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 63.89 kB / 357.5 MB, free: 1.512 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09332/0.09472, allocations: 50.62 MB / 408.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter): time 0.009993/0.1048, allocations: 8.111 MB / 416.2 MB, free: 6.691 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004829/0.1096, allocations: 2.566 MB / 418.8 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001138/0.1108, allocations: 63.81 kB / 418.9 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006735/0.1176, allocations: 3.014 MB / 421.9 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002631/0.1202, allocations: 0.8508 MB / 422.7 MB, free: 184 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1719/0.2922, allocations: 0.8064 MB / 423.5 MB, free: 35.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003943/0.2961, allocations: 3.627 MB / 427.2 MB, free: 35.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01079/0.3069, allocations: 10.46 MB / 437.6 MB, free: 32.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002064/0.309, allocations: 2.138 MB / 439.8 MB, free: 31.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002162/0.3112, allocations: 2.395 MB / 442.2 MB, free: 29.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006595/0.3119, allocations: 0.6613 MB / 442.8 MB, free: 29.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001361/0.3133, allocations: 0.9209 MB / 443.8 MB, free: 29.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007053/0.314, allocations: 1.219 MB / 445 MB, free: 29.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001757/0.3157, allocations: 2.364 MB / 447.3 MB, free: 27.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004896/0.3206, allocations: 8.481 MB / 455.8 MB, free: 24.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3207, allocations: 0 / 455.8 MB, free: 24.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.3207, allocations: 6.969 kB / 455.8 MB, free: 24.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001218/0.3208, allocations: 0 / 455.8 MB, free: 24.59 MB / 350.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.009396/0.3302, allocations: 4.783 MB / 460.6 MB, free: 22.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.3303, allocations: 9.625 kB / 460.6 MB, free: 22.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007153/0.331, allocations: 0.5746 MB / 461.2 MB, free: 21.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009014/0.34, allocations: 1.55 MB / 462.7 MB, free: 21.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004209/0.3442, allocations: 2.526 MB / 465.3 MB, free: 20.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002067/0.3445, allocations: 302.5 kB / 465.6 MB, free: 19.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009418/0.3454, allocations: 393.3 kB / 465.9 MB, free: 19.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01297/0.3584, allocations: 6.362 MB / 472.3 MB, free: 17.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001207/0.3586, allocations: 6.516 kB / 472.3 MB, free: 17.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008021/0.3594, allocations: 159.9 kB / 472.5 MB, free: 17.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000232/0.3596, allocations: 200.8 kB / 472.7 MB, free: 17.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01084/0.3705, allocations: 5.355 MB / 478 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02999/0.4005, allocations: 21.6 MB / 499.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005304/0.4058, allocations: 3.784 MB / 0.4916 GB, free: 9.004 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001119/0.407, allocations: 0.7145 MB / 0.4923 GB, free: 8.285 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000157/0.4072, allocations: 109.9 kB / 0.4924 GB, free: 8.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.024e-05/0.4072, allocations: 39.56 kB / 0.4924 GB, free: 8.113 MB / 366.1 MB Notification: Performance of pre-optimization done (n=86): time 3.075e-06/0.4072, allocations: 0 / 0.4924 GB, free: 8.113 MB / 366.1 MB Notification: Performance of matching and sorting (n=86): time 0.002879/0.4101, allocations: 1.611 MB / 0.494 GB, free: 6.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.914e-05/0.4102, allocations: 86.11 kB / 0.4941 GB, free: 6.395 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002534/0.4127, allocations: 1.61 MB / 0.4957 GB, free: 4.773 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.423e-05/0.4128, allocations: 41.7 kB / 0.4957 GB, free: 4.727 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001121/0.4139, allocations: 1.782 MB / 0.4975 GB, free: 2.934 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003003/0.4142, allocations: 322.7 kB / 0.4978 GB, free: 2.621 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007331/0.415, allocations: 495.4 kB / 0.4982 GB, free: 2.129 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.4151, allocations: 357.9 kB / 0.4986 GB, free: 1.773 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001649/0.4168, allocations: 1.077 MB / 0.4996 GB, free: 0.6914 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002181/0.419, allocations: 2.008 MB / 0.5016 GB, free: 14.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003609/0.4226, allocations: 3.055 MB / 0.5046 GB, free: 10.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-05/0.4226, allocations: 8 kB / 0.5046 GB, free: 10.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=279) (initialization): time 0.004822/0.4275, allocations: 3.071 MB / 0.5076 GB, free: 7.914 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.852e-05/0.4275, allocations: 21.41 kB / 0.5076 GB, free: 7.895 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.916e-05/0.4276, allocations: 36 kB / 0.5076 GB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.221e-05/0.4276, allocations: 52 kB / 0.5077 GB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001958/0.4296, allocations: 0.5677 MB / 0.5082 GB, free: 7.281 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.677e-05/0.4297, allocations: 77.12 kB / 0.5083 GB, free: 7.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001766/0.4315, allocations: 329 kB / 0.5086 GB, free: 6.898 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001957/0.4317, allocations: 124 kB / 0.5087 GB, free: 6.777 MB / 382.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.002451/0.4341, allocations: 1.634 MB / 0.5103 GB, free: 5.168 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003684/0.4345, allocations: 126.4 kB / 0.5105 GB, free: 5.043 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002514/0.437, allocations: 1.385 MB / 0.5118 GB, free: 3.652 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00163/0.4387, allocations: 1.057 MB / 0.5128 GB, free: 2.594 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.4387, allocations: 4 kB / 0.5128 GB, free: 2.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.466e-05/0.4387, allocations: 3.984 kB / 0.5129 GB, free: 2.586 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00773/0.4464, allocations: 4.286 MB / 0.517 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-06/0.4465, allocations: 0 / 0.517 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009031/0.4474, allocations: 207.8 kB / 0.5172 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-05/0.4474, allocations: 8 kB / 0.5172 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.794e-05/0.4475, allocations: 23.92 kB / 0.5173 GB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.767e-06/0.4475, allocations: 11.94 kB / 0.5173 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.4475, allocations: 0 / 0.5173 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002992/0.4505, allocations: 2.096 MB / 0.5193 GB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005539/0.4511, allocations: 315.2 kB / 0.5196 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002538/0.4513, allocations: 27.84 kB / 0.5197 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007198/0.4521, allocations: 59.92 kB / 0.5197 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/0.4522, allocations: 64.98 kB / 0.5198 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.618e-05/0.4523, allocations: 31.94 kB / 0.5198 GB, free: 11.37 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001684/0.454, allocations: 1.101 MB / 0.5209 GB, free: 10.26 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.454, allocations: 0 / 0.5209 GB, free: 10.26 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002554/0.4565, allocations: 0.8509 MB / 0.5217 GB, free: 9.406 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.003505/0.4601, allocations: 2.726 MB / 0.5244 GB, free: 6.645 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004286/0.4644, allocations: 2.4 MB / 0.5267 GB, free: 4.246 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.4644, allocations: 0 / 0.5267 GB, free: 4.246 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000864/0.4652, allocations: 0.5717 MB / 0.5273 GB, free: 3.676 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001774/0.467, allocations: 299.8 kB / 0.5276 GB, free: 3.398 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02945/0.4965, allocations: 19.36 MB / 0.5465 GB, free: 14.58 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003307/0.4998, allocations: 2.898 MB / 0.5493 GB, free: 11.65 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00202/0.5019, allocations: 0.8127 MB / 0.5501 GB, free: 10.83 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001565/0.5034, allocations: 1.12 MB / 0.5512 GB, free: 9.711 MB / 430.1 MB Notification: Performance of SimCode: time 8.12e-07/0.5035, allocations: 4 kB / 0.5512 GB, free: 9.707 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2382/0.7417, allocations: 43.07 MB / 0.5932 GB, free: 131.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.91, allocations: 2.688 kB / 0.5932 GB, free: 131.9 MB / 446.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)