Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo", uses=false) Using package PhotoVoltaics_TGM with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo) 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) Ignoring simflag -noemit -cpu=() since it seems broken on HelloWorld Running command: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_2016",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_2016",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.001106/0.001106, 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.391/1.391, 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.001175/0.001176, allocations: 95.06 kB / 280.5 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02341/0.02341, allocations: 5.292 MB / 336.5 MB, free: 9.918 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008596/0.008596, allocations: 2.294 MB / 390.8 MB, free: 3.543 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.602e-05/1.604e-05, allocations: 0 / 452 MB, free: 46.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.3035, allocations: 52.19 MB / 0.4924 GB, free: 6.812 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.179/0.4826, allocations: 95.64 MB / 0.5858 GB, free: 0.7188 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000272/0.4829, allocations: 63.98 kB / 0.5859 GB, free: 0.6562 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1364/0.6193, allocations: 35.42 MB / 0.6205 GB, free: 12.91 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.6193, allocations: 0 / 0.6205 GB, free: 12.91 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.309e-05/0.6194, allocations: 20 kB / 0.6205 GB, free: 12.89 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 270 * Number of variables: 270 Notification: Performance of Generate backend data structure: time 0.00299/0.6224, allocations: 1.338 MB / 0.6218 GB, free: 11.49 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.6224, allocations: 12.03 kB / 0.6218 GB, free: 11.48 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001509/0.6239, allocations: 294.4 kB / 0.6221 GB, free: 11.19 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000886/0.6248, allocations: 0.5842 MB / 0.6227 GB, free: 10.56 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.488e-05/0.6249, allocations: 36 kB / 0.6227 GB, free: 10.53 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001521/0.625, allocations: 75.94 kB / 0.6228 GB, free: 10.45 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001663/0.6267, allocations: 0.9335 MB / 0.6237 GB, free: 9.516 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001643/0.6284, allocations: 0.9647 MB / 0.6246 GB, free: 8.496 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.744e-05/0.6284, allocations: 3.938 kB / 0.6246 GB, free: 8.492 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.812e-05/0.6285, allocations: 4 kB / 0.6246 GB, free: 8.488 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.497e-05/0.6285, allocations: 28 kB / 0.6247 GB, free: 8.461 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006773/0.6353, allocations: 4.363 MB / 0.6289 GB, free: 3.91 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002372/0.6377, allocations: 1.75 MB / 0.6306 GB, free: 1.918 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005116/0.6383, allocations: 312.1 kB / 0.6309 GB, free: 1.609 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001989/0.6385, allocations: 174.8 kB / 0.6311 GB, free: 1.402 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007401/0.6392, allocations: 0.5135 MB / 0.6316 GB, free: 0.8438 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 3.076e-06/0.6392, allocations: 0 / 0.6316 GB, free: 0.8438 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.004158/0.6434, allocations: 1.096 MB / 0.6327 GB, free: 15.73 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001924/0.6436, allocations: 319.4 kB / 0.633 GB, free: 15.36 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007747/0.6444, allocations: 494.1 kB / 0.6334 GB, free: 14.87 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.026e-05/0.6445, allocations: 33.7 kB / 0.6335 GB, free: 14.83 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004221/0.6449, allocations: 490.6 kB / 0.6339 GB, free: 14.34 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002501/0.6452, allocations: 240.5 kB / 0.6342 GB, free: 14.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.247e-05/0.6453, allocations: 4 kB / 0.6342 GB, free: 14.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000216/0.6455, allocations: 378.8 kB / 0.6345 GB, free: 13.72 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004862/0.646, allocations: 282.6 kB / 0.6348 GB, free: 13.44 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006494/0.6466, allocations: 0.5159 MB / 0.6353 GB, free: 12.83 MB / 426.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.01368/0.6603, allocations: 2.508 MB / 0.6378 GB, free: 10.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-05/0.6604, allocations: 0 / 0.6378 GB, free: 10.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002836/0.6632, allocations: 1.098 MB / 0.6388 GB, free: 9.191 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.941e-05/0.6633, allocations: 93.09 kB / 0.6389 GB, free: 9.082 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.706e-05/0.6633, allocations: 8 kB / 0.6389 GB, free: 9.074 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005198/0.6639, allocations: 93.12 kB / 0.639 GB, free: 8.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00112/0.665, allocations: 255.5 kB / 0.6393 GB, free: 8.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001728/0.6667, allocations: 1.502 MB / 0.6407 GB, free: 7.109 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/0.6678, allocations: 87.2 kB / 0.6408 GB, free: 7.023 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.6679, allocations: 55.95 kB / 0.6409 GB, free: 6.969 MB / 426.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 27 ($PRE.writeCSV.firstTrigger,writeCSV.firstTrigger,$PRE.irradiance.year,irradiance.year,$PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition4,writeCSV.sampleTrigger,$whenCondition1,mpTracker.sampleTrigger,$whenCondition2,$whenCondition3,$PRE.mpTracker.vRef,mpTracker.vRef,$PRE.irradiance.startDayOfYear,irradiance.startDayOfYear,$PRE.irradiance.dayOfYear,irradiance.dayOfYear,$PRE.irradiance.daysOfYear,irradiance.daysOfYear,irradiance.localDays,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * 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: Performance of prepare postOptimizeDAE: time 0.0003665/0.6683, allocations: 254 kB / 0.6411 GB, free: 6.699 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004194/0.6725, allocations: 1.166 MB / 0.6422 GB, free: 5.523 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002045/0.6727, allocations: 79.11 kB / 0.6423 GB, free: 5.445 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004621/0.6773, allocations: 1.336 MB / 0.6436 GB, free: 4.09 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.534e-05/0.6774, allocations: 8 kB / 0.6436 GB, free: 4.082 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.6774, allocations: 4 kB / 0.6436 GB, free: 4.078 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.087e-05/0.6774, allocations: 19.84 kB / 0.6436 GB, free: 4.059 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00398/0.6814, allocations: 2.118 MB / 0.6457 GB, free: 1.883 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.6815, allocations: 0 / 0.6457 GB, free: 1.883 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006379/0.6821, allocations: 139.8 kB / 0.6458 GB, free: 1.746 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002437/0.6845, allocations: 0.5371 MB / 0.6464 GB, free: 1.199 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/0.6847, allocations: 27.95 kB / 0.6464 GB, free: 1.172 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00106/0.6857, allocations: 0.8452 MB / 0.6472 GB, free: 308 kB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.6858, allocations: 8.016 kB / 0.6472 GB, free: 300 kB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2393/0.9251, allocations: 1.45 MB / 0.6486 GB, free: 114.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004477/0.9256, allocations: 249.8 kB / 0.6489 GB, free: 114.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000147/0.9257, allocations: 14.94 kB / 0.6489 GB, free: 114.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006452/0.9264, allocations: 39.44 kB / 0.6489 GB, free: 114.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/0.9266, allocations: 58.33 kB / 0.649 GB, free: 114.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.003e-05/0.9267, allocations: 36.23 kB / 0.649 GB, free: 114.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004828/0.9272, allocations: 380.3 kB / 0.6494 GB, free: 114.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.9272, allocations: 0 / 0.6494 GB, free: 114.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001142/0.9283, allocations: 354.4 kB / 0.6497 GB, free: 114.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (converter.potentialSensor.pin_p.reference.gamma,converter.integrator.y,integrator.y) * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays,writeCSV.sampleTrigger,writeCSV.firstTrigger) * Number of discrete states: 16 (writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger,irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.003267/0.9316, allocations: 2.448 MB / 0.6521 GB, free: 113.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001676/0.9333, allocations: 1.032 MB / 0.6531 GB, free: 113.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.9333, allocations: 0 / 0.6531 GB, free: 113.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007585/0.9341, allocations: 0.6184 MB / 0.6537 GB, free: 113 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006834/0.9348, allocations: 91.62 kB / 0.6538 GB, free: 113 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00288/0.9376, allocations: 1.399 MB / 0.6552 GB, free: 112.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005301/0.9382, allocations: 1.035 MB / 0.6562 GB, free: 111.9 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005147/0.9387, allocations: 116.9 kB / 0.6563 GB, free: 111.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005117/0.9392, allocations: 399.1 kB / 0.6567 GB, free: 111.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.062e-06/0.9392, allocations: 0 / 0.6567 GB, free: 111.9 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04322/0.9825, allocations: 18.66 MB / 0.6749 GB, free: 110.8 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001718/0.9827, allocations: 159.5 kB / 0.6751 GB, free: 110.7 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.738/3.721, allocations: 0 / 0.6751 GB, free: 110.7 MB / 426.7 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_2016_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_2016.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe 2>&1)