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.001384/0.001384, allocations: 104.9 kB / 16.41 MB, free: 6.492 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.001448/0.001448, allocations: 187 kB / 17.34 MB, free: 5.766 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.322/1.322, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02727/0.02727, allocations: 5.402 MB / 296.6 MB, free: 9.453 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 64.09 kB / 413.5 MB, free: 22.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1023, allocations: 50.63 MB / 464.1 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.008318/0.1106, allocations: 6.334 MB / 470.4 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004971/0.1156, allocations: 2.569 MB / 473 MB, free: 11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009609/0.1166, allocations: 16 kB / 473 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00299/0.1197, allocations: 1.108 MB / 474.1 MB, free: 9.875 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002399/0.1221, allocations: 0.7834 MB / 474.9 MB, free: 9.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00101/0.1231, allocations: 351.3 kB / 475.3 MB, free: 8.746 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001749/0.1249, allocations: 1.164 MB / 476.4 MB, free: 7.578 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001832/0.1267, allocations: 0.9811 MB / 477.4 MB, free: 6.566 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000839/0.1276, allocations: 470.3 kB / 477.9 MB, free: 6.105 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001061/0.1286, allocations: 0.5797 MB / 478.4 MB, free: 5.523 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003521/0.129, allocations: 128 kB / 478.6 MB, free: 5.398 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008977/0.1299, allocations: 287.8 kB / 478.8 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003371/0.1303, allocations: 259.1 kB / 479.1 MB, free: 4.863 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008482/0.1311, allocations: 0.5405 MB / 479.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002152/0.1333, allocations: 1.48 MB / 481.1 MB, free: 2.836 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1333, allocations: 0 / 481.1 MB, free: 2.836 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1333, allocations: 0 / 481.1 MB, free: 2.836 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.844e-05/0.1334, allocations: 0 / 481.1 MB, free: 2.836 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.004882/0.1383, allocations: 1.545 MB / 482.7 MB, free: 1.234 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.1383, allocations: 8.031 kB / 482.7 MB, free: 1.227 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002245/0.1406, allocations: 351.4 kB / 483 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001784/0.1424, allocations: 0.6864 MB / 483.7 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.53e-05/0.1425, allocations: 78.12 kB / 483.8 MB, free: 80 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002386/0.1427, allocations: 92.08 kB / 483.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002143/0.1449, allocations: 0.9932 MB / 484.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.279e-05/0.1449, allocations: 0 / 484.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000113/0.145, allocations: 36 kB / 484.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.243e-05/0.1451, allocations: 24 kB / 484.9 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001824/0.1469, allocations: 0.8432 MB / 485.8 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006398/0.1533, allocations: 3.84 MB / 489.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002126/0.1554, allocations: 1.486 MB / 491.1 MB, free: 8.312 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005244/0.156, allocations: 260.4 kB / 491.3 MB, free: 8.055 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.679e-05/0.1561, allocations: 85.11 kB / 491.4 MB, free: 7.953 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005703/0.1567, allocations: 313.8 kB / 491.7 MB, free: 7.621 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 2.104e-06/0.1567, allocations: 0 / 491.7 MB, free: 7.621 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.002885/0.1596, allocations: 0.9523 MB / 492.7 MB, free: 6.637 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.267e-05/0.1597, allocations: 148.5 kB / 492.8 MB, free: 6.461 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007333/0.1604, allocations: 0.494 MB / 493.3 MB, free: 5.953 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.08e-05/0.1605, allocations: 41.69 kB / 493.4 MB, free: 5.906 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003806/0.1609, allocations: 450.3 kB / 493.8 MB, free: 5.457 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001466/0.1611, allocations: 165.7 kB / 494 MB, free: 5.293 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002477/0.1613, allocations: 154.4 kB / 494.1 MB, free: 5.137 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.1615, allocations: 358.8 kB / 494.5 MB, free: 4.777 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005263/0.162, allocations: 237.9 kB / 494.7 MB, free: 4.543 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006346/0.1627, allocations: 432.7 kB / 495.1 MB, free: 4.043 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001159/0.1638, allocations: 0.7051 MB / 495.8 MB, free: 3.246 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.1638, allocations: 0 / 495.8 MB, free: 3.246 MB / 366.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001891/0.1657, allocations: 0.8484 MB / 496.7 MB, free: 2.379 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.515e-05/0.1658, allocations: 33.7 kB / 496.7 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/0.1658, allocations: 8 kB / 496.7 MB, free: 2.332 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005247/0.1664, allocations: 84.91 kB / 496.8 MB, free: 2.246 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007072/0.1671, allocations: 175.7 kB / 497 MB, free: 2.074 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001636/0.1687, allocations: 1.582 MB / 498.5 MB, free: 360 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006933/0.1694, allocations: 95.14 kB / 498.6 MB, free: 264 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.676e-05/0.1695, allocations: 31.98 kB / 498.7 MB, free: 232 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.0004379/0.17, allocations: 274 kB / 498.9 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001489/0.1701, allocations: 55.41 kB / 499 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001492/0.1716, allocations: 0.6929 MB / 499.7 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.1716, allocations: 8 kB / 499.7 MB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.1716, allocations: 7.938 kB / 499.7 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.1717, allocations: 0 / 499.7 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004259/0.1759, allocations: 1.721 MB / 0.4897 GB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.1759, allocations: 0 / 0.4897 GB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003214/0.1763, allocations: 71.91 kB / 0.4897 GB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005815/0.1769, allocations: 254.4 kB / 0.49 GB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.274e-05/0.1769, allocations: 8 kB / 0.49 GB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001074/0.178, allocations: 0.8427 MB / 0.4908 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.178, allocations: 0 / 0.4908 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003352/0.1814, allocations: 1.178 MB / 0.492 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003157/0.1817, allocations: 176.3 kB / 0.4921 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001392/0.1819, allocations: 12 kB / 0.4921 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005041/0.1824, allocations: 40.03 kB / 0.4922 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.793e-05/0.1825, allocations: 23.97 kB / 0.4922 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-05/0.1825, allocations: 23.92 kB / 0.4922 GB, free: 10.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004893/0.183, allocations: 346.9 kB / 0.4926 GB, free: 10.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.183, allocations: 0 / 0.4926 GB, free: 10.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008727/0.1839, allocations: 235.1 kB / 0.4928 GB, free: 10.09 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.0002986/0.1842, allocations: 150.5 kB / 0.4929 GB, free: 9.941 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001632/0.1858, allocations: 0.7668 MB / 0.4937 GB, free: 9.145 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.1859, allocations: 0 / 0.4937 GB, free: 9.145 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006195/0.1865, allocations: 336.7 kB / 0.494 GB, free: 8.805 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006794/0.1872, allocations: 89.88 kB / 0.4941 GB, free: 8.719 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002772/0.19, allocations: 1.368 MB / 0.4954 GB, free: 7.309 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006497/0.1906, allocations: 0.9408 MB / 0.4963 GB, free: 6.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001806/0.1908, allocations: 55.42 kB / 0.4964 GB, free: 6.285 MB / 382.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1908, allocations: 0 / 0.4964 GB, free: 6.285 MB / 382.1 MB Notification: Performance of Templates: time 0.226/0.4168, allocations: 12.95 MB / 0.509 GB, free: 47.34 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)