Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.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.SimpleModuleMP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP") translateModel(PhotoVoltaics.Examples.SimpleModuleMP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 102.1 kB / 16.41 MB, free: 6.5 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.001333/0.001333, allocations: 192.2 kB / 17.34 MB, free: 5.742 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.304/1.304, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.0266/0.0266, allocations: 5.395 MB / 296.6 MB, free: 9.441 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 67.91 kB / 413.5 MB, free: 22.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09877/0.1, allocations: 50.62 MB / 464.1 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.008412/0.1085, allocations: 6.346 MB / 470.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004996/0.1135, allocations: 2.562 MB / 473 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001099/0.1146, allocations: 20 kB / 473 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003308/0.118, allocations: 1.112 MB / 474.1 MB, free: 9.848 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002558/0.1206, allocations: 0.7879 MB / 474.9 MB, free: 9.059 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009881/0.1216, allocations: 339.3 kB / 475.3 MB, free: 8.727 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001797/0.1234, allocations: 1.16 MB / 476.4 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001856/0.1252, allocations: 0.9772 MB / 477.4 MB, free: 6.555 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007432/0.126, allocations: 478.3 kB / 477.9 MB, free: 6.086 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001053/0.1271, allocations: 0.5758 MB / 478.4 MB, free: 5.508 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003352/0.1274, allocations: 128 kB / 478.6 MB, free: 5.383 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001091/0.1285, allocations: 287.8 kB / 478.8 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003085/0.1288, allocations: 251.1 kB / 479.1 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007657/0.1296, allocations: 0.5405 MB / 479.6 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002016/0.1316, allocations: 1.484 MB / 481.1 MB, free: 2.824 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1317, allocations: 4 kB / 481.1 MB, free: 2.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1317, allocations: 0 / 481.1 MB, free: 2.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.046e-05/0.1317, allocations: 0 / 481.1 MB, free: 2.82 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.004217/0.1359, allocations: 1.545 MB / 482.7 MB, free: 1.219 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.136, allocations: 8.031 kB / 482.7 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002179/0.1382, allocations: 351.5 kB / 483 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001633/0.1398, allocations: 0.6943 MB / 483.7 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.128e-05/0.1399, allocations: 70.12 kB / 483.8 MB, free: 64 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001892/0.1401, allocations: 96.05 kB / 483.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00196/0.1421, allocations: 0.9892 MB / 484.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.636e-05/0.1421, allocations: 0 / 484.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.854e-05/0.1422, allocations: 44 kB / 484.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.964e-05/0.1422, allocations: 23.98 kB / 484.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001733/0.144, allocations: 0.8432 MB / 485.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005874/0.1498, allocations: 3.84 MB / 489.6 MB, free: 9.996 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002055/0.1519, allocations: 1.474 MB / 491.1 MB, free: 8.301 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005182/0.1525, allocations: 255.5 kB / 491.3 MB, free: 8.047 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.276e-05/0.1526, allocations: 89.09 kB / 491.4 MB, free: 7.941 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005776/0.1532, allocations: 317.8 kB / 491.7 MB, free: 7.605 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 2.655e-06/0.1532, allocations: 0 / 491.7 MB, free: 7.605 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.002755/0.1559, allocations: 0.9562 MB / 492.7 MB, free: 6.617 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.897e-05/0.156, allocations: 140.5 kB / 492.8 MB, free: 6.449 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007578/0.1568, allocations: 0.5017 MB / 493.3 MB, free: 5.934 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.149e-05/0.1569, allocations: 37.7 kB / 493.4 MB, free: 5.891 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003768/0.1573, allocations: 458.2 kB / 493.8 MB, free: 5.434 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/0.1574, allocations: 165.7 kB / 494 MB, free: 5.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002302/0.1577, allocations: 150.5 kB / 494.1 MB, free: 5.117 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.1578, allocations: 362.8 kB / 494.5 MB, free: 4.754 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005075/0.1583, allocations: 229.9 kB / 494.7 MB, free: 4.527 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006703/0.159, allocations: 432.7 kB / 495.1 MB, free: 4.027 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/0.1601, allocations: 0.7012 MB / 495.8 MB, free: 3.234 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.1601, allocations: 0 / 495.8 MB, free: 3.234 MB / 366.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001762/0.1619, allocations: 0.8562 MB / 496.7 MB, free: 2.359 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.708e-05/0.162, allocations: 33.7 kB / 496.7 MB, free: 2.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.162, allocations: 11.98 kB / 496.7 MB, free: 2.309 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004558/0.1624, allocations: 84.78 kB / 496.8 MB, free: 2.223 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006797/0.1631, allocations: 179.8 kB / 497 MB, free: 2.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001571/0.1647, allocations: 1.566 MB / 498.5 MB, free: 348 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007033/0.1654, allocations: 99.22 kB / 498.6 MB, free: 248 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-05/0.1655, allocations: 35.98 kB / 498.7 MB, free: 212 kB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.0004402/0.166, allocations: 274 kB / 498.9 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001323/0.1661, allocations: 55.34 kB / 499 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001462/0.1676, allocations: 0.6969 MB / 499.7 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.245e-06/0.1676, allocations: 4 kB / 499.7 MB, free: 15.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.1676, allocations: 3.938 kB / 499.7 MB, free: 15.15 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.1676, allocations: 0 / 499.7 MB, free: 15.15 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004028/0.1716, allocations: 1.717 MB / 0.4897 GB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.1717, allocations: 0 / 0.4897 GB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003307/0.172, allocations: 79.89 kB / 0.4897 GB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005985/0.1726, allocations: 258.4 kB / 0.49 GB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.501e-05/0.1727, allocations: 12 kB / 0.49 GB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001022/0.1737, allocations: 0.8311 MB / 0.4908 GB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.1737, allocations: 3.938 kB / 0.4908 GB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003184/0.1769, allocations: 1.174 MB / 0.492 GB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000279/0.1772, allocations: 176.4 kB / 0.4921 GB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001268/0.1773, allocations: 20 kB / 0.4922 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004519/0.1778, allocations: 31.97 kB / 0.4922 GB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.629e-05/0.1779, allocations: 27.97 kB / 0.4922 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.679e-05/0.1779, allocations: 19.92 kB / 0.4922 GB, free: 10.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004523/0.1784, allocations: 342.9 kB / 0.4926 GB, free: 10.31 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1784, allocations: 4 kB / 0.4926 GB, free: 10.31 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007971/0.1792, allocations: 239 kB / 0.4928 GB, free: 10.07 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (converter.integrator.y,voltageSource.pin_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 (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0002832/0.1795, allocations: 147.7 kB / 0.4929 GB, free: 9.922 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001611/0.1811, allocations: 0.7562 MB / 0.4937 GB, free: 9.137 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.1811, allocations: 3.938 kB / 0.4937 GB, free: 9.133 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006427/0.1818, allocations: 339.4 kB / 0.494 GB, free: 8.789 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006752/0.1825, allocations: 98.11 kB / 0.4941 GB, free: 8.695 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002712/0.1852, allocations: 1.364 MB / 0.4954 GB, free: 7.289 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005828/0.1858, allocations: 0.9408 MB / 0.4963 GB, free: 6.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001831/0.186, allocations: 51.42 kB / 0.4964 GB, free: 6.27 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.186, allocations: 0 / 0.4964 GB, free: 6.27 MB / 382.1 MB Notification: Performance of Templates: time 0.2066/0.3926, allocations: 12.82 MB / 0.5089 GB, free: 47.92 MB / 382.1 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.makefile (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.sim & ./PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP -jacobian=coloredNumerical -nls=newton -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe 2>&1)