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.007748/0.007749, allocations: 99.81 kB / 15.73 MB, free: 6.449 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.001667/0.001667, allocations: 192.9 kB / 16.67 MB, free: 6.352 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1791/0.1791, allocations: 5.378 MB / 295.9 MB, free: 2.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002309/0.002309, allocations: 64.08 kB / 412.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3397/0.342, allocations: 50.61 MB / 463.4 MB, free: 21.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic): time 0.004723/0.3468, allocations: 3.853 MB / 467.3 MB, free: 18.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002003/0.3488, allocations: 1.495 MB / 468.8 MB, free: 17.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002542/0.3491, allocations: 10.09 kB / 468.8 MB, free: 17.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005406/0.3497, allocations: 230.5 kB / 469 MB, free: 17.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003719/0.3501, allocations: 180.8 kB / 469.2 MB, free: 17.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004693/0.3505, allocations: 217.7 kB / 469.4 MB, free: 17.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000725/0.3513, allocations: 0.7653 MB / 470.2 MB, free: 17.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002733/0.3516, allocations: 176.3 kB / 470.3 MB, free: 16.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000305/0.3519, allocations: 294.4 kB / 470.6 MB, free: 16.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003939/0.3523, allocations: 329.3 kB / 470.9 MB, free: 16.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001126/0.3524, allocations: 78.19 kB / 471 MB, free: 16.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001675/0.3526, allocations: 84.17 kB / 471.1 MB, free: 16.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001256/0.3527, allocations: 156.9 kB / 471.2 MB, free: 16.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002757/0.353, allocations: 313.4 kB / 471.6 MB, free: 16.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008485/0.3538, allocations: 0.7222 MB / 472.3 MB, free: 16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3538, allocations: 1.375 kB / 472.3 MB, free: 16 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3539, allocations: 3.938 kB / 472.3 MB, free: 16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.504e-05/0.3539, allocations: 0 / 472.3 MB, free: 16 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.002432/0.3563, allocations: 1.035 MB / 473.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.3564, allocations: 9.844 kB / 473.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001273/0.3565, allocations: 60.75 kB / 473.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001243/0.3577, allocations: 0.5747 MB / 474 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.68e-05/0.3578, allocations: 33.97 kB / 474 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.298e-05/0.3579, allocations: 29.84 kB / 474 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.3589, allocations: 443.3 kB / 474.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.3589, allocations: 1.156 kB / 474.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.405e-05/0.359, allocations: 11.56 kB / 474.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.494e-05/0.359, allocations: 7.281 kB / 474.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001228/0.3602, allocations: 406.1 kB / 474.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003138/0.3634, allocations: 1.565 MB / 476.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001434/0.3648, allocations: 0.5744 MB / 477 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000531/0.3654, allocations: 192.5 kB / 477.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.53e-05/0.3654, allocations: 11.44 kB / 477.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006279/0.3661, allocations: 258.7 kB / 477.5 MB, free: 13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.064e-06/0.3661, allocations: 0 / 477.5 MB, free: 13 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.003558/0.3696, allocations: 0.9135 MB / 478.4 MB, free: 12.53 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.958e-05/0.3697, allocations: 81.48 kB / 478.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007603/0.3705, allocations: 455.5 kB / 478.9 MB, free: 12.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.495e-05/0.3705, allocations: 30.86 kB / 478.9 MB, free: 12.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002211/0.3708, allocations: 263.9 kB / 479.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.585e-05/0.3709, allocations: 89.28 kB / 479.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001614/0.371, allocations: 71.89 kB / 479.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.3712, allocations: 361.3 kB / 479.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005653/0.3717, allocations: 184 kB / 479.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006079/0.3723, allocations: 229.7 kB / 480.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001116/0.3735, allocations: 395.1 kB / 480.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.3735, allocations: 0 / 480.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.003036/0.3765, allocations: 0.7569 MB / 481.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.347e-05/0.3766, allocations: 31.61 kB / 481.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.839e-05/0.3766, allocations: 9.094 kB / 481.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009892/0.3776, allocations: 242.1 kB / 481.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004374/0.3781, allocations: 81.62 kB / 481.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004946/0.383, allocations: 3.734 MB / 485.3 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008521/0.3839, allocations: 70.97 kB / 485.4 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.326e-05/0.384, allocations: 13 kB / 485.4 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008027/0.3848, allocations: 301 kB / 485.7 MB, free: 6.613 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004874/0.3853, allocations: 223.4 kB / 485.9 MB, free: 6.477 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009167/0.3862, allocations: 379.4 kB / 486.3 MB, free: 6.254 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.573e-06/0.3862, allocations: 0 / 486.3 MB, free: 6.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.002533/0.3888, allocations: 0.7564 MB / 487.1 MB, free: 5.852 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.4e-05/0.3888, allocations: 40.31 kB / 487.1 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.3888, allocations: 1.156 kB / 487.1 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006906/0.3895, allocations: 242 kB / 487.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003398/0.3899, allocations: 71.72 kB / 487.4 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004304/0.3942, allocations: 3.746 MB / 491.1 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00063/0.3949, allocations: 58.55 kB / 491.2 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.808e-05/0.3949, allocations: 16.77 kB / 491.2 MB, free: 2.117 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.0001817/0.3951, allocations: 195.1 kB / 491.4 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.14e-05/0.3952, allocations: 52.7 kB / 491.5 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001222/0.3953, allocations: 48.83 kB / 491.5 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.3953, allocations: 6.141 kB / 491.5 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3953, allocations: 0.9688 kB / 491.5 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.3953, allocations: 0 / 491.5 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002658/0.398, allocations: 1.124 MB / 492.6 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.398, allocations: 0 / 492.6 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002752/0.3983, allocations: 53.67 kB / 492.7 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003458/0.3987, allocations: 163 kB / 492.9 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.92e-05/0.3987, allocations: 9.359 kB / 492.9 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003133/0.4018, allocations: 2.023 MB / 494.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4019, allocations: 0 / 494.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002285/0.4041, allocations: 0.6793 MB / 495.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002191/0.4044, allocations: 156 kB / 495.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.734e-05/0.4045, allocations: 6.375 kB / 495.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004171/0.4049, allocations: 48 kB / 495.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001176/0.405, allocations: 33.03 kB / 495.8 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.997e-05/0.405, allocations: 9.172 kB / 495.8 MB, free: 14.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004343/0.4055, allocations: 322.2 kB / 496.1 MB, free: 14.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4055, allocations: 0 / 496.1 MB, free: 14.33 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009245/0.4064, allocations: 213 kB / 496.3 MB, free: 14.29 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.00018/0.4066, allocations: 107.4 kB / 496.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002739/0.4094, allocations: 1.272 MB / 497.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.4094, allocations: 1.094 kB / 497.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000671/0.41, allocations: 302 kB / 498 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006826/0.4107, allocations: 98.92 kB / 498.1 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00161/0.4124, allocations: 0.8077 MB / 498.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004989/0.4129, allocations: 0.8275 MB / 499.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002902/0.4132, allocations: 64.14 kB / 499.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.4133, allocations: 43.42 kB / 499.8 MB, free: 11.42 MB / 366.1 MB Notification: Performance of SimCode: time 1.533e-06/0.4133, allocations: 0 / 499.8 MB, free: 11.42 MB / 366.1 MB Notification: Performance of Templates: time 0.01686/0.4302, allocations: 10.14 MB / 0.498 GB, free: 1.363 MB / 366.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)