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.0009579/0.0009579, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.006416/0.006417, allocations: 168.7 kB / 16.26 MB, free: 6.652 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.389/1.389, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.161/0.161, allocations: 5.379 MB / 296.8 MB, free: 3.961 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005415/0.0005416, allocations: 12 kB / 362.6 MB, free: 13.83 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1285, allocations: 51.59 MB / 414.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic): time 0.004185/0.1327, allocations: 3.493 MB / 417.7 MB, free: 6.672 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002434/0.1352, allocations: 1.468 MB / 419.2 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002881/0.1355, allocations: 8 kB / 419.2 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005679/0.1361, allocations: 210.8 kB / 419.4 MB, free: 4.984 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003923/0.1365, allocations: 162.9 kB / 419.5 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004399/0.1369, allocations: 187.8 kB / 419.7 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007177/0.1376, allocations: 0.7084 MB / 420.4 MB, free: 3.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002763/0.1379, allocations: 161.9 kB / 420.6 MB, free: 3.762 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002878/0.1382, allocations: 234.9 kB / 420.8 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003718/0.1386, allocations: 290.7 kB / 421.1 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.502e-05/0.1387, allocations: 28 kB / 421.1 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001045/0.1388, allocations: 32 kB / 421.2 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.705e-05/0.1389, allocations: 115.4 kB / 421.3 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002524/0.1391, allocations: 284.2 kB / 421.5 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006111/0.1398, allocations: 0.6616 MB / 422.2 MB, free: 2.125 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1398, allocations: 0 / 422.2 MB, free: 2.125 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1398, allocations: 4 kB / 422.2 MB, free: 2.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.226e-06/0.1398, allocations: 0 / 422.2 MB, free: 2.121 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.002373/0.1422, allocations: 0.9506 MB / 423.2 MB, free: 1.117 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.1422, allocations: 8.031 kB / 423.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001285/0.1424, allocations: 60.19 kB / 423.2 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001146/0.1435, allocations: 0.5842 MB / 423.8 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.955e-05/0.1436, allocations: 40.77 kB / 423.9 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.07e-05/0.1437, allocations: 36 kB / 423.9 MB, free: 364 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2201/0.3638, allocations: 466.5 kB / 424.3 MB, free: 45.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.3639, allocations: 0 / 424.3 MB, free: 45.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.056e-05/0.364, allocations: 13.31 kB / 424.4 MB, free: 45.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.364, allocations: 8.281 kB / 424.4 MB, free: 45.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001265/0.3652, allocations: 459.5 kB / 424.8 MB, free: 45.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002664/0.3679, allocations: 1.593 MB / 426.4 MB, free: 44.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.3693, allocations: 0.6248 MB / 427 MB, free: 44.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005667/0.3699, allocations: 215.5 kB / 427.2 MB, free: 44.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.913e-05/0.3699, allocations: 7.047 kB / 427.3 MB, free: 44.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007224/0.3707, allocations: 283.4 kB / 427.5 MB, free: 44.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.974e-06/0.3707, allocations: 0 / 427.5 MB, free: 44.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.003782/0.3745, allocations: 1.055 MB / 428.6 MB, free: 44.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.681e-05/0.3745, allocations: 80.33 kB / 428.7 MB, free: 44.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000514/0.375, allocations: 455.7 kB / 429.1 MB, free: 44.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.004e-05/0.3751, allocations: 33.27 kB / 429.1 MB, free: 44.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000182/0.3753, allocations: 261.5 kB / 429.4 MB, free: 43.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.462e-05/0.3753, allocations: 85.39 kB / 429.5 MB, free: 43.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.018e-05/0.3754, allocations: 37.64 kB / 429.5 MB, free: 43.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.347e-05/0.3755, allocations: 354.7 kB / 429.9 MB, free: 43.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005294/0.376, allocations: 206 kB / 430.1 MB, free: 43.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005449/0.3766, allocations: 253.9 kB / 430.3 MB, free: 43.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001068/0.3777, allocations: 453.9 kB / 430.8 MB, free: 43.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3777, allocations: 1.406 kB / 430.8 MB, free: 43.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002753/0.3804, allocations: 0.8482 MB / 431.6 MB, free: 43.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.745e-05/0.3806, allocations: 139.7 kB / 431.7 MB, free: 43.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.3806, allocations: 5.812 kB / 431.7 MB, free: 43.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008669/0.3814, allocations: 250.7 kB / 432 MB, free: 43.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00041/0.3819, allocations: 91.56 kB / 432.1 MB, free: 43.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004333/0.3862, allocations: 3.51 MB / 435.6 MB, free: 40.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006542/0.3869, allocations: 88.92 kB / 435.7 MB, free: 40.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.04e-05/0.3869, allocations: 6.781 kB / 435.7 MB, free: 40.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.688e-06/0.387, allocations: 8.406 kB / 435.7 MB, free: 40.32 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002622/0.3896, allocations: 0.7917 MB / 436.5 MB, free: 40.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.3896, allocations: 0 / 436.5 MB, free: 40.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007515/0.3904, allocations: 249.3 kB / 436.7 MB, free: 40.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003637/0.3907, allocations: 85.31 kB / 436.8 MB, free: 40.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004661/0.3954, allocations: 3.498 MB / 440.3 MB, free: 37.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000714/0.3962, allocations: 84.17 kB / 440.4 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.284e-05/0.3962, allocations: 10.34 kB / 440.4 MB, free: 37.25 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.0003319/0.3966, allocations: 243.6 kB / 440.6 MB, free: 37.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.595e-05/0.3966, allocations: 46.16 kB / 440.7 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.239e-05/0.3967, allocations: 48.53 kB / 440.7 MB, free: 36.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.3967, allocations: 8.438 kB / 440.7 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.3968, allocations: 2.516 kB / 440.7 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.3968, allocations: 2.938 kB / 440.7 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002676/0.3994, allocations: 1.199 MB / 441.9 MB, free: 36.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.3995, allocations: 0 / 441.9 MB, free: 36.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002777/0.3998, allocations: 72.92 kB / 442 MB, free: 36.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003542/0.4001, allocations: 177.5 kB / 442.2 MB, free: 36.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.182e-05/0.4002, allocations: 10.41 kB / 442.2 MB, free: 36.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002889/0.4031, allocations: 1.955 MB / 444.2 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4031, allocations: 4.062 kB / 444.2 MB, free: 34.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002258/0.4053, allocations: 0.7734 MB / 444.9 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00018/0.4055, allocations: 153.7 kB / 445.1 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.257e-05/0.4056, allocations: 6.844 kB / 445.1 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000438/0.406, allocations: 58.58 kB / 445.1 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.4062, allocations: 26.44 kB / 445.2 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.566e-05/0.4062, allocations: 13.59 kB / 445.2 MB, free: 34.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003694/0.4066, allocations: 321 kB / 445.5 MB, free: 34.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4066, allocations: 0 / 445.5 MB, free: 34.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008074/0.4074, allocations: 212.9 kB / 445.7 MB, free: 34.18 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.0001467/0.4076, allocations: 106.5 kB / 445.8 MB, free: 34.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002402/0.41, allocations: 1.313 MB / 447.1 MB, free: 33.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.41, allocations: 3 kB / 447.1 MB, free: 33.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006108/0.4106, allocations: 330.6 kB / 447.4 MB, free: 33.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006345/0.4113, allocations: 99.97 kB / 447.5 MB, free: 33.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/0.4126, allocations: 1.001 MB / 448.5 MB, free: 32.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002148/0.4129, allocations: 0.8266 MB / 449.4 MB, free: 31.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003138/0.4132, allocations: 64.52 kB / 449.4 MB, free: 31.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.956e-05/0.4133, allocations: 38.83 kB / 449.5 MB, free: 31.72 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4133, allocations: 4 kB / 449.5 MB, free: 31.72 MB / 350.1 MB Notification: Performance of Templates: time 0.01284/0.4262, allocations: 9.245 MB / 458.7 MB, free: 31.15 MB / 350.1 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: