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: "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMP3,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMP3,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3",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.007615/0.007615, allocations: 173 kB / 15.12 MB, free: 5.977 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.387/1.387, allocations: 223.2 MB / 239 MB, free: 1.805 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.0009448/0.0009448, allocations: 97.39 kB / 290.2 MB, free: 13.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02523/0.02523, allocations: 5.4 MB / 346.7 MB, free: 5.551 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003586/0.0003587, allocations: 11.75 kB / 412.2 MB, free: 90.08 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08915/0.08954, allocations: 51.62 MB / 463.8 MB, free: 44.61 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3431/0.4326, allocations: 98.91 MB / 0.5496 GB, free: 19.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002931/0.433, allocations: 82.27 kB / 0.5496 GB, free: 19.1 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2846/0.7176, allocations: 147.4 MB / 0.6936 GB, free: 6.984 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.826e-06/0.7177, allocations: 4 kB / 0.6936 GB, free: 6.98 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001961/0.7179, allocations: 99.88 kB / 0.6937 GB, free: 6.883 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.01414/0.732, allocations: 4.29 MB / 0.6979 GB, free: 2.516 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/0.7321, allocations: 12.03 kB / 0.6979 GB, free: 2.504 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002117/0.7342, allocations: 0.6049 MB / 0.6985 GB, free: 1.887 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005463/0.7397, allocations: 1.002 MB / 0.6995 GB, free: 0.8789 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2465/0.9862, allocations: 2.938 MB / 0.7023 GB, free: 86.73 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003051/0.9866, allocations: 300.8 kB / 0.7026 GB, free: 86.72 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001253/0.9878, allocations: 390.3 kB / 0.703 GB, free: 86.72 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01177/0.9996, allocations: 6.667 MB / 0.7095 GB, free: 86.17 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.781e-05/0.9997, allocations: 3.938 kB / 0.7095 GB, free: 86.17 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003868/1, allocations: 169.3 kB / 0.7097 GB, free: 86.17 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002404/1, allocations: 303.4 kB / 0.71 GB, free: 86.16 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009819/1.01, allocations: 5.386 MB / 0.7152 GB, free: 86.13 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03604/1.046, allocations: 22.77 MB / 0.7375 GB, free: 81.3 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00564/1.052, allocations: 4.463 MB / 0.7418 GB, free: 78.61 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001615/1.052, allocations: 110.8 kB / 0.7419 GB, free: 78.51 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001639/1.054, allocations: 0.8741 MB / 0.7428 GB, free: 78.41 MB / 458.7 MB Notification: Performance of pre-optimization done (n=115): time 6.392e-06/1.054, allocations: 0 / 0.7428 GB, free: 78.41 MB / 458.7 MB Notification: Performance of matching and sorting (n=115): time 0.01064/1.064, allocations: 3.335 MB / 0.746 GB, free: 77.75 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.956e-05/1.065, allocations: 147.5 kB / 0.7462 GB, free: 77.59 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003645/1.068, allocations: 1.677 MB / 0.7478 GB, free: 77.41 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00013/1.068, allocations: 45.97 kB / 0.7479 GB, free: 77.38 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002157/1.071, allocations: 1.956 MB / 0.7498 GB, free: 76.2 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004521/1.071, allocations: 421.5 kB / 0.7502 GB, free: 75.89 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002578/1.071, allocations: 47.38 kB / 0.7502 GB, free: 75.85 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002103/1.072, allocations: 409.8 kB / 0.7506 GB, free: 75.51 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001733/1.073, allocations: 1.164 MB / 0.7517 GB, free: 75.09 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002309/1.076, allocations: 2.249 MB / 0.7539 GB, free: 73.25 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002211/1.078, allocations: 1.709 MB / 0.7556 GB, free: 72.57 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-05/1.078, allocations: 14.47 kB / 0.7556 GB, free: 72.57 MB / 458.7 MB Notification: Performance of matching and sorting (n=325) (initialization): time 0.005725/1.084, allocations: 3.652 MB / 0.7592 GB, free: 71.33 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.135e-05/1.084, allocations: 46.8 kB / 0.7592 GB, free: 71.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.295e-05/1.084, allocations: 37.56 kB / 0.7593 GB, free: 71.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005819/1.084, allocations: 147 kB / 0.7594 GB, free: 71.28 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002137/1.086, allocations: 0.6312 MB / 0.76 GB, free: 71.26 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001457/1.088, allocations: 1.638 MB / 0.7616 GB, free: 69.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002546/1.091, allocations: 404 kB / 0.762 GB, free: 69.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002978/1.091, allocations: 139.5 kB / 0.7621 GB, free: 69.58 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.003304/1.094, allocations: 1.711 MB / 0.7638 GB, free: 68.72 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004606/1.095, allocations: 164.6 kB / 0.764 GB, free: 68.64 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005532/1.1, allocations: 2.258 MB / 0.7662 GB, free: 67.82 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00425/1.104, allocations: 1.872 MB / 0.768 GB, free: 67.16 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/1.104, allocations: 3.609 kB / 0.768 GB, free: 67.16 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/1.104, allocations: 6.953 kB / 0.768 GB, free: 67.16 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01093/1.115, allocations: 5.308 MB / 0.7732 GB, free: 64.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.014e-05/1.115, allocations: 0 / 0.7732 GB, free: 64.98 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008495/1.116, allocations: 227.6 kB / 0.7734 GB, free: 64.96 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002413/1.119, allocations: 0.5874 MB / 0.774 GB, free: 64.83 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/1.119, allocations: 38.06 kB / 0.774 GB, free: 64.81 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008948/1.12, allocations: 0.9251 MB / 0.7749 GB, free: 64.11 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/1.12, allocations: 3.594 kB / 0.7749 GB, free: 64.11 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003803/1.124, allocations: 2.948 MB / 0.7778 GB, free: 62.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009926/1.125, allocations: 419.8 kB / 0.7782 GB, free: 62.43 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004392/1.125, allocations: 27.03 kB / 0.7782 GB, free: 62.41 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001262/1.126, allocations: 98.83 kB / 0.7783 GB, free: 62.39 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/1.126, allocations: 69.27 kB / 0.7784 GB, free: 62.38 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.554e-05/1.127, allocations: 41.7 kB / 0.7784 GB, free: 62.38 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002308/1.129, allocations: 1.26 MB / 0.7797 GB, free: 61.87 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.173e-06/1.129, allocations: 4 kB / 0.7797 GB, free: 61.87 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003511/1.132, allocations: 0.9826 MB / 0.7806 GB, free: 61.56 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.004656/1.137, allocations: 4.023 MB / 0.7846 GB, free: 59.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004099/1.141, allocations: 2.629 MB / 0.7871 GB, free: 58.13 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/1.141, allocations: 0 / 0.7871 GB, free: 58.13 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001232/1.142, allocations: 0.8866 MB / 0.788 GB, free: 57.77 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001821/1.144, allocations: 332.5 kB / 0.7883 GB, free: 57.68 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02401/1.168, allocations: 36.22 MB / 0.8237 GB, free: 25.04 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004099/1.172, allocations: 3.092 MB / 0.8267 GB, free: 23.61 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002612/1.175, allocations: 0.8666 MB / 0.8276 GB, free: 23.54 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001974/1.177, allocations: 1.273 MB / 0.8288 GB, free: 22.47 MB / 458.7 MB Notification: Performance of SimCode: time 1.102e-06/1.177, allocations: 7.5 kB / 0.8288 GB, free: 22.47 MB / 458.7 MB [CodegenCFunctions.tpl:6742:49-6742:49:writable] Error: Template error: what is this suppsoed to do?.