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: "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellTemperatureCharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellTemperatureCharacteristic",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.001299/0.001299, allocations: 173.9 kB / 7.648 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.397/1.397, allocations: 221.5 MB / 229.6 MB, free: 7.598 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.0008952/0.0008951, allocations: 94.33 kB / 280.5 MB, free: 5.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02482/0.02482, allocations: 5.293 MB / 336.5 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.453e-05/1.446e-05, allocations: 2.5 kB / 396.4 MB, free: 51.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09933/0.09937, allocations: 51.61 MB / 448 MB, free: 10.98 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1117/0.2111, allocations: 84.94 MB / 0.5205 GB, free: 5.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002078/0.2113, allocations: 67.97 kB / 0.5205 GB, free: 5.863 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2485/0.4599, allocations: 15.25 MB / 0.5354 GB, free: 82.21 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4599, allocations: 4.531 kB / 0.5354 GB, free: 82.2 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.307e-05/0.46, allocations: 8.688 kB / 0.5354 GB, free: 82.2 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: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.001833/0.4618, allocations: 0.8304 MB / 0.5362 GB, free: 81.67 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/0.4619, allocations: 9.188 kB / 0.5362 GB, free: 81.67 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001338/0.462, allocations: 64.81 kB / 0.5363 GB, free: 81.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006321/0.4627, allocations: 424.8 kB / 0.5367 GB, free: 81.38 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.153e-05/0.4627, allocations: 10.69 kB / 0.5367 GB, free: 81.38 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.919e-05/0.4628, allocations: 24.8 kB / 0.5367 GB, free: 81.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008431/0.4636, allocations: 391.2 kB / 0.5371 GB, free: 81.38 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006011/0.4642, allocations: 367.7 kB / 0.5375 GB, free: 81.31 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.4643, allocations: 3.062 kB / 0.5375 GB, free: 81.31 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.088e-05/0.4643, allocations: 0 / 0.5375 GB, free: 81.31 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.4643, allocations: 10.59 kB / 0.5375 GB, free: 81.31 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002737/0.4671, allocations: 1.719 MB / 0.5392 GB, free: 80.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007485/0.4678, allocations: 0.4983 MB / 0.5396 GB, free: 80.06 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002487/0.4681, allocations: 171.7 kB / 0.5398 GB, free: 79.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.122e-05/0.4681, allocations: 5.438 kB / 0.5398 GB, free: 79.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003498/0.4685, allocations: 246.6 kB / 0.5401 GB, free: 79.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=32): time 1.824e-06/0.4685, allocations: 4 kB / 0.5401 GB, free: 79.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.00281/0.4713, allocations: 0.6604 MB / 0.5407 GB, free: 79.63 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.465e-05/0.4714, allocations: 136.5 kB / 0.5408 GB, free: 79.47 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004079/0.4718, allocations: 386.1 kB / 0.5412 GB, free: 79.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.299e-05/0.4719, allocations: 29.14 kB / 0.5412 GB, free: 79.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/0.472, allocations: 246 kB / 0.5415 GB, free: 79.03 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.936e-05/0.4721, allocations: 105.1 kB / 0.5416 GB, free: 78.95 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.965e-05/0.4721, allocations: 0 / 0.5416 GB, free: 78.95 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.991e-05/0.4722, allocations: 354.9 kB / 0.5419 GB, free: 78.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000221/0.4725, allocations: 142.7 kB / 0.542 GB, free: 78.54 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002618/0.4727, allocations: 219.2 kB / 0.5422 GB, free: 78.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002309/0.473, allocations: 149.1 kB / 0.5424 GB, free: 78.3 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.473, allocations: 0 / 0.5424 GB, free: 78.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.003023/0.476, allocations: 0.8037 MB / 0.5432 GB, free: 77.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000158/0.4762, allocations: 0.5579 MB / 0.5437 GB, free: 77.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.4762, allocations: 0 / 0.5437 GB, free: 77.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002492/0.4787, allocations: 0.547 MB / 0.5443 GB, free: 77.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004154/0.4791, allocations: 90.75 kB / 0.5443 GB, free: 77.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005154/0.4843, allocations: 3.747 MB / 0.548 GB, free: 73.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000687/0.485, allocations: 83.69 kB / 0.5481 GB, free: 73.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.843e-05/0.485, allocations: 19.98 kB / 0.5481 GB, free: 73.58 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.287e-06/0.485, allocations: 4 kB / 0.5481 GB, free: 73.58 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003061/0.4881, allocations: 0.7365 MB / 0.5488 GB, free: 72.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.4881, allocations: 3.953 kB / 0.5488 GB, free: 72.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002422/0.4906, allocations: 0.5402 MB / 0.5494 GB, free: 72.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003665/0.4909, allocations: 87.88 kB / 0.5494 GB, free: 72.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005062/0.496, allocations: 3.748 MB / 0.5531 GB, free: 68.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006448/0.4967, allocations: 71.8 kB / 0.5532 GB, free: 68.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.744e-05/0.4967, allocations: 19.97 kB / 0.5532 GB, free: 68.13 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 (38): * Single equations (assignments): 35 * 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.0002403/0.497, allocations: 123.2 kB / 0.5533 GB, free: 68.01 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002748/0.4997, allocations: 0.6702 MB / 0.554 GB, free: 67.33 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.851e-05/0.4998, allocations: 43.62 kB / 0.554 GB, free: 67.29 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00278/0.5026, allocations: 0.6992 MB / 0.5547 GB, free: 66.57 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.5026, allocations: 11.88 kB / 0.5547 GB, free: 66.56 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.5026, allocations: 0 / 0.5547 GB, free: 66.56 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.5026, allocations: 0 / 0.5547 GB, free: 66.56 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00351/0.5061, allocations: 1.373 MB / 0.556 GB, free: 65.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.5062, allocations: 0 / 0.556 GB, free: 65.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003348/0.5065, allocations: 83.97 kB / 0.5561 GB, free: 65.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001999/0.5085, allocations: 472.4 kB / 0.5566 GB, free: 64.6 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.023e-05/0.5086, allocations: 20.09 kB / 0.5566 GB, free: 64.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003867/0.5124, allocations: 2.216 MB / 0.5587 GB, free: 62.25 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.5125, allocations: 3.953 kB / 0.5587 GB, free: 62.25 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002782/0.5153, allocations: 0.7988 MB / 0.5595 GB, free: 61.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002741/0.5155, allocations: 168.4 kB / 0.5597 GB, free: 61.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.637e-05/0.5156, allocations: 7.984 kB / 0.5597 GB, free: 61.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004754/0.5161, allocations: 59.94 kB / 0.5598 GB, free: 61.17 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001184/0.5162, allocations: 39.94 kB / 0.5598 GB, free: 61.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.06e-05/0.5163, allocations: 15.98 kB / 0.5598 GB, free: 61.11 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003116/0.5166, allocations: 287 kB / 0.5601 GB, free: 60.84 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5166, allocations: 0 / 0.5601 GB, free: 60.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009032/0.5175, allocations: 267.4 kB / 0.5603 GB, free: 60.57 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 (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.003118/0.5206, allocations: 1.449 MB / 0.5618 GB, free: 59.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001642/0.5223, allocations: 1.195 MB / 0.5629 GB, free: 57.83 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.5223, allocations: 0 / 0.5629 GB, free: 57.83 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003593/0.5227, allocations: 301.6 kB / 0.5632 GB, free: 57.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005644/0.5233, allocations: 86.53 kB / 0.5633 GB, free: 57.44 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001365/0.5246, allocations: 0.6571 MB / 0.5639 GB, free: 56.74 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/0.5249, allocations: 0.8525 MB / 0.5648 GB, free: 55.86 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003656/0.5253, allocations: 67.23 kB / 0.5648 GB, free: 55.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001996/0.5255, allocations: 155.4 kB / 0.565 GB, free: 55.64 MB / 362.7 MB Notification: Performance of SimCode: time 7.21e-07/0.5255, allocations: 0 / 0.565 GB, free: 55.64 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0351/0.5606, allocations: 16.23 MB / 0.5808 GB, free: 39.47 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002204/0.5609, allocations: 153.3 kB / 0.581 GB, free: 39.27 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.462/3.023, allocations: 0 / 0.581 GB, free: 39.27 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellTemperatureCharacteristic_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellTemperatureCharacteristic.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.pipe 2>&1)