Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: translateModel(PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic") translateModel(PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001822/0.001822, allocations: 181 kB / 7.45 MB, free: 2.25 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.052/1.052, allocations: 221.4 MB / 229.3 MB, free: 3.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008239/0.0008239, allocations: 99.84 kB / 280.1 MB, free: 1.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02222/0.02222, allocations: 5.292 MB / 336.2 MB, free: 9.223 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.889e-06/4.919e-06, allocations: 0 / 395.7 MB, free: 69.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0664/0.06642, allocations: 51.61 MB / 447.3 MB, free: 17.92 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2103/0.2767, allocations: 84.85 MB / 0.5197 GB, free: 15.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001423/0.2769, allocations: 68.84 kB / 0.5197 GB, free: 15.14 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.04111/0.318, allocations: 15.12 MB / 0.5345 GB, free: 2.52 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.514e-05/0.3181, allocations: 12 kB / 0.5345 GB, free: 2.508 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.001661/0.3198, allocations: 0.8433 MB / 0.5353 GB, free: 1.648 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.3198, allocations: 12.02 kB / 0.5354 GB, free: 1.637 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001373/0.32, allocations: 63.25 kB / 0.5354 GB, free: 1.574 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005946/0.3206, allocations: 424.3 kB / 0.5358 GB, free: 1.191 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.178e-05/0.3206, allocations: 19.94 kB / 0.5358 GB, free: 1.172 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.525e-05/0.3207, allocations: 20 kB / 0.5359 GB, free: 1.152 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006766/0.3213, allocations: 388.2 kB / 0.5362 GB, free: 0.9258 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005831/0.3219, allocations: 368.7 kB / 0.5366 GB, free: 0.6602 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.3219, allocations: 0 / 0.5366 GB, free: 0.6602 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.82e-05/0.322, allocations: 0 / 0.5366 GB, free: 0.6602 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/0.322, allocations: 8 kB / 0.5366 GB, free: 0.6523 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00277/0.3248, allocations: 1.714 MB / 0.5383 GB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006519/0.3254, allocations: 311.4 kB / 0.5386 GB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003331/0.3258, allocations: 192.8 kB / 0.5387 GB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.713e-05/0.3258, allocations: 12.28 kB / 0.5388 GB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00032/0.3262, allocations: 241.1 kB / 0.539 GB, free: 14.68 MB / 362.7 MB Notification: Performance of pre-optimization done (n=32): time 1.343e-06/0.3262, allocations: 0 / 0.539 GB, free: 14.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.003113/0.3293, allocations: 0.6809 MB / 0.5396 GB, free: 14.12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.526e-05/0.3294, allocations: 136.5 kB / 0.5398 GB, free: 13.95 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004366/0.3298, allocations: 378.2 kB / 0.5401 GB, free: 13.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.919e-05/0.3299, allocations: 25.7 kB / 0.5402 GB, free: 13.63 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.33, allocations: 193.9 kB / 0.5403 GB, free: 13.46 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.285e-05/0.33, allocations: 104.6 kB / 0.5404 GB, free: 13.37 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.624e-05/0.3301, allocations: 0 / 0.5404 GB, free: 13.37 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.3302, allocations: 351.6 kB / 0.5408 GB, free: 13.03 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002398/0.3305, allocations: 154.4 kB / 0.5409 GB, free: 12.95 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002652/0.3307, allocations: 207 kB / 0.5411 GB, free: 12.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002562/0.331, allocations: 159.2 kB / 0.5413 GB, free: 12.7 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.331, allocations: 0 / 0.5413 GB, free: 12.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.003437/0.3344, allocations: 0.8166 MB / 0.5421 GB, free: 12.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001838/0.3346, allocations: 0.5311 MB / 0.5426 GB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.3346, allocations: 0 / 0.5426 GB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00279/0.3374, allocations: 0.5669 MB / 0.5432 GB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004303/0.3379, allocations: 95.23 kB / 0.5432 GB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006311/0.3442, allocations: 3.954 MB / 0.5471 GB, free: 7.215 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005893/0.3448, allocations: 91.69 kB / 0.5472 GB, free: 7.125 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.311e-05/0.3449, allocations: 14.86 kB / 0.5472 GB, free: 7.113 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.993e-06/0.3449, allocations: 11.84 kB / 0.5472 GB, free: 7.102 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003331/0.3482, allocations: 0.7318 MB / 0.5479 GB, free: 6.512 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.3482, allocations: 7.984 kB / 0.5479 GB, free: 6.504 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002743/0.351, allocations: 0.5671 MB / 0.5485 GB, free: 5.996 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003954/0.3514, allocations: 95.69 kB / 0.5486 GB, free: 5.906 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006225/0.3576, allocations: 3.929 MB / 0.5524 GB, free: 2.273 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005602/0.3582, allocations: 87.69 kB / 0.5525 GB, free: 2.188 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.549e-05/0.3583, allocations: 19.72 kB / 0.5525 GB, free: 2.172 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: variableResistor.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,triangleAndStep.integerToReal.u,$PRE.triangleAndStep.trapezoid.T_start,triangleAndStep.trapezoid.T_start,$PRE.triangleAndStep.trapezoid.count,triangleAndStep.trapezoid.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001746/0.3584, allocations: 123.5 kB / 0.5526 GB, free: 2.051 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.039e-05/0.3585, allocations: 51.34 kB / 0.5527 GB, free: 2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003118/0.3617, allocations: 0.7124 MB / 0.5534 GB, free: 1.422 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.3617, allocations: 4 kB / 0.5534 GB, free: 1.418 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.3617, allocations: 0 / 0.5534 GB, free: 1.418 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.3617, allocations: 3.984 kB / 0.5534 GB, free: 1.414 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003823/0.3655, allocations: 1.407 MB / 0.5548 GB, free: 272 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.3655, allocations: 0 / 0.5548 GB, free: 272 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003613/0.3659, allocations: 87.91 kB / 0.5549 GB, free: 184 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00229/0.3682, allocations: 485.7 kB / 0.5553 GB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.77e-05/0.3683, allocations: 3.984 kB / 0.5553 GB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004476/0.3727, allocations: 2.228 MB / 0.5575 GB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3727, allocations: 0 / 0.5575 GB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003021/0.3758, allocations: 0.8028 MB / 0.5583 GB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001965/0.376, allocations: 170.9 kB / 0.5584 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.399e-05/0.3761, allocations: 7.812 kB / 0.5584 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005268/0.3766, allocations: 71.84 kB / 0.5585 GB, free: 12.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.071e-05/0.3767, allocations: 34.69 kB / 0.5585 GB, free: 12.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.385e-05/0.3768, allocations: 15.23 kB / 0.5586 GB, free: 12.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002896/0.377, allocations: 293.6 kB / 0.5588 GB, free: 12.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008187/0.3779, allocations: 255.4 kB / 0.5591 GB, free: 12.36 MB / 378.7 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.integerToReal.u,triangleAndStep.trapezoid.T_start,triangleAndStep.trapezoid.count) * Number of discrete states: 1 (triangleAndStep.trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.000199/0.3781, allocations: 142.8 kB / 0.5592 GB, free: 12.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001604/0.3797, allocations: 1.102 MB / 0.5603 GB, free: 11.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3797, allocations: 0 / 0.5603 GB, free: 11.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004058/0.3801, allocations: 299.1 kB / 0.5606 GB, free: 11.04 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004465/0.3806, allocations: 78.05 kB / 0.5607 GB, free: 10.99 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001492/0.3821, allocations: 0.6581 MB / 0.5613 GB, free: 10.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004742/0.3826, allocations: 0.8903 MB / 0.5622 GB, free: 9.465 MB / 378.7 MB Notification: Performance of SimCode: time 2.9e-07/0.3826, allocations: 0 / 0.5622 GB, free: 9.465 MB / 378.7 MB Notification: Performance of Templates: time 0.01929/0.4019, allocations: 14.33 MB / 0.5762 GB, free: 11.19 MB / 394.7 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.makefile (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.sim & ./PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic -jacobian=coloredNumerical -nls=newton -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.pipe 2>&1)