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.004926/0.004926, allocations: 102.5 kB / 15.73 MB, free: 6.047 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.001088/0.001088, allocations: 196.8 kB / 16.68 MB, free: 5.961 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.344/1.344, allocations: 222.9 MB / 240.4 MB, free: 4.137 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1469/0.1469, allocations: 5.386 MB / 295.9 MB, free: 2.832 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 59.91 kB / 412.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2858, allocations: 50.63 MB / 463.4 MB, free: 21.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP3): time 0.009763/0.2956, allocations: 10.11 MB / 473.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006881/0.3025, allocations: 3.519 MB / 477 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002088/0.3047, allocations: 66.81 kB / 477.1 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006919/0.3116, allocations: 3.231 MB / 480.3 MB, free: 9.926 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004089/0.3157, allocations: 1.001 MB / 481.3 MB, free: 9.281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002719/0.3184, allocations: 0.9516 MB / 482.3 MB, free: 8.656 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005926/0.3244, allocations: 4.235 MB / 486.5 MB, free: 6.012 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01945/0.3438, allocations: 10.6 MB / 497.1 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006171/0.3501, allocations: 2.365 MB / 499.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005927/0.356, allocations: 2.644 MB / 0.4904 GB, free: 10.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002261/0.3583, allocations: 0.7226 MB / 0.4911 GB, free: 9.672 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003859/0.3622, allocations: 0.9841 MB / 0.492 GB, free: 8.688 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002708/0.365, allocations: 1.329 MB / 0.4933 GB, free: 7.355 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005057/0.3701, allocations: 2.607 MB / 0.4959 GB, free: 4.738 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01089/0.381, allocations: 9.112 MB / 0.5048 GB, free: 11.6 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.316e-06/0.381, allocations: 0 / 0.5048 GB, free: 11.6 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.381, allocations: 0 / 0.5048 GB, free: 11.6 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003029/0.3814, allocations: 3.984 kB / 0.5048 GB, free: 11.6 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.01811/0.3995, allocations: 5.333 MB / 0.51 GB, free: 6.188 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.3995, allocations: 8.031 kB / 0.51 GB, free: 6.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01068/0.4102, allocations: 1.588 MB / 0.5115 GB, free: 4.582 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007693/0.418, allocations: 2.939 MB / 0.5144 GB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000476/0.4185, allocations: 324.5 kB / 0.5147 GB, free: 1.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002443/0.421, allocations: 415.9 kB / 0.5151 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01972/0.4407, allocations: 6.664 MB / 0.5216 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000206/0.441, allocations: 11.84 kB / 0.5216 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001405/0.4424, allocations: 176 kB / 0.5218 GB, free: 9.941 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002694/0.4427, allocations: 211.9 kB / 0.522 GB, free: 9.734 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01304/0.4558, allocations: 5.613 MB / 0.5275 GB, free: 4.113 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04202/0.4978, allocations: 22.47 MB / 0.5494 GB, free: 12.89 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006742/0.5046, allocations: 4.378 MB / 0.5537 GB, free: 8.023 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001488/0.5061, allocations: 0.82 MB / 0.5545 GB, free: 7.203 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001975/0.5064, allocations: 117.9 kB / 0.5546 GB, free: 7.074 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001322/0.5077, allocations: 0.7785 MB / 0.5554 GB, free: 6.27 MB / 430.1 MB Notification: Performance of pre-optimization done (n=106): time 3.887e-06/0.5077, allocations: 0 / 0.5554 GB, free: 6.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=106): time 0.004939/0.5127, allocations: 2.236 MB / 0.5576 GB, free: 4 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.722e-05/0.5128, allocations: 141.5 kB / 0.5577 GB, free: 3.832 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003605/0.5164, allocations: 1.83 MB / 0.5595 GB, free: 1.992 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001023/0.5165, allocations: 45.7 kB / 0.5595 GB, free: 1.941 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001961/0.5185, allocations: 1.967 MB / 0.5615 GB, free: 15.94 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004185/0.5189, allocations: 386.8 kB / 0.5618 GB, free: 15.56 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001015/0.5199, allocations: 0.5354 MB / 0.5624 GB, free: 15.02 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.423e-05/0.52, allocations: 301.1 kB / 0.5626 GB, free: 14.72 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001863/0.5219, allocations: 1.082 MB / 0.5637 GB, free: 13.63 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002554/0.5245, allocations: 2.169 MB / 0.5658 GB, free: 10.94 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004478/0.529, allocations: 3.376 MB / 0.5691 GB, free: 7.035 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.999e-05/0.529, allocations: 8 kB / 0.5691 GB, free: 7.027 MB / 446.1 MB Notification: Performance of matching and sorting (n=316) (initialization): time 0.007513/0.5366, allocations: 3.47 MB / 0.5725 GB, free: 3.539 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.082e-05/0.5367, allocations: 53.69 kB / 0.5726 GB, free: 3.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.749e-05/0.5368, allocations: 36 kB / 0.5726 GB, free: 3.445 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006156/0.5374, allocations: 128.9 kB / 0.5727 GB, free: 3.316 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00222/0.5396, allocations: 0.6083 MB / 0.5733 GB, free: 2.707 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001856/0.5415, allocations: 1.644 MB / 0.5749 GB, free: 0.918 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002476/0.544, allocations: 364.8 kB / 0.5753 GB, free: 0.5586 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002845/0.5443, allocations: 136 kB / 0.5754 GB, free: 436 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.263/0.8073, allocations: 1.71 MB / 0.5771 GB, free: 96 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003861/0.8077, allocations: 159.1 kB / 0.5772 GB, free: 96 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003399/0.8111, allocations: 1.773 MB / 0.5789 GB, free: 95.45 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00252/0.8136, allocations: 1.429 MB / 0.5803 GB, free: 94.88 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.8137, allocations: 0.5156 kB / 0.5803 GB, free: 94.88 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.681e-05/0.8137, allocations: 6.312 kB / 0.5803 GB, free: 94.88 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01023/0.8239, allocations: 5.121 MB / 0.5853 GB, free: 92.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.423e-06/0.8239, allocations: 0.6562 kB / 0.5853 GB, free: 92.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008174/0.8248, allocations: 202.3 kB / 0.5855 GB, free: 92.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000593/0.8254, allocations: 270.7 kB / 0.5858 GB, free: 92.82 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.886e-05/0.8255, allocations: 32.72 kB / 0.5858 GB, free: 92.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009585/0.8264, allocations: 0.8292 MB / 0.5866 GB, free: 92.16 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.8264, allocations: 2.812 kB / 0.5866 GB, free: 92.16 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005321/0.8318, allocations: 2.72 MB / 0.5893 GB, free: 91.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007511/0.8326, allocations: 364.3 kB / 0.5896 GB, free: 90.92 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002185/0.8328, allocations: 26.73 kB / 0.5897 GB, free: 90.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007914/0.8336, allocations: 86.92 kB / 0.5898 GB, free: 90.89 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001664/0.8338, allocations: 74.02 kB / 0.5898 GB, free: 90.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.464e-05/0.8338, allocations: 35.22 kB / 0.5899 GB, free: 90.87 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002008/0.8359, allocations: 1.237 MB / 0.5911 GB, free: 90.39 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.172e-06/0.8359, allocations: 0 / 0.5911 GB, free: 90.39 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003087/0.839, allocations: 0.9536 MB / 0.592 GB, free: 90.07 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.000387/0.8394, allocations: 190.8 kB / 0.5922 GB, free: 89.96 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004165/0.8435, allocations: 2.462 MB / 0.5946 GB, free: 88.98 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.8436, allocations: 2.875 kB / 0.5946 GB, free: 88.98 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001241/0.8448, allocations: 0.7828 MB / 0.5954 GB, free: 88.66 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002045/0.8469, allocations: 377.5 kB / 0.5957 GB, free: 88.53 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01469/0.8616, allocations: 6.366 MB / 0.6019 GB, free: 85.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003958/0.8656, allocations: 3.026 MB / 0.6049 GB, free: 84.16 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002555/0.8682, allocations: 0.8526 MB / 0.6057 GB, free: 84.08 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005622/0.8687, allocations: 137 kB / 0.6058 GB, free: 84.06 MB / 446.1 MB Notification: Performance of SimCode: time 9.32e-07/0.8687, allocations: 7.875 kB / 0.6059 GB, free: 84.05 MB / 446.1 MB Notification: Performance of Templates: time 0.03758/0.9063, allocations: 24.23 MB / 0.6295 GB, free: 65.85 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)