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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001379/0.001379, allocations: 180.9 kB / 7.651 MB, free: 1.422 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.555/1.555, allocations: 221.5 MB / 229.6 MB, free: 7.574 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.0008022/0.0008023, allocations: 93.84 kB / 280.5 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02483/0.02483, allocations: 5.295 MB / 336.5 MB, free: 9.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.512e-05/1.516e-05, allocations: 1.719 kB / 396.4 MB, free: 51.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09836/0.09839, allocations: 51.61 MB / 448 MB, free: 10.96 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1207/0.2192, allocations: 84.81 MB / 0.5203 GB, free: 6.035 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003144/0.2196, allocations: 67.97 kB / 0.5204 GB, free: 5.969 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2875/0.5071, allocations: 14.6 MB / 0.5346 GB, free: 82.21 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.5071, allocations: 0 / 0.5346 GB, free: 82.21 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.3e-05/0.5071, allocations: 9.438 kB / 0.5347 GB, free: 82.21 MB / 362.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.00172/0.5089, allocations: 0.8258 MB / 0.5355 GB, free: 81.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.67e-05/0.5089, allocations: 10.16 kB / 0.5355 GB, free: 81.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001587/0.5091, allocations: 56.28 kB / 0.5355 GB, free: 81.65 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006781/0.5098, allocations: 419 kB / 0.5359 GB, free: 81.4 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.722e-05/0.5098, allocations: 10.62 kB / 0.5359 GB, free: 81.4 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.9e-05/0.5099, allocations: 19.27 kB / 0.536 GB, free: 81.4 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007684/0.5107, allocations: 383.8 kB / 0.5363 GB, free: 81.39 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000638/0.5113, allocations: 363.5 kB / 0.5367 GB, free: 81.3 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.5114, allocations: 0 / 0.5367 GB, free: 81.3 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.569e-05/0.5114, allocations: 4.859 kB / 0.5367 GB, free: 81.3 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.434e-05/0.5114, allocations: 10.52 kB / 0.5367 GB, free: 81.3 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002979/0.5144, allocations: 1.73 MB / 0.5384 GB, free: 80.55 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008205/0.5153, allocations: 0.5122 MB / 0.5389 GB, free: 80.2 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002542/0.5155, allocations: 146.2 kB / 0.539 GB, free: 80.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.999e-05/0.5156, allocations: 7.859 kB / 0.539 GB, free: 80.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003262/0.5159, allocations: 229.4 kB / 0.5392 GB, free: 80 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 1.633e-06/0.5159, allocations: 3.656 kB / 0.5392 GB, free: 80 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.002811/0.5187, allocations: 0.6381 MB / 0.5399 GB, free: 79.8 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.535e-05/0.5188, allocations: 133.8 kB / 0.54 GB, free: 79.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004177/0.5192, allocations: 400.1 kB / 0.5404 GB, free: 79.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.712e-05/0.5193, allocations: 25.7 kB / 0.5404 GB, free: 79.4 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001438/0.5194, allocations: 258.6 kB / 0.5406 GB, free: 79.19 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.388e-05/0.5195, allocations: 89.94 kB / 0.5407 GB, free: 79.12 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.254e-05/0.5196, allocations: 3.344 kB / 0.5407 GB, free: 79.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.551e-05/0.5196, allocations: 350.2 kB / 0.5411 GB, free: 78.79 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002097/0.5199, allocations: 140.5 kB / 0.5412 GB, free: 78.72 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002595/0.5201, allocations: 209.8 kB / 0.5414 GB, free: 78.59 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002466/0.5204, allocations: 146.5 kB / 0.5415 GB, free: 78.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.5204, allocations: 0 / 0.5415 GB, free: 78.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.003907/0.5243, allocations: 0.8039 MB / 0.5423 GB, free: 78.26 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001573/0.5245, allocations: 474.4 kB / 0.5428 GB, free: 77.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.5245, allocations: 3.906 kB / 0.5428 GB, free: 77.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00257/0.5271, allocations: 0.5481 MB / 0.5433 GB, free: 77.53 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004374/0.5275, allocations: 96.59 kB / 0.5434 GB, free: 77.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005308/0.5329, allocations: 3.755 MB / 0.5471 GB, free: 74.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007721/0.5337, allocations: 78.31 kB / 0.5472 GB, free: 74.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.374e-05/0.5337, allocations: 19.55 kB / 0.5472 GB, free: 74.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.089e-05/0.5337, allocations: 3.906 kB / 0.5472 GB, free: 74.11 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003053/0.5368, allocations: 0.7259 MB / 0.5479 GB, free: 73.74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.5368, allocations: 0 / 0.5479 GB, free: 73.74 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002407/0.5392, allocations: 0.5492 MB / 0.5484 GB, free: 73.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003899/0.5396, allocations: 91.88 kB / 0.5485 GB, free: 73.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004978/0.5446, allocations: 3.743 MB / 0.5522 GB, free: 69.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006488/0.5453, allocations: 79.64 kB / 0.5522 GB, free: 69.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.571e-05/0.5453, allocations: 19.98 kB / 0.5523 GB, free: 69.02 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 (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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002209/0.5456, allocations: 123.5 kB / 0.5524 GB, free: 68.89 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002667/0.5482, allocations: 0.6443 MB / 0.553 GB, free: 68.24 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.155e-05/0.5483, allocations: 39.53 kB / 0.553 GB, free: 68.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001267/0.5485, allocations: 44.92 kB / 0.5531 GB, free: 68.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.5485, allocations: 7.938 kB / 0.5531 GB, free: 68.15 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.5485, allocations: 7.984 kB / 0.5531 GB, free: 68.14 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.5485, allocations: 0 / 0.5531 GB, free: 68.14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00324/0.5517, allocations: 1.309 MB / 0.5544 GB, free: 66.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.5518, allocations: 0 / 0.5544 GB, free: 66.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002941/0.5521, allocations: 71.88 kB / 0.5544 GB, free: 66.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001985/0.554, allocations: 481.7 kB / 0.5549 GB, free: 66.24 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.949e-05/0.5541, allocations: 3.984 kB / 0.5549 GB, free: 66.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003863/0.558, allocations: 2.224 MB / 0.5571 GB, free: 63.89 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.558, allocations: 0 / 0.5571 GB, free: 63.89 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002732/0.5607, allocations: 0.7501 MB / 0.5578 GB, free: 63.11 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002418/0.561, allocations: 172.4 kB / 0.558 GB, free: 62.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.234e-05/0.561, allocations: 4 kB / 0.558 GB, free: 62.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004773/0.5615, allocations: 63.94 kB / 0.558 GB, free: 62.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.992e-05/0.5616, allocations: 47.86 kB / 0.5581 GB, free: 62.81 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.796e-05/0.5617, allocations: 11.98 kB / 0.5581 GB, free: 62.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003171/0.562, allocations: 306.9 kB / 0.5584 GB, free: 62.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.562, allocations: 0 / 0.5584 GB, free: 62.5 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008885/0.5629, allocations: 255.5 kB / 0.5586 GB, free: 62.25 MB / 362.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.003027/0.5659, allocations: 1.403 MB / 0.56 GB, free: 60.82 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001625/0.5676, allocations: 1.164 MB / 0.5611 GB, free: 59.59 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.5676, allocations: 0 / 0.5611 GB, free: 59.59 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003406/0.5679, allocations: 289.5 kB / 0.5614 GB, free: 59.29 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005322/0.5685, allocations: 78.42 kB / 0.5615 GB, free: 59.22 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/0.5698, allocations: 0.61 MB / 0.5621 GB, free: 58.57 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002232/0.5701, allocations: 0.8399 MB / 0.5629 GB, free: 57.7 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000334/0.5704, allocations: 71.22 kB / 0.563 GB, free: 57.63 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001764/0.5706, allocations: 155.6 kB / 0.5631 GB, free: 57.48 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5706, allocations: 4 kB / 0.5631 GB, free: 57.48 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03483/0.6054, allocations: 15.96 MB / 0.5787 GB, free: 41.57 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001474/0.6056, allocations: 148.8 kB / 0.5789 GB, free: 41.38 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.576/3.181, allocations: 4 kB / 0.5789 GB, free: 41.37 MB / 362.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)