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.001207/0.001207, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 196.2 kB / 16.53 MB, free: 6.656 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.352/1.352, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1353/0.1353, allocations: 5.39 MB / 295.8 MB, free: 2.922 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002181/0.002181, allocations: 63.91 kB / 360.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.14, allocations: 50.61 MB / 411.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic): time 0.005889/0.1459, allocations: 3.848 MB / 415.4 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002637/0.1486, allocations: 1.495 MB / 416.9 MB, free: 6.055 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003998/0.149, allocations: 4 kB / 416.9 MB, free: 6.051 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006632/0.1498, allocations: 234.4 kB / 417.1 MB, free: 5.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003993/0.1502, allocations: 178.6 kB / 417.3 MB, free: 5.645 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004676/0.1506, allocations: 219.7 kB / 417.5 MB, free: 5.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007215/0.1514, allocations: 0.7592 MB / 418.3 MB, free: 4.668 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002528/0.1516, allocations: 177.9 kB / 418.4 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002805/0.1519, allocations: 290.8 kB / 418.7 MB, free: 4.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003679/0.1523, allocations: 334.7 kB / 419 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.555e-05/0.1524, allocations: 79.94 kB / 419.1 MB, free: 3.793 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001381/0.1526, allocations: 80 kB / 419.2 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.1527, allocations: 151.5 kB / 419.3 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002638/0.1529, allocations: 306.5 kB / 419.6 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007316/0.1537, allocations: 0.7126 MB / 420.4 MB, free: 2.551 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.1537, allocations: 4 kB / 420.4 MB, free: 2.547 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1537, allocations: 0 / 420.4 MB, free: 2.547 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.1537, allocations: 0 / 420.4 MB, free: 2.547 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.002442/0.1562, allocations: 1.034 MB / 421.4 MB, free: 1.457 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.1562, allocations: 12.03 kB / 421.4 MB, free: 1.445 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.1563, allocations: 56.28 kB / 421.5 MB, free: 1.391 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001147/0.1575, allocations: 0.5607 MB / 422 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.604e-05/0.1576, allocations: 36.77 kB / 422.1 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.398e-05/0.1577, allocations: 36 kB / 422.1 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009284/0.1586, allocations: 443.4 kB / 422.5 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.1586, allocations: 0 / 422.5 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.925e-05/0.1587, allocations: 12 kB / 422.5 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.1587, allocations: 12 kB / 422.5 MB, free: 248 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.169/0.3277, allocations: 393.4 kB / 422.9 MB, free: 48.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002645/0.3304, allocations: 1.57 MB / 424.5 MB, free: 47.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001261/0.3317, allocations: 0.5713 MB / 425.1 MB, free: 47.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005042/0.3322, allocations: 193.6 kB / 425.3 MB, free: 47.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.891e-05/0.3323, allocations: 4.828 kB / 425.3 MB, free: 47.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000623/0.3329, allocations: 252.9 kB / 425.5 MB, free: 47.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.225e-06/0.3329, allocations: 0 / 425.5 MB, free: 47.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.003552/0.3365, allocations: 0.9147 MB / 426.4 MB, free: 47.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.3365, allocations: 80.2 kB / 426.5 MB, free: 46.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004341/0.3369, allocations: 462.5 kB / 427 MB, free: 46.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.731e-05/0.337, allocations: 31.45 kB / 427 MB, free: 46.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.3371, allocations: 258.3 kB / 427.2 MB, free: 46.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.027e-05/0.3372, allocations: 81.89 kB / 427.3 MB, free: 46.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/0.3373, allocations: 69.31 kB / 427.4 MB, free: 46.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.558e-05/0.3374, allocations: 355.9 kB / 427.7 MB, free: 46.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004897/0.3379, allocations: 189.8 kB / 427.9 MB, free: 46.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004886/0.3384, allocations: 223.2 kB / 428.1 MB, free: 45.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000904/0.3393, allocations: 400.9 kB / 428.5 MB, free: 45.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3393, allocations: 0 / 428.5 MB, free: 45.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002527/0.3418, allocations: 0.7589 MB / 429.3 MB, free: 45.53 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.25e-05/0.3419, allocations: 36.23 kB / 429.3 MB, free: 45.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.3419, allocations: 0 / 429.3 MB, free: 45.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007747/0.3427, allocations: 246.3 kB / 429.6 MB, free: 45.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003584/0.343, allocations: 75.12 kB / 429.6 MB, free: 45.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004266/0.3473, allocations: 3.743 MB / 433.4 MB, free: 42.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005731/0.3479, allocations: 66.86 kB / 433.4 MB, free: 42.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.077e-05/0.3479, allocations: 13.86 kB / 433.5 MB, free: 42.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006133/0.3485, allocations: 301.5 kB / 433.8 MB, free: 41.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004672/0.349, allocations: 223.4 kB / 434 MB, free: 41.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000843/0.3499, allocations: 389.4 kB / 434.4 MB, free: 41.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.238e-06/0.3499, allocations: 1.562 kB / 434.4 MB, free: 41.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.002479/0.3524, allocations: 0.7535 MB / 435.1 MB, free: 41.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.011e-05/0.3524, allocations: 37.86 kB / 435.1 MB, free: 41.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.3524, allocations: 7.219 kB / 435.2 MB, free: 41.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006926/0.3531, allocations: 235.4 kB / 435.4 MB, free: 41.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003463/0.3535, allocations: 75.27 kB / 435.5 MB, free: 41.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004211/0.3577, allocations: 3.735 MB / 439.2 MB, free: 38.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005961/0.3583, allocations: 66.5 kB / 439.3 MB, free: 38.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.753e-05/0.3584, allocations: 17.81 kB / 439.3 MB, free: 38.09 MB / 350.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.0001528/0.3585, allocations: 199.8 kB / 439.5 MB, free: 37.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.512e-05/0.3586, allocations: 45.56 kB / 439.5 MB, free: 37.87 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001085/0.3587, allocations: 57.77 kB / 439.6 MB, free: 37.83 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.3587, allocations: 6.906 kB / 439.6 MB, free: 37.83 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.3587, allocations: 0 / 439.6 MB, free: 37.83 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3587, allocations: 7.406 kB / 439.6 MB, free: 37.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002555/0.3613, allocations: 1.113 MB / 440.7 MB, free: 37.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3613, allocations: 3.719 kB / 440.7 MB, free: 37.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002547/0.3616, allocations: 55.47 kB / 440.8 MB, free: 37.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003021/0.3619, allocations: 165.4 kB / 440.9 MB, free: 37.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.435e-05/0.3619, allocations: 7.125 kB / 440.9 MB, free: 37.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002747/0.3647, allocations: 2.014 MB / 442.9 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3647, allocations: 0 / 442.9 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002043/0.3667, allocations: 0.6889 MB / 443.6 MB, free: 35.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001427/0.3669, allocations: 150.5 kB / 443.8 MB, free: 35.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.655e-05/0.367, allocations: 7.422 kB / 443.8 MB, free: 35.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000404/0.3674, allocations: 47.14 kB / 443.8 MB, free: 35.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.3675, allocations: 31.11 kB / 443.9 MB, free: 35.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.076e-05/0.3675, allocations: 6.312 kB / 443.9 MB, free: 35.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003102/0.3678, allocations: 317.2 kB / 444.2 MB, free: 35.03 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.5e-07/0.3678, allocations: 3.125 kB / 444.2 MB, free: 35.03 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008579/0.3687, allocations: 216.3 kB / 444.4 MB, free: 34.99 MB / 350.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.0001454/0.3689, allocations: 112.2 kB / 444.5 MB, free: 34.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002342/0.3712, allocations: 1.246 MB / 445.7 MB, free: 34.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.3712, allocations: 0 / 445.7 MB, free: 34.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005682/0.3718, allocations: 315 kB / 446 MB, free: 33.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006229/0.3724, allocations: 101.5 kB / 446.1 MB, free: 33.92 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001313/0.3738, allocations: 0.8052 MB / 447 MB, free: 33.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002212/0.374, allocations: 0.8337 MB / 447.8 MB, free: 32.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002959/0.3743, allocations: 64.91 kB / 447.8 MB, free: 32.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.626e-05/0.3744, allocations: 39.89 kB / 447.9 MB, free: 32.73 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3744, allocations: 0 / 447.9 MB, free: 32.73 MB / 350.1 MB Notification: Performance of Templates: time 0.01511/0.3895, allocations: 10.05 MB / 457.9 MB, free: 32.12 MB / 350.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)