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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005079/0.005083, allocations: 100.6 kB / 15.73 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 183.7 kB / 16.67 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1411/0.1411, allocations: 5.385 MB / 295.9 MB, free: 2.934 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 63.89 kB / 412.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.284, allocations: 50.61 MB / 463.4 MB, free: 21.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP3): time 0.01145/0.2955, allocations: 10.11 MB / 473.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008456/0.304, allocations: 3.526 MB / 477 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002063/0.3061, allocations: 67.5 kB / 477.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00734/0.3135, allocations: 3.227 MB / 480.3 MB, free: 9.941 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004265/0.3177, allocations: 1.001 MB / 481.3 MB, free: 9.301 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002931/0.3207, allocations: 0.9637 MB / 482.3 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005982/0.3267, allocations: 4.24 MB / 486.5 MB, free: 6.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01612/0.3428, allocations: 10.59 MB / 497.1 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004599/0.3475, allocations: 2.369 MB / 499.5 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005063/0.3525, allocations: 2.648 MB / 0.4904 GB, free: 10.41 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002193/0.3548, allocations: 0.7188 MB / 0.4911 GB, free: 9.688 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004287/0.3591, allocations: 0.988 MB / 0.492 GB, free: 8.699 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002405/0.3615, allocations: 1.321 MB / 0.4933 GB, free: 7.375 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007069/0.3686, allocations: 2.611 MB / 0.4959 GB, free: 4.754 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01276/0.3814, allocations: 9.112 MB / 0.5048 GB, free: 11.62 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.277e-06/0.3814, allocations: 0 / 0.5048 GB, free: 11.62 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3815, allocations: 0 / 0.5048 GB, free: 11.62 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002843/0.3817, allocations: 0 / 0.5048 GB, free: 11.62 MB / 382.1 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.01672/0.3985, allocations: 5.329 MB / 0.51 GB, free: 6.211 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.3985, allocations: 11.97 kB / 0.51 GB, free: 6.199 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008751/0.4073, allocations: 1.592 MB / 0.5116 GB, free: 4.598 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006542/0.4139, allocations: 2.943 MB / 0.5144 GB, free: 1.602 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000253/0.4141, allocations: 316.5 kB / 0.5147 GB, free: 1.289 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009927/0.4151, allocations: 416 kB / 0.5151 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01169/0.4268, allocations: 6.664 MB / 0.5216 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.091e-05/0.427, allocations: 11.84 kB / 0.5216 GB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003907/0.4274, allocations: 172 kB / 0.5218 GB, free: 9.965 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00019/0.4276, allocations: 215.8 kB / 0.522 GB, free: 9.758 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009483/0.437, allocations: 5.613 MB / 0.5275 GB, free: 4.137 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03186/0.4689, allocations: 22.47 MB / 0.5494 GB, free: 12.92 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005426/0.4744, allocations: 4.378 MB / 0.5537 GB, free: 8.047 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001227/0.4757, allocations: 0.82 MB / 0.5545 GB, free: 7.227 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001474/0.4758, allocations: 122 kB / 0.5546 GB, free: 7.09 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001128/0.477, allocations: 0.7707 MB / 0.5554 GB, free: 6.293 MB / 430.1 MB Notification: Performance of pre-optimization done (n=106): time 2.544e-06/0.477, allocations: 4 kB / 0.5554 GB, free: 6.289 MB / 430.1 MB Notification: Performance of matching and sorting (n=106): time 0.004493/0.4815, allocations: 2.232 MB / 0.5576 GB, free: 4.023 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.106e-05/0.4816, allocations: 149.5 kB / 0.5577 GB, free: 3.848 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002666/0.4843, allocations: 1.822 MB / 0.5595 GB, free: 2.016 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.893e-05/0.4844, allocations: 49.64 kB / 0.5595 GB, free: 1.961 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001936/0.4863, allocations: 1.963 MB / 0.5615 GB, free: 15.96 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003625/0.4867, allocations: 386.7 kB / 0.5618 GB, free: 15.59 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008326/0.4875, allocations: 0.5354 MB / 0.5624 GB, free: 15.04 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.4877, allocations: 305.1 kB / 0.5626 GB, free: 14.74 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001577/0.4892, allocations: 1.086 MB / 0.5637 GB, free: 13.65 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002315/0.4916, allocations: 2.165 MB / 0.5658 GB, free: 10.96 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00404/0.4956, allocations: 3.376 MB / 0.5691 GB, free: 7.059 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.544e-05/0.4956, allocations: 8 kB / 0.5691 GB, free: 7.051 MB / 446.1 MB Notification: Performance of matching and sorting (n=316) (initialization): time 0.005398/0.5011, allocations: 3.474 MB / 0.5725 GB, free: 3.559 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.736e-05/0.5011, allocations: 51.73 kB / 0.5726 GB, free: 3.504 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.173e-05/0.5012, allocations: 36 kB / 0.5726 GB, free: 3.469 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000497/0.5017, allocations: 128.9 kB / 0.5727 GB, free: 3.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001953/0.5036, allocations: 0.6122 MB / 0.5733 GB, free: 2.727 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001618/0.5053, allocations: 1.636 MB / 0.5749 GB, free: 0.9453 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002075/0.5074, allocations: 372.8 kB / 0.5753 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001955/0.5076, allocations: 136 kB / 0.5754 GB, free: 456 kB / 446.1 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 (mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,mpTracker.sampleTrigger,$whenCondition1,mpTracker.vRef,$PRE.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 (313): * Single equations (assignments): 310 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.267/0.7746, allocations: 1.711 MB / 0.5771 GB, free: 95.98 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004248/0.7751, allocations: 159 kB / 0.5772 GB, free: 95.98 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003456/0.7785, allocations: 1.778 MB / 0.579 GB, free: 95.46 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002488/0.781, allocations: 1.419 MB / 0.5803 GB, free: 94.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.781, allocations: 0.6562 kB / 0.5803 GB, free: 94.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.705e-05/0.7811, allocations: 6.219 kB / 0.5804 GB, free: 94.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01/0.7911, allocations: 5.123 MB / 0.5854 GB, free: 92.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/0.7911, allocations: 1.219 kB / 0.5854 GB, free: 92.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008377/0.792, allocations: 210.8 kB / 0.5856 GB, free: 92.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006002/0.7926, allocations: 263.1 kB / 0.5858 GB, free: 92.82 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.622e-05/0.7927, allocations: 27.33 kB / 0.5858 GB, free: 92.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009879/0.7937, allocations: 0.8287 MB / 0.5866 GB, free: 92.16 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.7937, allocations: 6.562 kB / 0.5867 GB, free: 92.16 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005546/0.7992, allocations: 2.729 MB / 0.5893 GB, free: 91.11 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009446/0.8002, allocations: 361.4 kB / 0.5897 GB, free: 90.93 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001956/0.8004, allocations: 23.78 kB / 0.5897 GB, free: 90.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007773/0.8012, allocations: 86.89 kB / 0.5898 GB, free: 90.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001605/0.8014, allocations: 74.81 kB / 0.5898 GB, free: 90.89 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-05/0.8014, allocations: 35.84 kB / 0.5899 GB, free: 90.88 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001861/0.8033, allocations: 1.239 MB / 0.5911 GB, free: 90.39 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8033, allocations: 5 kB / 0.5911 GB, free: 90.39 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002793/0.8061, allocations: 0.9476 MB / 0.592 GB, free: 90.09 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (converter.integrator.y,voltageSource.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 (108): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003595/0.8065, allocations: 183.5 kB / 0.5922 GB, free: 89.97 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00407/0.8106, allocations: 2.472 MB / 0.5946 GB, free: 88.98 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.8106, allocations: 1.094 kB / 0.5946 GB, free: 88.98 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001168/0.8118, allocations: 0.7821 MB / 0.5954 GB, free: 88.67 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001746/0.8135, allocations: 374.1 kB / 0.5957 GB, free: 88.54 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01013/0.8236, allocations: 6.357 MB / 0.6019 GB, free: 85.61 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002391/0.8261, allocations: 3.031 MB / 0.6049 GB, free: 84.17 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002005/0.8281, allocations: 0.8559 MB / 0.6057 GB, free: 84.08 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003919/0.8285, allocations: 136.1 kB / 0.6059 GB, free: 84.07 MB / 446.1 MB Notification: Performance of SimCode: time 9.91e-07/0.8285, allocations: 0 / 0.6059 GB, free: 84.07 MB / 446.1 MB Notification: Performance of Templates: time 0.03505/0.8636, allocations: 25.06 MB / 0.6303 GB, free: 65.07 MB / 446.1 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.makefile (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.sim & ./PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3 -jacobian=coloredNumerical -nls=newton -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.pipe 2>&1)