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.00156/0.00156, allocations: 113.9 kB / 16.37 MB, free: 6 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.001119/0.001119, allocations: 193.2 kB / 17.31 MB, free: 5.602 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.338/1.338, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02722/0.02722, allocations: 5.396 MB / 296.6 MB, free: 9.488 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002204/0.002204, allocations: 59.91 kB / 362.4 MB, free: 7.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2106/0.2129, allocations: 50.62 MB / 413 MB, free: 29.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP3): time 0.008367/0.2213, allocations: 10.09 MB / 423.1 MB, free: 19.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00495/0.2263, allocations: 3.535 MB / 426.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008046/0.2271, allocations: 67.81 kB / 426.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005214/0.2323, allocations: 3.226 MB / 429.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002257/0.2346, allocations: 1.005 MB / 430.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001509/0.2361, allocations: 0.9584 MB / 431.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002629/0.2387, allocations: 4.231 MB / 436.1 MB, free: 6.105 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0101/0.2489, allocations: 10.61 MB / 446.7 MB, free: 11.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003008/0.2519, allocations: 2.361 MB / 449.1 MB, free: 9.043 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003672/0.2556, allocations: 2.647 MB / 451.7 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008756/0.2565, allocations: 0.7188 MB / 452.4 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001637/0.2581, allocations: 0.988 MB / 453.4 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001015/0.2592, allocations: 1.325 MB / 454.8 MB, free: 3.352 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002486/0.2617, allocations: 2.603 MB / 457.4 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007492/0.2692, allocations: 9.108 MB / 466.5 MB, free: 7.602 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2692, allocations: 0 / 466.5 MB, free: 7.602 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2692, allocations: 0 / 466.5 MB, free: 7.602 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001399/0.2694, allocations: 0 / 466.5 MB, free: 7.602 MB / 334.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.01194/0.2813, allocations: 5.337 MB / 471.8 MB, free: 2.188 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.466e-05/0.2814, allocations: 12.03 kB / 471.8 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00898/0.2904, allocations: 1.584 MB / 473.4 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006007/0.2964, allocations: 2.951 MB / 476.4 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002231/0.2966, allocations: 316.5 kB / 476.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007687/0.2974, allocations: 419.9 kB / 477.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01054/0.308, allocations: 6.664 MB / 483.7 MB, free: 6.121 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.338e-05/0.3081, allocations: 4 kB / 483.7 MB, free: 6.117 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003974/0.3085, allocations: 176 kB / 483.9 MB, free: 5.945 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001801/0.3087, allocations: 207.9 kB / 484.1 MB, free: 5.742 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009232/0.3179, allocations: 5.613 MB / 489.7 MB, free: 124 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02855/0.3465, allocations: 22.48 MB / 0.5002 GB, free: 8.895 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005651/0.3522, allocations: 4.374 MB / 0.5045 GB, free: 4.031 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001338/0.3535, allocations: 0.8356 MB / 0.5053 GB, free: 3.191 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001504/0.3537, allocations: 110 kB / 0.5054 GB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001177/0.3549, allocations: 0.7823 MB / 0.5062 GB, free: 2.262 MB / 382.1 MB Notification: Performance of pre-optimization done (n=106): time 2.665e-06/0.3549, allocations: 0 / 0.5062 GB, free: 2.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=106): time 0.1665/0.5214, allocations: 2.229 MB / 0.5083 GB, free: 89.43 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/0.5215, allocations: 143.2 kB / 0.5085 GB, free: 89.28 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002737/0.5243, allocations: 1.819 MB / 0.5102 GB, free: 89.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001674/0.5245, allocations: 46.3 kB / 0.5103 GB, free: 89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001287/0.5258, allocations: 1.96 MB / 0.5122 GB, free: 87.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002767/0.526, allocations: 392.8 kB / 0.5126 GB, free: 87.46 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006925/0.5267, allocations: 0.5433 MB / 0.5131 GB, free: 87.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.896e-05/0.5268, allocations: 301.8 kB / 0.5134 GB, free: 86.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001551/0.5284, allocations: 1.076 MB / 0.5144 GB, free: 86.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001944/0.5303, allocations: 2.172 MB / 0.5166 GB, free: 84.71 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003088/0.5334, allocations: 3.377 MB / 0.5199 GB, free: 82.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.584e-05/0.5335, allocations: 10.5 kB / 0.5199 GB, free: 82.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=316) (initialization): time 0.004863/0.5383, allocations: 3.471 MB / 0.5233 GB, free: 80.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.662e-05/0.5384, allocations: 48.17 kB / 0.5233 GB, free: 80.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.415e-05/0.5384, allocations: 42.22 kB / 0.5234 GB, free: 80.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004971/0.5389, allocations: 123.3 kB / 0.5235 GB, free: 80.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001849/0.5408, allocations: 0.6104 MB / 0.5241 GB, free: 80.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001271/0.5421, allocations: 1.632 MB / 0.5257 GB, free: 79.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001712/0.5438, allocations: 374.9 kB / 0.526 GB, free: 79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001734/0.544, allocations: 135.8 kB / 0.5261 GB, free: 78.98 MB / 382.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.001865/0.5459, allocations: 1.721 MB / 0.5278 GB, free: 78.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002986/0.5462, allocations: 158.4 kB / 0.528 GB, free: 77.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00301/0.5492, allocations: 1.778 MB / 0.5297 GB, free: 77.26 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001905/0.5511, allocations: 1.417 MB / 0.5311 GB, free: 76.7 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.5511, allocations: 0 / 0.5311 GB, free: 76.7 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/0.5511, allocations: 10.73 kB / 0.5311 GB, free: 76.7 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007889/0.559, allocations: 5.124 MB / 0.5361 GB, free: 72.28 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.5591, allocations: 0 / 0.5361 GB, free: 72.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007502/0.5598, allocations: 219.2 kB / 0.5363 GB, free: 72.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005102/0.5603, allocations: 252 kB / 0.5366 GB, free: 71.81 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.642e-05/0.5604, allocations: 31.98 kB / 0.5366 GB, free: 71.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008254/0.5612, allocations: 0.8273 MB / 0.5374 GB, free: 70.92 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5613, allocations: 0 / 0.5374 GB, free: 70.92 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00439/0.5657, allocations: 2.719 MB / 0.5401 GB, free: 68.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006375/0.5663, allocations: 366.8 kB / 0.5404 GB, free: 67.78 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001925/0.5665, allocations: 31.97 kB / 0.5404 GB, free: 67.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007606/0.5673, allocations: 91.83 kB / 0.5405 GB, free: 67.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.5674, allocations: 71.19 kB / 0.5406 GB, free: 67.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-05/0.5675, allocations: 32 kB / 0.5406 GB, free: 67.56 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001367/0.5689, allocations: 1.237 MB / 0.5418 GB, free: 66.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5689, allocations: 4 kB / 0.5418 GB, free: 66.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002386/0.5713, allocations: 0.9506 MB / 0.5428 GB, free: 65.37 MB / 382.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.000293/0.5716, allocations: 190.1 kB / 0.5429 GB, free: 65.19 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003191/0.5748, allocations: 2.467 MB / 0.5454 GB, free: 62.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.5748, allocations: 0 / 0.5454 GB, free: 62.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009599/0.5757, allocations: 0.7782 MB / 0.5461 GB, free: 61.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001427/0.5772, allocations: 375.6 kB / 0.5465 GB, free: 61.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008788/0.586, allocations: 6.372 MB / 0.5527 GB, free: 55.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001955/0.588, allocations: 3.025 MB / 0.5556 GB, free: 52.1 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001787/0.5898, allocations: 0.8579 MB / 0.5565 GB, free: 51.24 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003425/0.5901, allocations: 139.4 kB / 0.5566 GB, free: 51.1 MB / 382.1 MB Notification: Performance of SimCode: time 1.032e-06/0.5901, allocations: 0 / 0.5566 GB, free: 51.1 MB / 382.1 MB Notification: Performance of Templates: time 0.03342/0.6235, allocations: 24.22 MB / 0.5803 GB, free: 27.07 MB / 382.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 -s cvode -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.pipe 2>&1)