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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.006675/0.006675, allocations: 170.2 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 223.2 MB / 239 MB, free: 1.789 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009888/0.0009886, allocations: 104.3 kB / 290.2 MB, free: 13.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.0248/0.0248, allocations: 5.402 MB / 346.7 MB, free: 5.539 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003394/0.0003394, allocations: 7.625 kB / 408.9 MB, free: 91.93 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1013, allocations: 51.62 MB / 460.5 MB, free: 47.93 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3873/0.4887, allocations: 92.3 MB / 0.5398 GB, free: 20.6 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000223/0.489, allocations: 71.75 kB / 0.5399 GB, free: 20.6 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2498/0.7388, allocations: 135.3 MB / 0.672 GB, free: 12.87 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.7388, allocations: 4 kB / 0.672 GB, free: 12.87 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000206/0.739, allocations: 87.88 kB / 0.6721 GB, free: 12.78 MB / 442.7 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.01336/0.7524, allocations: 3.875 MB / 0.6759 GB, free: 8.844 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/0.7525, allocations: 8.031 kB / 0.6759 GB, free: 8.836 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002055/0.7545, allocations: 0.5756 MB / 0.6764 GB, free: 8.25 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005422/0.76, allocations: 0.9556 MB / 0.6774 GB, free: 7.289 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006721/0.7667, allocations: 2.731 MB / 0.68 GB, free: 4.512 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002936/0.7671, allocations: 279.6 kB / 0.6803 GB, free: 4.238 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001084/0.7682, allocations: 375.9 kB / 0.6807 GB, free: 3.871 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01263/0.7808, allocations: 6.311 MB / 0.6868 GB, free: 13.39 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.257e-05/0.7809, allocations: 0 / 0.6868 GB, free: 13.39 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000435/0.7814, allocations: 160 kB / 0.687 GB, free: 13.24 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000317/0.7817, allocations: 291.3 kB / 0.6873 GB, free: 12.95 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01084/0.7925, allocations: 4.988 MB / 0.6921 GB, free: 7.961 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.277/1.07, allocations: 21.56 MB / 0.7132 GB, free: 86.91 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003961/1.074, allocations: 3.815 MB / 0.7169 GB, free: 84.61 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000127/1.074, allocations: 108.2 kB / 0.717 GB, free: 84.51 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/1.074, allocations: 48.92 kB / 0.7171 GB, free: 84.47 MB / 458.7 MB Notification: Performance of pre-optimization done (n=93): time 3.156e-06/1.074, allocations: 0 / 0.7171 GB, free: 84.47 MB / 458.7 MB Notification: Performance of matching and sorting (n=93): time 0.002691/1.076, allocations: 2.107 MB / 0.7191 GB, free: 83.96 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/1.077, allocations: 103.8 kB / 0.7192 GB, free: 83.87 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002029/1.079, allocations: 1.449 MB / 0.7206 GB, free: 83.7 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.351e-05/1.079, allocations: 39.2 kB / 0.7207 GB, free: 83.67 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008867/1.08, allocations: 1.762 MB / 0.7224 GB, free: 82.89 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002612/1.08, allocations: 350.4 kB / 0.7227 GB, free: 82.73 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/1.08, allocations: 42.59 kB / 0.7228 GB, free: 82.73 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001922/1.08, allocations: 449.6 kB / 0.7232 GB, free: 82.41 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001363/1.082, allocations: 1.128 MB / 0.7243 GB, free: 82.4 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001888/1.083, allocations: 2.056 MB / 0.7263 GB, free: 81.1 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002427/1.086, allocations: 1.534 MB / 0.7278 GB, free: 81.09 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.576e-05/1.086, allocations: 10.75 kB / 0.7278 GB, free: 81.09 MB / 458.7 MB Notification: Performance of matching and sorting (n=286) (initialization): time 0.004654/1.091, allocations: 3.181 MB / 0.7309 GB, free: 80.97 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.528e-05/1.091, allocations: 22.72 kB / 0.7309 GB, free: 80.97 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.289e-05/1.091, allocations: 33.38 kB / 0.731 GB, free: 80.97 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.69e-05/1.091, allocations: 62.16 kB / 0.731 GB, free: 80.96 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001742/1.092, allocations: 0.5572 MB / 0.7316 GB, free: 80.96 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.139e-05/1.093, allocations: 76.53 kB / 0.7317 GB, free: 80.96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001929/1.094, allocations: 364 kB / 0.732 GB, free: 80.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001659/1.095, allocations: 119.7 kB / 0.7321 GB, free: 80.89 MB / 458.7 MB Warning: Assuming fixed start value for the following 1 variables: converter.potentialSensor.plug_p.reference.gamma:VARIABLE(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 (282): * Single equations (assignments): 278 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002601/1.097, allocations: 1.638 MB / 0.7337 GB, free: 80.77 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002795/1.098, allocations: 126.8 kB / 0.7338 GB, free: 80.7 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002285/1.1, allocations: 1.51 MB / 0.7353 GB, free: 80.61 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001353/1.101, allocations: 1.181 MB / 0.7365 GB, free: 80.55 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/1.101, allocations: 3.938 kB / 0.7365 GB, free: 80.55 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/1.101, allocations: 3.938 kB / 0.7365 GB, free: 80.55 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007578/1.109, allocations: 4.478 MB / 0.7408 GB, free: 80.09 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/1.109, allocations: 1.344 kB / 0.7408 GB, free: 80.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007983/1.11, allocations: 201.4 kB / 0.741 GB, free: 80.09 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.294e-05/1.11, allocations: 8.656 kB / 0.741 GB, free: 80.08 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.087e-05/1.11, allocations: 23.19 kB / 0.7411 GB, free: 80.08 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.608e-06/1.11, allocations: 5.531 kB / 0.7411 GB, free: 80.08 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/1.11, allocations: 1.406 kB / 0.7411 GB, free: 80.08 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003373/1.113, allocations: 2.372 MB / 0.7434 GB, free: 79.65 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00085/1.114, allocations: 344.9 kB / 0.7437 GB, free: 79.48 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001509/1.114, allocations: 20.66 kB / 0.7437 GB, free: 79.48 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007464/1.115, allocations: 70.95 kB / 0.7438 GB, free: 79.48 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/1.115, allocations: 66.41 kB / 0.7439 GB, free: 79.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.629e-05/1.115, allocations: 27.94 kB / 0.7439 GB, free: 79.48 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001907/1.117, allocations: 1.097 MB / 0.745 GB, free: 79.37 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.5e-07/1.117, allocations: 4.062 kB / 0.745 GB, free: 79.37 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002544/1.12, allocations: 0.865 MB / 0.7458 GB, free: 79.18 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (converter.potentialSensor.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 (100): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002984/1.123, allocations: 3.328 MB / 0.7491 GB, free: 77.88 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002971/1.126, allocations: 2.123 MB / 0.7511 GB, free: 77.82 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/1.126, allocations: 0 / 0.7511 GB, free: 77.82 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008354/1.127, allocations: 0.6387 MB / 0.7518 GB, free: 77.81 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/1.128, allocations: 269.6 kB / 0.752 GB, free: 77.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0275/1.155, allocations: 39.22 MB / 0.7903 GB, free: 48.09 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002333/1.158, allocations: 2.963 MB / 0.7932 GB, free: 47.15 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002123/1.16, allocations: 0.8305 MB / 0.794 GB, free: 47.09 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001389/1.161, allocations: 1.123 MB / 0.7951 GB, free: 46.15 MB / 458.7 MB Notification: Performance of SimCode: time 1.202e-06/1.161, allocations: 3.172 kB / 0.7951 GB, free: 46.15 MB / 458.7 MB [CodegenCFunctions.tpl:6742:49-6742:49:writable] Error: Template error: what is this suppsoed to do?.