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.00741/0.00741, allocations: 103.8 kB / 15.73 MB, free: 6.043 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.001433/0.001433, allocations: 189 kB / 16.67 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02741/0.02741, allocations: 5.405 MB / 295.9 MB, free: 9.453 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 56.14 kB / 412.8 MB, free: 22.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08267/0.08404, allocations: 50.62 MB / 463.4 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.007285/0.09135, allocations: 6.349 MB / 469.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004022/0.0954, allocations: 2.558 MB / 472.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007056/0.09612, allocations: 16 kB / 472.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002366/0.0985, allocations: 1.118 MB / 473.5 MB, free: 9.738 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001541/0.1001, allocations: 0.7838 MB / 474.2 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006113/0.1007, allocations: 347.3 kB / 474.6 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009462/0.1016, allocations: 1.153 MB / 475.7 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001176/0.1028, allocations: 0.9811 MB / 476.7 MB, free: 6.445 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004321/0.1033, allocations: 474.3 kB / 477.2 MB, free: 5.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006339/0.1039, allocations: 0.5836 MB / 477.8 MB, free: 5.395 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001385/0.1041, allocations: 128 kB / 477.9 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004727/0.1045, allocations: 283.8 kB / 478.2 MB, free: 4.992 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001799/0.1047, allocations: 255.1 kB / 478.4 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004374/0.1052, allocations: 0.5365 MB / 478.9 MB, free: 4.203 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001351/0.1065, allocations: 1.491 MB / 480.4 MB, free: 2.707 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1065, allocations: 0 / 480.4 MB, free: 2.707 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1065, allocations: 0 / 480.4 MB, free: 2.707 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.194e-05/0.1066, allocations: 0 / 480.4 MB, free: 2.707 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.004046/0.1106, allocations: 1.538 MB / 482 MB, free: 1.113 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.1107, allocations: 12.03 kB / 482 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002084/0.1128, allocations: 355.4 kB / 482.3 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001322/0.1141, allocations: 0.6826 MB / 483 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.88e-05/0.1142, allocations: 78.11 kB / 483.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000131/0.1143, allocations: 92 kB / 483.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001664/0.116, allocations: 0.9893 MB / 484.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.534e-05/0.116, allocations: 0 / 484.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.299e-05/0.1161, allocations: 44 kB / 484.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.714e-05/0.1161, allocations: 23.98 kB / 484.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001615/0.1178, allocations: 0.8394 MB / 485.1 MB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005275/0.1231, allocations: 3.848 MB / 488.9 MB, free: 9.887 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002026/0.1251, allocations: 1.474 MB / 490.4 MB, free: 8.191 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004888/0.1256, allocations: 256.3 kB / 490.7 MB, free: 7.938 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.01e-05/0.1257, allocations: 89.09 kB / 490.7 MB, free: 7.832 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005597/0.1263, allocations: 317.8 kB / 491 MB, free: 7.496 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 1.883e-06/0.1263, allocations: 0 / 491 MB, free: 7.496 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.002618/0.1289, allocations: 0.9562 MB / 492 MB, free: 6.508 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.792e-05/0.129, allocations: 140.5 kB / 492.1 MB, free: 6.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005373/0.1295, allocations: 0.4979 MB / 492.6 MB, free: 5.828 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.584e-05/0.1296, allocations: 41.62 kB / 492.7 MB, free: 5.781 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002599/0.1298, allocations: 462.3 kB / 493.1 MB, free: 5.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.13, allocations: 161.7 kB / 493.3 MB, free: 5.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002164/0.1302, allocations: 146.5 kB / 493.4 MB, free: 5.012 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.1303, allocations: 362.8 kB / 493.8 MB, free: 4.648 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004938/0.1308, allocations: 229.9 kB / 494 MB, free: 4.422 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006219/0.1314, allocations: 432.7 kB / 494.4 MB, free: 3.922 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001079/0.1325, allocations: 0.7051 MB / 495.1 MB, free: 3.125 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.1325, allocations: 4 kB / 495.1 MB, free: 3.121 MB / 366.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001682/0.1342, allocations: 0.8484 MB / 496 MB, free: 2.254 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.65e-05/0.1343, allocations: 33.7 kB / 496 MB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/0.1343, allocations: 8 kB / 496 MB, free: 2.207 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004597/0.1348, allocations: 88.77 kB / 496.1 MB, free: 2.117 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000685/0.1355, allocations: 171.9 kB / 496.3 MB, free: 1.949 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001455/0.1369, allocations: 1.578 MB / 497.9 MB, free: 236 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006035/0.1376, allocations: 99.23 kB / 498 MB, free: 136 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.568e-05/0.1376, allocations: 35.98 kB / 498 MB, free: 100 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.0003644/0.138, allocations: 277.8 kB / 498.3 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.777e-05/0.1381, allocations: 55.34 kB / 498.3 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001433/0.1395, allocations: 0.6968 MB / 499 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.1395, allocations: 4 kB / 499 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.1395, allocations: 3.938 kB / 499 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.1396, allocations: 0 / 499 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003709/0.1433, allocations: 1.713 MB / 0.489 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.1433, allocations: 3.984 kB / 0.489 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003247/0.1436, allocations: 79.94 kB / 0.4891 GB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005638/0.1442, allocations: 254.3 kB / 0.4893 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.738e-05/0.1442, allocations: 16 kB / 0.4893 GB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009859/0.1452, allocations: 0.8272 MB / 0.4901 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.1453, allocations: 4.031 kB / 0.4902 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003086/0.1484, allocations: 1.186 MB / 0.4913 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002346/0.1486, allocations: 172.3 kB / 0.4915 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.222e-05/0.1487, allocations: 16 kB / 0.4915 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004159/0.1491, allocations: 31.97 kB / 0.4915 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.677e-05/0.1492, allocations: 23.97 kB / 0.4915 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.709e-05/0.1492, allocations: 23.92 kB / 0.4916 GB, free: 10.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004117/0.1497, allocations: 354.9 kB / 0.4919 GB, free: 10.19 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1497, allocations: 0 / 0.4919 GB, free: 10.19 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007125/0.1504, allocations: 231.1 kB / 0.4921 GB, free: 9.965 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.0002209/0.1506, allocations: 147.7 kB / 0.4923 GB, free: 9.812 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00148/0.1521, allocations: 0.7634 MB / 0.493 GB, free: 9.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1521, allocations: 3.938 kB / 0.493 GB, free: 9.016 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006083/0.1527, allocations: 332.2 kB / 0.4933 GB, free: 8.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006269/0.1534, allocations: 93.86 kB / 0.4934 GB, free: 8.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002626/0.156, allocations: 1.336 MB / 0.4947 GB, free: 7.219 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005382/0.1566, allocations: 0.9369 MB / 0.4956 GB, free: 6.254 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003441/0.1569, allocations: 88.95 kB / 0.4957 GB, free: 6.168 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/0.1571, allocations: 47.42 kB / 0.4958 GB, free: 6.121 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1571, allocations: 0 / 0.4958 GB, free: 6.121 MB / 382.1 MB Notification: Performance of Templates: time 0.2255/0.3825, allocations: 8.274 MB / 0.5039 GB, free: 49.1 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)