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/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.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") [: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.002122/0.002122, allocations: 179.3 kB / 7.453 MB, free: 2.508 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.054/1.054, allocations: 221.4 MB / 229.3 MB, free: 3.281 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.000844/0.000844, allocations: 90.41 kB / 280.1 MB, free: 1.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02245/0.02245, allocations: 5.289 MB / 336.2 MB, free: 9.215 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.979e-06/4.999e-06, allocations: 0 / 395.7 MB, free: 69.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06599/0.06601, allocations: 51.61 MB / 447.3 MB, free: 17.88 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2037/0.2698, allocations: 84.73 MB / 0.5196 GB, free: 15.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001507/0.27, allocations: 73.16 kB / 0.5196 GB, free: 15.21 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03898/0.309, allocations: 14.45 MB / 0.5337 GB, free: 3.152 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.353e-05/0.309, allocations: 12 kB / 0.5338 GB, free: 3.141 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001534/0.3106, allocations: 0.8346 MB / 0.5346 GB, free: 2.289 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.118e-05/0.3106, allocations: 15.97 kB / 0.5346 GB, free: 2.273 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.3107, allocations: 59.25 kB / 0.5346 GB, free: 2.215 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005324/0.3113, allocations: 416.2 kB / 0.535 GB, free: 1.836 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.744e-05/0.3113, allocations: 15.56 kB / 0.535 GB, free: 1.824 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.407e-05/0.3113, allocations: 20 kB / 0.5351 GB, free: 1.805 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000625/0.312, allocations: 373.7 kB / 0.5354 GB, free: 1.59 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005274/0.3125, allocations: 358.6 kB / 0.5358 GB, free: 1.312 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.3125, allocations: 3.938 kB / 0.5358 GB, free: 1.309 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.745e-05/0.3126, allocations: 4 kB / 0.5358 GB, free: 1.305 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.497e-06/0.3126, allocations: 8 kB / 0.5358 GB, free: 1.297 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002658/0.3153, allocations: 1.721 MB / 0.5375 GB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007054/0.316, allocations: 337.2 kB / 0.5378 GB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002997/0.3163, allocations: 177.3 kB / 0.538 GB, free: 15.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.258e-05/0.3163, allocations: 4.234 kB / 0.538 GB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002839/0.3166, allocations: 216 kB / 0.5382 GB, free: 15.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 1.453e-06/0.3166, allocations: 0 / 0.5382 GB, free: 15.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.003044/0.3197, allocations: 0.6497 MB / 0.5388 GB, free: 14.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.397e-05/0.3197, allocations: 136.5 kB / 0.5389 GB, free: 14.67 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004122/0.3202, allocations: 401.7 kB / 0.5393 GB, free: 14.36 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.712e-05/0.3202, allocations: 29.14 kB / 0.5393 GB, free: 14.33 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.879e-05/0.3203, allocations: 192 kB / 0.5395 GB, free: 14.16 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.801e-05/0.3204, allocations: 100.4 kB / 0.5396 GB, free: 14.07 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.592e-05/0.3204, allocations: 0 / 0.5396 GB, free: 14.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.3205, allocations: 350.9 kB / 0.54 GB, free: 13.74 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002304/0.3208, allocations: 145.9 kB / 0.5401 GB, free: 13.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002565/0.321, allocations: 201.2 kB / 0.5403 GB, free: 13.52 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002407/0.3213, allocations: 159.2 kB / 0.5404 GB, free: 13.42 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3213, allocations: 0 / 0.5404 GB, free: 13.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.003399/0.3247, allocations: 0.8132 MB / 0.5412 GB, free: 12.75 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000145/0.3248, allocations: 451.4 kB / 0.5417 GB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.3249, allocations: 4 kB / 0.5417 GB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002795/0.3277, allocations: 0.5601 MB / 0.5422 GB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004072/0.3281, allocations: 91 kB / 0.5423 GB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006198/0.3343, allocations: 3.967 MB / 0.5462 GB, free: 8.031 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005799/0.3349, allocations: 87.75 kB / 0.5463 GB, free: 7.945 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.363e-05/0.3349, allocations: 19.28 kB / 0.5463 GB, free: 7.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.04e-06/0.3349, allocations: 4 kB / 0.5463 GB, free: 7.926 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003304/0.3382, allocations: 0.7263 MB / 0.547 GB, free: 7.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.361e-06/0.3383, allocations: 4.188 kB / 0.547 GB, free: 7.336 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002685/0.341, allocations: 0.5738 MB / 0.5475 GB, free: 6.824 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003859/0.3414, allocations: 87.88 kB / 0.5476 GB, free: 6.738 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006215/0.3476, allocations: 3.946 MB / 0.5515 GB, free: 3.094 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005343/0.3481, allocations: 75.86 kB / 0.5516 GB, free: 3.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.981e-05/0.3482, allocations: 23.62 kB / 0.5516 GB, free: 3 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: 5 * 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 (36): * Single equations (assignments): 33 * 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.0001644/0.3483, allocations: 117 kB / 0.5517 GB, free: 2.879 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.242e-05/0.3484, allocations: 47.44 kB / 0.5517 GB, free: 2.832 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.079e-05/0.3485, allocations: 51.81 kB / 0.5518 GB, free: 2.801 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.3485, allocations: 0 / 0.5518 GB, free: 2.801 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.3485, allocations: 4 kB / 0.5518 GB, free: 2.797 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.3485, allocations: 0 / 0.5518 GB, free: 2.797 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003569/0.3521, allocations: 1.341 MB / 0.5531 GB, free: 1.688 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.3521, allocations: 0 / 0.5531 GB, free: 1.688 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003047/0.3524, allocations: 83.72 kB / 0.5532 GB, free: 1.609 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002251/0.3547, allocations: 484.8 kB / 0.5536 GB, free: 1.191 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3e-05/0.3547, allocations: 7.234 kB / 0.5537 GB, free: 1.188 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004417/0.3592, allocations: 2.225 MB / 0.5558 GB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3592, allocations: 0 / 0.5558 GB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00293/0.3621, allocations: 0.7631 MB / 0.5566 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001921/0.3623, allocations: 172 kB / 0.5567 GB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.122e-05/0.3624, allocations: 11.84 kB / 0.5567 GB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005181/0.3629, allocations: 67.94 kB / 0.5568 GB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.632e-05/0.363, allocations: 38.8 kB / 0.5568 GB, free: 14.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.934e-05/0.3631, allocations: 7.984 kB / 0.5569 GB, free: 14.28 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003029/0.3634, allocations: 307.4 kB / 0.5571 GB, free: 14.06 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008035/0.3642, allocations: 247.5 kB / 0.5574 GB, free: 13.82 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 (24): * Single equations (assignments): 21 * 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.0002168/0.3644, allocations: 154.8 kB / 0.5575 GB, free: 13.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001546/0.366, allocations: 1.068 MB / 0.5586 GB, free: 12.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.366, allocations: 4 kB / 0.5586 GB, free: 12.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003686/0.3664, allocations: 272.3 kB / 0.5588 GB, free: 12.53 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004352/0.3668, allocations: 72.11 kB / 0.5589 GB, free: 12.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001522/0.3683, allocations: 0.6369 MB / 0.5595 GB, free: 11.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000464/0.3688, allocations: 0.8777 MB / 0.5604 GB, free: 11 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3688, allocations: 0 / 0.5604 GB, free: 11 MB / 378.7 MB Notification: Performance of Templates: time 0.01914/0.388, allocations: 14.17 MB / 0.5742 GB, free: 12.88 MB / 394.7 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)