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: translateModel(PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter") translateModel(PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009469/0.0009468, allocations: 178 kB / 16.12 MB, free: 5.57 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.466/1.466, allocations: 223.3 MB / 240.1 MB, free: 9.914 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009038/0.0009038, allocations: 96.83 kB / 291.3 MB, free: 10.52 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02801/0.02801, allocations: 5.392 MB / 347.8 MB, free: 2.148 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003755/0.0003755, allocations: 12 kB / 410.1 MB, free: 60.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1038, allocations: 51.6 MB / 461.7 MB, free: 9.066 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3844/0.4883, allocations: 92.42 MB / 0.5411 GB, free: 11.68 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002294/0.4886, allocations: 76.02 kB / 0.5412 GB, free: 11.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6156/1.104, allocations: 134.8 MB / 0.6728 GB, free: 110.9 MB / 458.7 MB Notification: Performance of FrontEnd: time 5.811e-06/1.104, allocations: 4 kB / 0.6728 GB, free: 110.9 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006139/1.105, allocations: 85.88 kB / 0.6729 GB, free: 110.9 MB / 458.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.0236/1.128, allocations: 3.829 MB / 0.6767 GB, free: 109.7 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/1.129, allocations: 14.12 kB / 0.6767 GB, free: 109.7 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009162/1.138, allocations: 0.9485 MB / 0.6776 GB, free: 109.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009952/1.148, allocations: 2.774 MB / 0.6803 GB, free: 109 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004753/1.148, allocations: 277.8 kB / 0.6806 GB, free: 109 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001991/1.15, allocations: 368.4 kB / 0.6809 GB, free: 109 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0241/1.174, allocations: 6.346 MB / 0.6871 GB, free: 108.5 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002355/1.175, allocations: 3.938 kB / 0.6871 GB, free: 108.5 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001613/1.176, allocations: 160.7 kB / 0.6873 GB, free: 108.5 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00062/1.177, allocations: 293.8 kB / 0.6876 GB, free: 108.5 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01717/1.194, allocations: 4.987 MB / 0.6924 GB, free: 108.4 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05032/1.245, allocations: 21.58 MB / 0.7135 GB, free: 96.07 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006532/1.251, allocations: 3.821 MB / 0.7172 GB, free: 93.2 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001741/1.253, allocations: 0.7636 MB / 0.718 GB, free: 92.91 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001537/1.253, allocations: 107 kB / 0.7181 GB, free: 92.8 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/1.253, allocations: 49.97 kB / 0.7181 GB, free: 92.75 MB / 458.7 MB Notification: Performance of pre-optimization done (n=93): time 4.168e-06/1.253, allocations: 3.938 kB / 0.7181 GB, free: 92.75 MB / 458.7 MB Notification: Performance of matching and sorting (n=93): time 0.004379/1.258, allocations: 1.764 MB / 0.7198 GB, free: 92.07 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.363e-05/1.258, allocations: 93.27 kB / 0.7199 GB, free: 91.97 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004044/1.262, allocations: 1.59 MB / 0.7215 GB, free: 91.33 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001329/1.262, allocations: 37.61 kB / 0.7215 GB, free: 91.29 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001363/1.263, allocations: 1.771 MB / 0.7233 GB, free: 89.95 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004651/1.264, allocations: 344 kB / 0.7236 GB, free: 89.7 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002399/1.264, allocations: 51.47 kB / 0.7236 GB, free: 89.66 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003034/1.264, allocations: 441.9 kB / 0.724 GB, free: 89.29 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002308/1.267, allocations: 1.125 MB / 0.7251 GB, free: 88.88 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002143/1.269, allocations: 2.06 MB / 0.7272 GB, free: 87.11 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004502/1.273, allocations: 3.148 MB / 0.7302 GB, free: 84.77 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-05/1.273, allocations: 12.56 kB / 0.7302 GB, free: 84.77 MB / 458.7 MB Notification: Performance of matching and sorting (n=286) (initialization): time 0.006699/1.28, allocations: 3.156 MB / 0.7333 GB, free: 83.51 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.572e-05/1.28, allocations: 29 kB / 0.7334 GB, free: 83.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.684e-05/1.28, allocations: 35.47 kB / 0.7334 GB, free: 83.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.183e-05/1.28, allocations: 46.62 kB / 0.7334 GB, free: 83.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002612/1.283, allocations: 0.5639 MB / 0.734 GB, free: 83.44 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.627e-05/1.283, allocations: 69.48 kB / 0.7341 GB, free: 83.43 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002891/1.286, allocations: 363.3 kB / 0.7344 GB, free: 83.24 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002782/1.286, allocations: 122.9 kB / 0.7345 GB, free: 83.23 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.003515/1.29, allocations: 1.636 MB / 0.7361 GB, free: 82.38 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003871/1.29, allocations: 131.2 kB / 0.7362 GB, free: 82.31 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003245/1.293, allocations: 1.498 MB / 0.7377 GB, free: 81.71 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002079/1.295, allocations: 1.164 MB / 0.7388 GB, free: 81.26 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/1.295, allocations: 0 / 0.7388 GB, free: 81.26 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.379e-05/1.296, allocations: 3.469 kB / 0.7388 GB, free: 81.26 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0115/1.307, allocations: 4.507 MB / 0.7432 GB, free: 78.03 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.458e-06/1.307, allocations: 0 / 0.7432 GB, free: 78.03 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001058/1.308, allocations: 195.6 kB / 0.7434 GB, free: 77.88 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.551e-05/1.308, allocations: 7.844 kB / 0.7434 GB, free: 77.87 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.396e-05/1.308, allocations: 23.94 kB / 0.7435 GB, free: 77.85 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.004e-05/1.308, allocations: 8 kB / 0.7435 GB, free: 77.84 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/1.308, allocations: 8.062 kB / 0.7435 GB, free: 77.84 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003699/1.312, allocations: 2.27 MB / 0.7457 GB, free: 75.81 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008953/1.313, allocations: 345.1 kB / 0.746 GB, free: 75.49 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003972/1.313, allocations: 20 kB / 0.746 GB, free: 75.47 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/1.314, allocations: 71.17 kB / 0.7461 GB, free: 75.42 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/1.315, allocations: 67.14 kB / 0.7462 GB, free: 75.38 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.439e-05/1.315, allocations: 28 kB / 0.7462 GB, free: 75.35 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001573/1.316, allocations: 1.092 MB / 0.7473 GB, free: 74.44 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.71e-07/1.316, allocations: 0 / 0.7473 GB, free: 74.44 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002558/1.319, allocations: 0.8626 MB / 0.7481 GB, free: 73.57 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.0002949/1.319, allocations: 180.9 kB / 0.7483 GB, free: 73.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002882/1.322, allocations: 2.11 MB / 0.7503 GB, free: 71.58 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/1.322, allocations: 0 / 0.7503 GB, free: 71.58 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008344/1.323, allocations: 0.6286 MB / 0.751 GB, free: 71.04 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001679/1.325, allocations: 284.3 kB / 0.7512 GB, free: 70.82 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0109/1.335, allocations: 7.193 MB / 0.7582 GB, free: 64.16 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003085/1.339, allocations: 2.9 MB / 0.7611 GB, free: 61.77 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002075/1.341, allocations: 0.8342 MB / 0.7619 GB, free: 61.24 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003811/1.341, allocations: 124.7 kB / 0.762 GB, free: 61.12 MB / 458.7 MB Notification: Performance of SimCode: time 9.12e-07/1.341, allocations: 0 / 0.762 GB, free: 61.12 MB / 458.7 MB [CodegenCFunctions.tpl:6778:49-6778:49:writable] Error: Template error: what is this suppsoed to do?.