Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.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.SimpleCellIrradianceCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic") translateModel(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001052/0.001052, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.386/1.386, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02602/0.02602, allocations: 5.395 MB / 296.6 MB, free: 9.477 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001509, allocations: 59.91 kB / 413.5 MB, free: 22.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1093, allocations: 50.63 MB / 464.1 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic): time 0.005829/0.1152, allocations: 3.856 MB / 468 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002958/0.1182, allocations: 1.491 MB / 469.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005731/0.1188, allocations: 8 kB / 469.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008453/0.1197, allocations: 226.5 kB / 469.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007782/0.1205, allocations: 190.5 kB / 469.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006352/0.1212, allocations: 231.6 kB / 470.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001074/0.1222, allocations: 0.7514 MB / 470.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003205/0.1226, allocations: 173.9 kB / 471 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004212/0.123, allocations: 294.9 kB / 471.3 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004024/0.1234, allocations: 338.6 kB / 471.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.1235, allocations: 76 kB / 471.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001587/0.1237, allocations: 83.98 kB / 471.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001287/0.1238, allocations: 143.5 kB / 471.9 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002698/0.1241, allocations: 310.5 kB / 472.2 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007536/0.1249, allocations: 0.7319 MB / 473 MB, free: 10.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1249, allocations: 0 / 473 MB, free: 10.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1249, allocations: 0 / 473 MB, free: 10.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.441e-05/0.1249, allocations: 0 / 473 MB, free: 10.93 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.002519/0.1274, allocations: 1.018 MB / 474 MB, free: 9.859 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.1275, allocations: 8.031 kB / 474 MB, free: 9.852 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001202/0.1276, allocations: 64.19 kB / 474.1 MB, free: 9.789 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001255/0.1289, allocations: 0.5685 MB / 474.6 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.244e-05/0.1289, allocations: 28.78 kB / 474.6 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.78e-05/0.129, allocations: 32 kB / 474.7 MB, free: 9.121 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000962/0.13, allocations: 443.4 kB / 475.1 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.13, allocations: 4 kB / 475.1 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.139e-05/0.13, allocations: 8 kB / 475.1 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.248e-05/0.13, allocations: 8 kB / 475.1 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001115/0.1312, allocations: 406.3 kB / 475.5 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002941/0.1341, allocations: 1.564 MB / 477.1 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00147/0.1356, allocations: 0.57 MB / 477.7 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005363/0.1362, allocations: 188.9 kB / 477.8 MB, free: 5.805 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.357e-05/0.1362, allocations: 11.88 kB / 477.9 MB, free: 5.793 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007063/0.1369, allocations: 262.3 kB / 478.1 MB, free: 5.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.643e-06/0.1369, allocations: 0 / 478.1 MB, free: 5.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.003917/0.1408, allocations: 0.9122 MB / 479 MB, free: 4.578 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.036e-05/0.1409, allocations: 81.11 kB / 479.1 MB, free: 4.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006434/0.1416, allocations: 453.8 kB / 479.5 MB, free: 4.035 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.061e-05/0.1416, allocations: 33.7 kB / 479.6 MB, free: 3.996 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002121/0.1418, allocations: 264.3 kB / 479.8 MB, free: 3.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.003e-05/0.1419, allocations: 78.91 kB / 479.9 MB, free: 3.652 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001367/0.1421, allocations: 66 kB / 480 MB, free: 3.582 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.1423, allocations: 362.7 kB / 480.3 MB, free: 3.219 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005468/0.1428, allocations: 182 kB / 480.5 MB, free: 3.039 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005652/0.1434, allocations: 233.5 kB / 480.7 MB, free: 2.797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00101/0.1444, allocations: 389.1 kB / 481.1 MB, free: 2.398 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1444, allocations: 0 / 481.1 MB, free: 2.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002798/0.1472, allocations: 0.7575 MB / 481.9 MB, free: 1.621 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.289e-05/0.1473, allocations: 33.75 kB / 481.9 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.1473, allocations: 11.94 kB / 481.9 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000825/0.1481, allocations: 233.5 kB / 482.2 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003875/0.1485, allocations: 75.88 kB / 482.2 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005521/0.1541, allocations: 3.743 MB / 486 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006499/0.1547, allocations: 71.55 kB / 486 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.736e-05/0.1548, allocations: 15.98 kB / 486.1 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000718/0.1555, allocations: 300 kB / 486.3 MB, free: 12.86 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005328/0.1561, allocations: 224.8 kB / 486.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009694/0.1571, allocations: 384.7 kB / 486.9 MB, free: 12.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.434e-06/0.1571, allocations: 0 / 486.9 MB, free: 12.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.002693/0.1598, allocations: 0.7493 MB / 487.7 MB, free: 11.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.408e-05/0.1598, allocations: 37.77 kB / 487.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.1598, allocations: 3.938 kB / 487.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007355/0.1606, allocations: 233.5 kB / 488 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003711/0.161, allocations: 75.88 kB / 488 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005156/0.1661, allocations: 3.746 MB / 491.8 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005964/0.1667, allocations: 67.66 kB / 491.8 MB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.293e-05/0.1668, allocations: 12 kB / 491.9 MB, free: 7 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 (triangleAndStep.trapezoid.count,$PRE.triangleAndStep.trapezoid.count,triangleAndStep.trapezoid.T_start,$PRE.triangleAndStep.trapezoid.T_start,triangleAndStep.realToInteger.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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: 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002132/0.167, allocations: 200.2 kB / 492.1 MB, free: 6.797 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.1671, allocations: 47.38 kB / 492.1 MB, free: 6.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001459/0.1673, allocations: 48.02 kB / 492.1 MB, free: 6.699 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.1673, allocations: 4 kB / 492.1 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.1673, allocations: 0 / 492.1 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.1673, allocations: 3.984 kB / 492.2 MB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002943/0.1703, allocations: 1.126 MB / 493.3 MB, free: 5.504 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.1703, allocations: 0 / 493.3 MB, free: 5.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002685/0.1706, allocations: 47.95 kB / 493.3 MB, free: 5.457 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003347/0.1709, allocations: 164.8 kB / 493.5 MB, free: 5.293 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.997e-05/0.171, allocations: 11.98 kB / 493.5 MB, free: 5.281 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003384/0.1743, allocations: 2.007 MB / 495.5 MB, free: 3.121 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.1744, allocations: 4.031 kB / 495.5 MB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002379/0.1768, allocations: 0.6798 MB / 496.2 MB, free: 2.414 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002477/0.177, allocations: 152.4 kB / 496.3 MB, free: 2.246 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.928e-05/0.1771, allocations: 8 kB / 496.3 MB, free: 2.238 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004567/0.1776, allocations: 47.94 kB / 496.4 MB, free: 2.191 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/0.1777, allocations: 31.91 kB / 496.4 MB, free: 2.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.69e-05/0.1777, allocations: 8.125 kB / 496.4 MB, free: 2.152 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00045/0.1782, allocations: 323.1 kB / 496.7 MB, free: 1.844 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1782, allocations: 0 / 496.7 MB, free: 1.844 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008865/0.1791, allocations: 219.4 kB / 497 MB, free: 1.629 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,triangleAndStep.realToInteger.y,triangleAndStep.trapezoid.T_start,triangleAndStep.trapezoid.count) * Number of discrete states: 1 (triangleAndStep.trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000184/0.1793, allocations: 108.4 kB / 497.1 MB, free: 1.516 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002878/0.1822, allocations: 1.255 MB / 498.3 MB, free: 184 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.438e-06/0.1822, allocations: 4 kB / 498.3 MB, free: 180 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007416/0.183, allocations: 298.4 kB / 498.6 MB, free: 15.87 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006806/0.1836, allocations: 108.4 kB / 498.7 MB, free: 15.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001903/0.1856, allocations: 0.8188 MB / 499.5 MB, free: 14.92 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004715/0.1861, allocations: 0.8275 MB / 0.4886 GB, free: 14.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001449/0.1862, allocations: 39.42 kB / 0.4887 GB, free: 14.03 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1862, allocations: 0 / 0.4887 GB, free: 14.03 MB / 382.1 MB Notification: Performance of Templates: time 0.01433/0.2005, allocations: 9.857 MB / 0.4983 GB, free: 4.219 MB / 382.1 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.makefile (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.sim & ./PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic -jacobian=coloredNumerical -nls=newton -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.pipe 2>&1)