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"}) [: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.002474/0.002474, allocations: 178.5 kB / 7.455 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.132/1.132, allocations: 221.4 MB / 229.3 MB, free: 3.113 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.0008549/0.0008548, allocations: 98.94 kB / 280.1 MB, free: 1.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02347/0.02347, allocations: 5.29 MB / 336.2 MB, free: 9.23 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.007644/0.007644, allocations: 2.296 MB / 390.4 MB, free: 74.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1198/0.1274, allocations: 60.95 MB / 451.4 MB, free: 13.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.3688, allocations: 52.19 MB / 0.4918 GB, free: 43.82 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1024/0.4713, allocations: 95.56 MB / 0.5851 GB, free: 14.86 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001957/0.4715, allocations: 69.31 kB / 0.5852 GB, free: 14.8 MB / 378.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.2771/0.7486, allocations: 36.47 MB / 0.6208 GB, free: 92.8 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.7487, allocations: 11.81 kB / 0.6208 GB, free: 92.8 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001521/0.7502, allocations: 313.9 kB / 0.6211 GB, free: 92.74 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007675/0.751, allocations: 0.5879 MB / 0.6217 GB, free: 92.47 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.681e-05/0.751, allocations: 38.84 kB / 0.6217 GB, free: 92.47 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001274/0.7512, allocations: 62.19 kB / 0.6218 GB, free: 92.47 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001487/0.7526, allocations: 0.9392 MB / 0.6227 GB, free: 92.46 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001397/0.7541, allocations: 0.9683 MB / 0.6236 GB, free: 92.31 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.071e-05/0.7541, allocations: 4.719 kB / 0.6236 GB, free: 92.31 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.631e-05/0.7542, allocations: 10.48 kB / 0.6236 GB, free: 92.31 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.021e-05/0.7542, allocations: 26.78 kB / 0.6237 GB, free: 92.31 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00542/0.7596, allocations: 4.361 MB / 0.6279 GB, free: 90.58 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009423/0.7606, allocations: 0.6917 MB / 0.6286 GB, free: 90.51 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004594/0.7611, allocations: 327.4 kB / 0.6289 GB, free: 90.5 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001205/0.7612, allocations: 181.7 kB / 0.6291 GB, free: 90.3 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005226/0.7617, allocations: 0.5061 MB / 0.6296 GB, free: 90.1 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 2.735e-06/0.7618, allocations: 0 / 0.6296 GB, free: 90.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=80): time 0.003902/0.7657, allocations: 1.046 MB / 0.6306 GB, free: 89.98 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.859e-05/0.7657, allocations: 304.2 kB / 0.6309 GB, free: 89.64 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005481/0.7663, allocations: 0.4887 MB / 0.6314 GB, free: 89.52 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.413e-05/0.7664, allocations: 29.36 kB / 0.6314 GB, free: 89.49 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002166/0.7666, allocations: 428.7 kB / 0.6318 GB, free: 89.21 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001681/0.7668, allocations: 252.5 kB / 0.632 GB, free: 89.05 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.283e-05/0.7668, allocations: 7.156 kB / 0.6321 GB, free: 89.05 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.863e-05/0.7669, allocations: 378 kB / 0.6324 GB, free: 88.73 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004419/0.7674, allocations: 292.9 kB / 0.6327 GB, free: 88.73 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004985/0.7679, allocations: 0.5268 MB / 0.6332 GB, free: 88.46 MB / 394.7 MB Notification: It was not possible to analyze the given system symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.01415/0.782, allocations: 2.532 MB / 0.6357 GB, free: 88.22 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-05/0.7821, allocations: 0 / 0.6357 GB, free: 88.22 MB / 394.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.00229/0.7844, allocations: 1.024 MB / 0.6367 GB, free: 88 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.7844, allocations: 10.33 kB / 0.6367 GB, free: 88 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.7844, allocations: 10.88 kB / 0.6367 GB, free: 88 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005256/0.7849, allocations: 95.14 kB / 0.6368 GB, free: 87.99 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/0.786, allocations: 256.7 kB / 0.637 GB, free: 87.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001288/0.7873, allocations: 1.508 MB / 0.6385 GB, free: 86.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009022/0.7883, allocations: 85.94 kB / 0.6386 GB, free: 86.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.378e-05/0.7884, allocations: 50.89 kB / 0.6386 GB, free: 86.55 MB / 394.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: $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.0002877/0.7886, allocations: 249.8 kB / 0.6389 GB, free: 86.33 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001203/0.7888, allocations: 78.19 kB / 0.639 GB, free: 86.29 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004268/0.7931, allocations: 1.302 MB / 0.6402 GB, free: 85.87 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.705e-06/0.7931, allocations: 11.41 kB / 0.6402 GB, free: 85.87 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.7931, allocations: 4 kB / 0.6402 GB, free: 85.87 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.179e-05/0.7931, allocations: 6.516 kB / 0.6402 GB, free: 85.87 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005124/0.7982, allocations: 2.29 MB / 0.6425 GB, free: 84.88 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-06/0.7983, allocations: 0.6562 kB / 0.6425 GB, free: 84.88 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006062/0.7989, allocations: 137 kB / 0.6426 GB, free: 84.87 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002332/0.8012, allocations: 0.553 MB / 0.6432 GB, free: 84.73 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.972e-05/0.8013, allocations: 29.33 kB / 0.6432 GB, free: 84.72 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006625/0.802, allocations: 0.8286 MB / 0.644 GB, free: 84.06 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.802, allocations: 5.031 kB / 0.644 GB, free: 84.06 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004954/0.8069, allocations: 1.672 MB / 0.6456 GB, free: 83.33 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005152/0.8121, allocations: 2.464 MB / 0.648 GB, free: 82.02 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004047/0.8125, allocations: 265.6 kB / 0.6483 GB, free: 81.83 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002039/0.8127, allocations: 8.656 kB / 0.6483 GB, free: 81.83 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006953/0.8134, allocations: 37.3 kB / 0.6483 GB, free: 81.82 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.8136, allocations: 56.8 kB / 0.6484 GB, free: 81.81 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.27e-05/0.8137, allocations: 37.06 kB / 0.6484 GB, free: 81.81 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0005627/0.8142, allocations: 384.8 kB / 0.6488 GB, free: 81.61 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002038/0.8163, allocations: 383.7 kB / 0.6492 GB, free: 81.5 MB / 394.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.0008107/0.8171, allocations: 396.7 kB / 0.6495 GB, free: 81.36 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001724/0.8188, allocations: 0.9856 MB / 0.6505 GB, free: 80.89 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.8189, allocations: 0 / 0.6505 GB, free: 80.89 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007544/0.8196, allocations: 0.5503 MB / 0.651 GB, free: 80.6 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006429/0.8203, allocations: 88.89 kB / 0.6511 GB, free: 80.57 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002551/0.8228, allocations: 1.275 MB / 0.6524 GB, free: 79.39 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000771/0.8236, allocations: 1.129 MB / 0.6535 GB, free: 78.39 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.8236, allocations: 0 / 0.6535 GB, free: 78.39 MB / 394.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)