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: "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellIrradianceCharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellIrradianceCharacteristic",fmuType="me",version="2.0",platforms={"static"}) [: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.00228/0.00228, allocations: 180.2 kB / 7.458 MB, free: 2.188 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.079/1.079, allocations: 221.4 MB / 229.3 MB, free: 3.055 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.0008651/0.000865, allocations: 92.86 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.02304/0.02304, allocations: 5.288 MB / 336.2 MB, free: 9.219 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1846/0.2076, allocations: 59.61 MB / 395.8 MB, free: 69.37 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06678/0.2744, allocations: 51.6 MB / 447.4 MB, free: 17.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2189/0.4934, allocations: 84.73 MB / 0.5197 GB, free: 15.16 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001811/0.4936, allocations: 72.39 kB / 0.5197 GB, free: 15.12 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.04422/0.5378, allocations: 15.3 MB / 0.5347 GB, free: 2.207 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.5379, allocations: 8 kB / 0.5347 GB, free: 2.199 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001608/0.5381, allocations: 63.25 kB / 0.5347 GB, free: 2.137 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006516/0.5387, allocations: 414.9 kB / 0.5351 GB, free: 1.762 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.11e-05/0.5388, allocations: 15.94 kB / 0.5351 GB, free: 1.746 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.05e-05/0.5388, allocations: 24 kB / 0.5352 GB, free: 1.723 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006949/0.5395, allocations: 381.6 kB / 0.5355 GB, free: 1.504 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005849/0.5401, allocations: 354.4 kB / 0.5359 GB, free: 1.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.5401, allocations: 0 / 0.5359 GB, free: 1.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.028e-05/0.5402, allocations: 3.938 kB / 0.5359 GB, free: 1.227 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/0.5402, allocations: 8 kB / 0.5359 GB, free: 1.219 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002907/0.5431, allocations: 1.729 MB / 0.5376 GB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007783/0.5439, allocations: 329.4 kB / 0.5379 GB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003087/0.5442, allocations: 175.6 kB / 0.538 GB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.706e-05/0.5443, allocations: 4.625 kB / 0.538 GB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000299/0.5446, allocations: 216.4 kB / 0.5383 GB, free: 15.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 1.833e-06/0.5446, allocations: 0 / 0.5383 GB, free: 15.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.003143/0.5477, allocations: 0.6548 MB / 0.5389 GB, free: 14.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.313e-05/0.5478, allocations: 132.5 kB / 0.539 GB, free: 14.59 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004629/0.5483, allocations: 395.8 kB / 0.5394 GB, free: 14.29 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.384e-05/0.5483, allocations: 33.7 kB / 0.5394 GB, free: 14.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.5485, allocations: 195.3 kB / 0.5396 GB, free: 14.08 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.477e-05/0.5485, allocations: 88.66 kB / 0.5397 GB, free: 14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.711e-05/0.5486, allocations: 3.938 kB / 0.5397 GB, free: 14 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.5487, allocations: 351.9 kB / 0.54 GB, free: 13.66 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002395/0.549, allocations: 146.3 kB / 0.5402 GB, free: 13.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002811/0.5492, allocations: 209.8 kB / 0.5404 GB, free: 13.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002738/0.5495, allocations: 151.6 kB / 0.5405 GB, free: 13.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.5495, allocations: 0 / 0.5405 GB, free: 13.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.003546/0.5531, allocations: 0.8163 MB / 0.5413 GB, free: 12.67 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001678/0.5533, allocations: 455.8 kB / 0.5418 GB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.5533, allocations: 0 / 0.5418 GB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002946/0.5562, allocations: 0.5711 MB / 0.5423 GB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004895/0.5567, allocations: 91.88 kB / 0.5424 GB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006948/0.5637, allocations: 3.962 MB / 0.5463 GB, free: 7.941 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008268/0.5646, allocations: 83.75 kB / 0.5464 GB, free: 7.859 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.632e-05/0.5647, allocations: 23.47 kB / 0.5464 GB, free: 7.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.5647, allocations: 4 kB / 0.5464 GB, free: 7.836 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003524/0.5682, allocations: 0.725 MB / 0.5471 GB, free: 7.254 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.5683, allocations: 192 / 0.5471 GB, free: 7.254 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002846/0.5711, allocations: 0.5689 MB / 0.5476 GB, free: 6.742 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000447/0.5716, allocations: 91.75 kB / 0.5477 GB, free: 6.656 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006523/0.5781, allocations: 3.949 MB / 0.5516 GB, free: 3.012 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006814/0.5788, allocations: 71.86 kB / 0.5517 GB, free: 2.941 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.388e-05/0.5789, allocations: 31.44 kB / 0.5517 GB, free: 2.914 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.0002105/0.5791, allocations: 111.7 kB / 0.5518 GB, free: 2.801 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.5792, allocations: 43.44 kB / 0.5518 GB, free: 2.758 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001346/0.5794, allocations: 48.94 kB / 0.5519 GB, free: 2.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.5794, allocations: 4 kB / 0.5519 GB, free: 2.727 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.5794, allocations: 3.938 kB / 0.5519 GB, free: 2.723 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.5794, allocations: 0 / 0.5519 GB, free: 2.723 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003934/0.5833, allocations: 1.347 MB / 0.5532 GB, free: 1.609 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.5834, allocations: 0 / 0.5532 GB, free: 1.609 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003358/0.5837, allocations: 79.91 kB / 0.5533 GB, free: 1.531 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002349/0.5861, allocations: 484.2 kB / 0.5537 GB, free: 1.117 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.51e-05/0.5861, allocations: 7.984 kB / 0.5537 GB, free: 1.109 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004701/0.5908, allocations: 2.232 MB / 0.5559 GB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.5908, allocations: 0 / 0.5559 GB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003155/0.594, allocations: 0.7586 MB / 0.5567 GB, free: 14.47 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003264/0.5973, allocations: 1.149 MB / 0.5578 GB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000324/0.5976, allocations: 169.9 kB / 0.558 GB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001225/0.5977, allocations: 3.906 kB / 0.558 GB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005682/0.5983, allocations: 71.5 kB / 0.558 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001268/0.5985, allocations: 35.38 kB / 0.5581 GB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.682e-05/0.5985, allocations: 11.98 kB / 0.5581 GB, free: 13.14 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004266/0.5989, allocations: 303.1 kB / 0.5584 GB, free: 12.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002146/0.6011, allocations: 262.1 kB / 0.5586 GB, free: 12.68 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.0002727/0.6014, allocations: 151.5 kB / 0.5588 GB, free: 12.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00185/0.6032, allocations: 1.077 MB / 0.5598 GB, free: 11.61 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.6033, allocations: 0 / 0.5598 GB, free: 11.61 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004315/0.6037, allocations: 273 kB / 0.5601 GB, free: 11.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005266/0.6042, allocations: 72.03 kB / 0.5601 GB, free: 11.33 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001991/0.6062, allocations: 0.6462 MB / 0.5608 GB, free: 10.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005321/0.6068, allocations: 0.8741 MB / 0.5616 GB, free: 9.848 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.6068, allocations: 0 / 0.5616 GB, free: 9.848 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellIrradianceCharacteristic_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellIrradianceCharacteristic.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.pipe 2>&1)