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.001224/0.001224, allocations: 112.6 kB / 16.37 MB, free: 6 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.001059/0.001059, allocations: 196 kB / 17.31 MB, free: 5.613 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.373/1.373, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02696/0.02696, allocations: 5.396 MB / 296.6 MB, free: 9.484 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 59.91 kB / 362.4 MB, free: 7.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2036/0.2048, allocations: 50.62 MB / 413 MB, free: 29.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic): time 0.003948/0.2088, allocations: 3.859 MB / 416.9 MB, free: 25.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00187/0.2107, allocations: 1.488 MB / 418.3 MB, free: 23.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002446/0.2109, allocations: 8 kB / 418.3 MB, free: 23.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000604/0.2116, allocations: 234.6 kB / 418.6 MB, free: 23.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004133/0.212, allocations: 182.5 kB / 418.8 MB, free: 23.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000414/0.2124, allocations: 215.7 kB / 419 MB, free: 23.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005579/0.213, allocations: 0.7631 MB / 419.7 MB, free: 22.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002823/0.2133, allocations: 177.9 kB / 419.9 MB, free: 22.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002654/0.2136, allocations: 290.8 kB / 420.2 MB, free: 22.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003077/0.2139, allocations: 334.7 kB / 420.5 MB, free: 21.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.179e-05/0.214, allocations: 79.94 kB / 420.6 MB, free: 21.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001264/0.2141, allocations: 80 kB / 420.7 MB, free: 21.6 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001053/0.2142, allocations: 155.4 kB / 420.8 MB, free: 21.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002293/0.2145, allocations: 310.5 kB / 421.1 MB, free: 21.14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006009/0.2151, allocations: 0.724 MB / 421.8 MB, free: 20.42 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2151, allocations: 0 / 421.8 MB, free: 20.42 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2151, allocations: 0 / 421.8 MB, free: 20.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.2151, allocations: 0 / 421.8 MB, free: 20.42 MB / 302.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.002204/0.2173, allocations: 1.026 MB / 422.9 MB, free: 19.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.2174, allocations: 12.03 kB / 422.9 MB, free: 19.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001142/0.2175, allocations: 56.28 kB / 422.9 MB, free: 19.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001114/0.2186, allocations: 0.5723 MB / 423.5 MB, free: 18.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.519e-05/0.2186, allocations: 28.78 kB / 423.5 MB, free: 18.63 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.82e-05/0.2187, allocations: 32 kB / 423.6 MB, free: 18.6 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00076/0.2195, allocations: 439.5 kB / 424 MB, free: 18.15 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.2195, allocations: 0 / 424 MB, free: 18.15 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.662e-05/0.2195, allocations: 15.98 kB / 424 MB, free: 18.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.2195, allocations: 8 kB / 424 MB, free: 18.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009303/0.2205, allocations: 406.3 kB / 424.4 MB, free: 17.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002243/0.2227, allocations: 1.564 MB / 426 MB, free: 16.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001251/0.224, allocations: 0.5755 MB / 426.6 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004741/0.2245, allocations: 188.7 kB / 426.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.833e-05/0.2245, allocations: 11.88 kB / 426.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005477/0.2251, allocations: 256.8 kB / 427 MB, free: 15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.713e-06/0.2251, allocations: 0 / 427 MB, free: 15 MB / 302.1 MB Notification: Performance of matching and sorting (n=25): time 0.003473/0.2286, allocations: 0.903 MB / 427.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/0.2286, allocations: 85.11 kB / 428 MB, free: 13.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004212/0.2291, allocations: 453.9 kB / 428.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.02e-05/0.2291, allocations: 29.7 kB / 428.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.2292, allocations: 260 kB / 428.7 MB, free: 13.22 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.903e-05/0.2293, allocations: 86.83 kB / 428.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001315/0.2294, allocations: 77.91 kB / 428.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.907e-05/0.2295, allocations: 358.7 kB / 429.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004532/0.23, allocations: 186.2 kB / 429.4 MB, free: 12.51 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004483/0.2304, allocations: 229.4 kB / 429.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008108/0.2313, allocations: 405.2 kB / 430 MB, free: 11.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.2313, allocations: 0 / 430 MB, free: 11.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002454/0.2337, allocations: 0.7573 MB / 430.8 MB, free: 11.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.012e-05/0.2338, allocations: 33.7 kB / 430.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.2338, allocations: 3.938 kB / 430.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008464/0.2347, allocations: 237.6 kB / 431.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003714/0.235, allocations: 83.86 kB / 431.1 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004287/0.2393, allocations: 3.723 MB / 434.9 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005224/0.2399, allocations: 71.66 kB / 434.9 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.222e-05/0.2399, allocations: 8 kB / 434.9 MB, free: 6.629 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005135/0.2404, allocations: 308 kB / 435.2 MB, free: 6.324 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004087/0.2409, allocations: 216.8 kB / 435.5 MB, free: 6.098 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007545/0.2416, allocations: 392.4 kB / 435.8 MB, free: 5.695 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.043e-06/0.2416, allocations: 0 / 435.8 MB, free: 5.695 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.002346/0.244, allocations: 0.761 MB / 436.6 MB, free: 4.914 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.244, allocations: 29.7 kB / 436.6 MB, free: 4.879 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.244, allocations: 4 kB / 436.6 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006607/0.2447, allocations: 237.6 kB / 436.9 MB, free: 4.637 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003318/0.245, allocations: 79.88 kB / 436.9 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00412/0.2492, allocations: 3.734 MB / 440.7 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005461/0.2497, allocations: 59.73 kB / 440.7 MB, free: 500 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.038e-05/0.2498, allocations: 15.98 kB / 440.7 MB, free: 484 kB / 302.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.0001298/0.2499, allocations: 200.4 kB / 440.9 MB, free: 276 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.127e-05/0.25, allocations: 51.38 kB / 441 MB, free: 224 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001032/0.2501, allocations: 48 kB / 441 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2501, allocations: 0 / 441 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.2501, allocations: 0 / 441 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.2501, allocations: 4 kB / 441 MB, free: 176 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002821/0.2529, allocations: 1.127 MB / 442.2 MB, free: 14.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.253, allocations: 0 / 442.2 MB, free: 14.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002768/0.2532, allocations: 59.88 kB / 442.2 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003367/0.2536, allocations: 168.7 kB / 442.4 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.845e-05/0.2536, allocations: 8 kB / 442.4 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003394/0.257, allocations: 2.008 MB / 444.4 MB, free: 12.6 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.2571, allocations: 3.984 kB / 444.4 MB, free: 12.59 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002229/0.2593, allocations: 0.6836 MB / 445.1 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002163/0.2595, allocations: 156.4 kB / 445.3 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.429e-05/0.2596, allocations: 7.984 kB / 445.3 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004116/0.26, allocations: 39.95 kB / 445.3 MB, free: 11.67 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.2601, allocations: 43.83 kB / 445.3 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.521e-05/0.2602, allocations: 8 kB / 445.3 MB, free: 11.62 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003658/0.2605, allocations: 315.1 kB / 445.7 MB, free: 11.31 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2605, allocations: 4 kB / 445.7 MB, free: 11.31 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008211/0.2614, allocations: 211.5 kB / 445.9 MB, free: 11.1 MB / 318.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.0001638/0.2615, allocations: 110.8 kB / 446 MB, free: 10.99 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002513/0.2641, allocations: 1.234 MB / 447.2 MB, free: 9.672 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.2641, allocations: 0 / 447.2 MB, free: 9.672 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006116/0.2647, allocations: 310.6 kB / 447.5 MB, free: 9.355 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006006/0.2653, allocations: 104 kB / 447.6 MB, free: 9.258 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001646/0.267, allocations: 0.8 MB / 448.4 MB, free: 8.422 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005228/0.2675, allocations: 0.8236 MB / 449.2 MB, free: 7.57 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002703/0.2678, allocations: 64.14 kB / 449.3 MB, free: 7.508 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.2679, allocations: 43.42 kB / 449.3 MB, free: 7.465 MB / 318.1 MB Notification: Performance of SimCode: time 2.064e-06/0.2679, allocations: 0 / 449.3 MB, free: 7.465 MB / 318.1 MB Notification: Performance of Templates: time 0.01625/0.2842, allocations: 10.06 MB / 459.4 MB, free: 13.49 MB / 334.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 -s gbode -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.pipe 2>&1)