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.00102/0.001021, allocations: 172.7 kB / 16.12 MB, free: 5.695 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.571/1.571, allocations: 223.3 MB / 240.1 MB, free: 11.7 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.0009405/0.0009405, allocations: 100.4 kB / 291.3 MB, free: 10.79 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02575/0.02575, allocations: 5.396 MB / 347.8 MB, free: 2.402 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003814/0.0003815, allocations: 12 kB / 413.5 MB, free: 57.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08267/0.08307, allocations: 51.62 MB / 465.1 MB, free: 5.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3105/0.3936, allocations: 99.03 MB / 0.5509 GB, free: 5.633 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002214/0.3939, allocations: 80.59 kB / 0.551 GB, free: 5.594 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4717/0.8656, allocations: 147 MB / 0.6945 GB, free: 101.3 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.8656, allocations: 4 kB / 0.6945 GB, free: 101.3 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002739/0.8659, allocations: 90.5 kB / 0.6946 GB, free: 101.3 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.01431/0.8802, allocations: 4.257 MB / 0.6987 GB, free: 98.86 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.8803, allocations: 8.5 kB / 0.6987 GB, free: 98.86 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005823/0.8861, allocations: 0.9964 MB / 0.6997 GB, free: 98.38 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006885/0.893, allocations: 2.966 MB / 0.7026 GB, free: 96.27 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003497/0.8934, allocations: 303 kB / 0.7029 GB, free: 96.13 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001509/0.895, allocations: 394 kB / 0.7033 GB, free: 96.01 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01507/0.9101, allocations: 6.703 MB / 0.7098 GB, free: 91.34 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002685/0.9104, allocations: 3.938 kB / 0.7098 GB, free: 91.34 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009807/0.9114, allocations: 168 kB / 0.71 GB, free: 91.17 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003014/0.9117, allocations: 299.8 kB / 0.7103 GB, free: 90.88 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0114/0.9231, allocations: 5.396 MB / 0.7155 GB, free: 85.48 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03381/0.9569, allocations: 22.8 MB / 0.7378 GB, free: 62.12 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004724/0.9617, allocations: 4.46 MB / 0.7422 GB, free: 57.16 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00127/0.963, allocations: 0.9059 MB / 0.743 GB, free: 56.26 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001358/0.9632, allocations: 116.2 kB / 0.7432 GB, free: 56.13 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001177/0.9644, allocations: 0.8729 MB / 0.744 GB, free: 55.23 MB / 442.7 MB Notification: Performance of pre-optimization done (n=115): time 4.619e-06/0.9644, allocations: 4 kB / 0.744 GB, free: 55.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=115): time 0.007911/0.9723, allocations: 2.987 MB / 0.7469 GB, free: 52.21 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.841e-05/0.9724, allocations: 179.2 kB / 0.7471 GB, free: 52 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003171/0.9756, allocations: 1.846 MB / 0.7489 GB, free: 50.14 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001606/0.9758, allocations: 45.7 kB / 0.7489 GB, free: 50.09 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001755/0.9775, allocations: 1.952 MB / 0.7509 GB, free: 48.12 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004122/0.9779, allocations: 421 kB / 0.7513 GB, free: 47.72 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002255/0.9782, allocations: 48 kB / 0.7513 GB, free: 47.68 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002054/0.9784, allocations: 411.1 kB / 0.7517 GB, free: 47.27 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001802/0.9802, allocations: 1.157 MB / 0.7528 GB, free: 46.11 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002396/0.9826, allocations: 2.249 MB / 0.755 GB, free: 43.34 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003995/0.9866, allocations: 3.518 MB / 0.7585 GB, free: 39.29 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-05/0.9867, allocations: 12 kB / 0.7585 GB, free: 39.27 MB / 442.7 MB Notification: Performance of matching and sorting (n=325) (initialization): time 0.005826/0.9925, allocations: 3.642 MB / 0.762 GB, free: 35.61 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.232e-05/0.9926, allocations: 49.92 kB / 0.7621 GB, free: 35.56 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.826e-05/0.9927, allocations: 40 kB / 0.7621 GB, free: 35.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005518/0.9932, allocations: 136.8 kB / 0.7622 GB, free: 35.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002134/0.9954, allocations: 0.6434 MB / 0.7629 GB, free: 34.74 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001386/0.9968, allocations: 1.612 MB / 0.7644 GB, free: 32.98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002521/0.9993, allocations: 404.7 kB / 0.7648 GB, free: 32.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000287/0.9996, allocations: 140 kB / 0.765 GB, free: 32.45 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 169 * 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.003292/1.003, allocations: 1.712 MB / 0.7666 GB, free: 30.72 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004615/1.003, allocations: 158 kB / 0.7668 GB, free: 30.56 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005288/1.009, allocations: 2.229 MB / 0.769 GB, free: 28.31 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004325/1.013, allocations: 1.859 MB / 0.7708 GB, free: 26.43 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/1.013, allocations: 0 / 0.7708 GB, free: 26.43 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.477e-05/1.013, allocations: 3.984 kB / 0.7708 GB, free: 26.43 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01169/1.025, allocations: 5.449 MB / 0.7761 GB, free: 20.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.066e-05/1.025, allocations: 4.031 kB / 0.7761 GB, free: 20.91 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000823/1.026, allocations: 211.7 kB / 0.7763 GB, free: 20.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002189/1.028, allocations: 0.5879 MB / 0.7769 GB, free: 20.11 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001154/1.028, allocations: 31.98 kB / 0.7769 GB, free: 20.07 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009161/1.029, allocations: 0.9361 MB / 0.7778 GB, free: 19.11 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/1.029, allocations: 0 / 0.7778 GB, free: 19.11 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004024/1.033, allocations: 2.843 MB / 0.7806 GB, free: 16.22 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001055/1.034, allocations: 414.5 kB / 0.781 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006907/1.035, allocations: 24 kB / 0.781 GB, free: 15.77 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001267/1.036, allocations: 95.95 kB / 0.7811 GB, free: 15.68 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001768/1.036, allocations: 80.83 kB / 0.7812 GB, free: 15.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.781e-05/1.036, allocations: 35.98 kB / 0.7812 GB, free: 15.57 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002494/1.039, allocations: 1.26 MB / 0.7824 GB, free: 14.31 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.039, allocations: 0 / 0.7824 GB, free: 14.31 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003675/1.043, allocations: 0.9834 MB / 0.7834 GB, free: 13.32 MB / 442.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.0004807/1.043, allocations: 241.6 kB / 0.7836 GB, free: 13.09 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00423/1.047, allocations: 2.609 MB / 0.7862 GB, free: 10.46 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/1.047, allocations: 0 / 0.7862 GB, free: 10.46 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001302/1.049, allocations: 0.8683 MB / 0.787 GB, free: 9.574 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002698/1.051, allocations: 354.8 kB / 0.7874 GB, free: 9.234 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01481/1.066, allocations: 7.879 MB / 0.7951 GB, free: 1.309 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006329/1.073, allocations: 3.03 MB / 0.798 GB, free: 14.25 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003293/1.076, allocations: 0.854 MB / 0.7989 GB, free: 13.39 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007304/1.077, allocations: 147.4 kB / 0.799 GB, free: 13.25 MB / 458.7 MB Notification: Performance of SimCode: time 1.192e-06/1.077, allocations: 0 / 0.799 GB, free: 13.25 MB / 458.7 MB [CodegenCFunctions.tpl:6778:49-6778:49:writable] Error: Template error: what is this suppsoed to do?.