Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.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.Examples.SimpleModuleMP3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3") translateModel(PhotoVoltaics.Examples.SimpleModuleMP3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004697/0.004697, allocations: 172.2 kB / 15.12 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.31/1.31, allocations: 223.2 MB / 239 MB, free: 1.746 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.001005/0.001005, allocations: 99.78 kB / 290.2 MB, free: 13.89 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02477/0.02477, allocations: 5.4 MB / 346.7 MB, free: 5.512 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003573/0.0003573, allocations: 8.625 kB / 412.1 MB, free: 90.06 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08599/0.08636, allocations: 51.62 MB / 463.8 MB, free: 44.65 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3156/0.402, allocations: 98.92 MB / 0.5495 GB, free: 22.17 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002305/0.4023, allocations: 74.75 kB / 0.5496 GB, free: 22.17 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2784/0.6807, allocations: 147.4 MB / 0.6935 GB, free: 8.922 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.6808, allocations: 3.938 kB / 0.6935 GB, free: 8.918 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001963/0.681, allocations: 95.88 kB / 0.6936 GB, free: 8.824 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.01396/0.6949, allocations: 4.302 MB / 0.6978 GB, free: 4.445 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.695, allocations: 8.031 kB / 0.6978 GB, free: 4.438 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005518/0.7005, allocations: 0.9981 MB / 0.6988 GB, free: 3.434 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006922/0.7075, allocations: 2.927 MB / 0.7017 GB, free: 468 kB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003972/0.7079, allocations: 304.1 kB / 0.7019 GB, free: 160 kB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.2099/0.9178, allocations: 402.6 kB / 0.7023 GB, free: 87.68 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01219/0.93, allocations: 6.664 MB / 0.7088 GB, free: 87.12 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000102/0.9301, allocations: 3.969 kB / 0.7088 GB, free: 87.12 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004625/0.9306, allocations: 168.3 kB / 0.709 GB, free: 87.12 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002257/0.9308, allocations: 299.3 kB / 0.7093 GB, free: 87.12 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008905/0.9398, allocations: 5.391 MB / 0.7145 GB, free: 87.08 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03177/0.9716, allocations: 22.77 MB / 0.7368 GB, free: 82.25 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005108/0.9767, allocations: 4.46 MB / 0.7411 GB, free: 79.56 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001495/0.9769, allocations: 107.6 kB / 0.7412 GB, free: 79.46 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001328/0.9782, allocations: 0.8757 MB / 0.7421 GB, free: 79.36 MB / 458.7 MB Notification: Performance of pre-optimization done (n=115): time 4.438e-06/0.9782, allocations: 0 / 0.7421 GB, free: 79.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=115): time 0.009778/0.988, allocations: 3.334 MB / 0.7454 GB, free: 78.7 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.465e-05/0.9881, allocations: 154.8 kB / 0.7455 GB, free: 78.54 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002729/0.9909, allocations: 1.673 MB / 0.7471 GB, free: 78.36 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001445/0.991, allocations: 43.3 kB / 0.7472 GB, free: 78.33 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001482/0.9925, allocations: 1.963 MB / 0.7491 GB, free: 77.51 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003221/0.9929, allocations: 409.5 kB / 0.7495 GB, free: 77.32 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00013/0.993, allocations: 47.5 kB / 0.7495 GB, free: 77.32 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.9932, allocations: 417.2 kB / 0.7499 GB, free: 77.01 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001619/0.9948, allocations: 1.163 MB / 0.7511 GB, free: 76.92 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001831/0.9966, allocations: 2.252 MB / 0.7533 GB, free: 75.09 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001898/0.9985, allocations: 1.716 MB / 0.7549 GB, free: 74.4 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.706e-05/0.9986, allocations: 7.562 kB / 0.7549 GB, free: 74.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=325) (initialization): time 0.004804/1.003, allocations: 3.655 MB / 0.7585 GB, free: 73.15 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.835e-05/1.003, allocations: 49.39 kB / 0.7586 GB, free: 73.12 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-05/1.003, allocations: 35.81 kB / 0.7586 GB, free: 73.12 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00052/1.004, allocations: 145.2 kB / 0.7587 GB, free: 73.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002086/1.006, allocations: 0.6292 MB / 0.7593 GB, free: 73.08 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001394/1.008, allocations: 1.64 MB / 0.7609 GB, free: 71.62 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002447/1.01, allocations: 394.9 kB / 0.7613 GB, free: 71.49 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002049/1.01, allocations: 144.2 kB / 0.7615 GB, free: 71.47 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 168 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,$PRE.mpTracker.vRef,mpTracker.vRef,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (319): * Single equations (assignments): 313 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002841/1.013, allocations: 1.718 MB / 0.7631 GB, free: 70.61 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003607/1.013, allocations: 161.1 kB / 0.7633 GB, free: 70.52 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005237/1.019, allocations: 2.252 MB / 0.7655 GB, free: 69.7 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004264/1.023, allocations: 1.879 MB / 0.7673 GB, free: 69.05 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/1.023, allocations: 0 / 0.7673 GB, free: 69.05 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.273e-05/1.023, allocations: 6.422 kB / 0.7673 GB, free: 69.05 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00843/1.031, allocations: 5.31 MB / 0.7725 GB, free: 66.86 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/1.031, allocations: 3.797 kB / 0.7725 GB, free: 66.86 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008194/1.032, allocations: 214.9 kB / 0.7727 GB, free: 66.85 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002406/1.035, allocations: 0.5883 MB / 0.7733 GB, free: 66.72 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.498e-05/1.035, allocations: 42.52 kB / 0.7733 GB, free: 66.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000856/1.036, allocations: 0.9237 MB / 0.7742 GB, free: 66.01 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/1.036, allocations: 0 / 0.7742 GB, free: 66.01 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00352/1.039, allocations: 2.966 MB / 0.7771 GB, free: 64.59 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008177/1.04, allocations: 413 kB / 0.7775 GB, free: 64.32 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001891/1.04, allocations: 26.91 kB / 0.7776 GB, free: 64.31 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009436/1.041, allocations: 97.2 kB / 0.7777 GB, free: 64.29 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001438/1.041, allocations: 76.94 kB / 0.7777 GB, free: 64.28 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.067e-05/1.041, allocations: 35.48 kB / 0.7778 GB, free: 64.27 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001751/1.043, allocations: 1.268 MB / 0.779 GB, free: 63.77 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.62e-07/1.043, allocations: 4 kB / 0.779 GB, free: 63.76 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002866/1.046, allocations: 0.9768 MB / 0.78 GB, free: 63.46 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (converter.integrator.y,converter.potentialSensor.plug_p.reference.gamma) * Number of discrete variables: 6 ($whenCondition1,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef) * Number of discrete states: 7 (mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 106 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004054/1.047, allocations: 223.7 kB / 0.7802 GB, free: 63.34 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003612/1.05, allocations: 2.631 MB / 0.7827 GB, free: 62.36 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/1.05, allocations: 0 / 0.7827 GB, free: 62.36 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001111/1.051, allocations: 0.8873 MB / 0.7836 GB, free: 62 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001472/1.053, allocations: 336.2 kB / 0.7839 GB, free: 61.91 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01355/1.066, allocations: 7.878 MB / 0.7916 GB, free: 57.49 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002895/1.069, allocations: 3.091 MB / 0.7946 GB, free: 56.06 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002262/1.072, allocations: 0.8614 MB / 0.7955 GB, free: 55.99 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004148/1.072, allocations: 142.2 kB / 0.7956 GB, free: 55.98 MB / 458.7 MB Notification: Performance of SimCode: time 9.92e-07/1.072, allocations: 3.281 kB / 0.7956 GB, free: 55.98 MB / 458.7 MB [CodegenCFunctions.tpl:6742:49-6742:49:writable] Error: Template error: what is this suppsoed to do?.