Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_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_Trina_Analytical_2016,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_2016",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_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.002168/0.002169, allocations: 176.2 kB / 7.452 MB, free: 2.316 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.123/1.123, allocations: 221.4 MB / 229.3 MB, free: 3 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.0009054/0.0009054, allocations: 99.03 kB / 280.1 MB, free: 1.203 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02316/0.02316, allocations: 5.293 MB / 336.2 MB, free: 9.168 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.007683/0.007683, allocations: 2.297 MB / 390.4 MB, free: 74.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1201/0.1278, allocations: 60.95 MB / 451.4 MB, free: 13.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.3655, allocations: 52.18 MB / 0.4918 GB, free: 43.77 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1052/0.4708, allocations: 95.57 MB / 0.5851 GB, free: 14.85 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002081/0.4711, allocations: 67.97 kB / 0.5852 GB, free: 14.79 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.26/0.7311, allocations: 36.48 MB / 0.6208 GB, free: 92.66 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.7312, allocations: 9.938 kB / 0.6208 GB, free: 92.66 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001551/0.7327, allocations: 315 kB / 0.6211 GB, free: 92.6 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007956/0.7335, allocations: 0.5915 MB / 0.6217 GB, free: 92.33 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.215e-05/0.7336, allocations: 37.62 kB / 0.6217 GB, free: 92.33 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001266/0.7337, allocations: 65.38 kB / 0.6218 GB, free: 92.33 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001494/0.7352, allocations: 0.9402 MB / 0.6227 GB, free: 92.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001406/0.7366, allocations: 0.9624 MB / 0.6236 GB, free: 92.17 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.974e-05/0.7367, allocations: 6.156 kB / 0.6236 GB, free: 92.17 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.741e-05/0.7368, allocations: 3.156 kB / 0.6236 GB, free: 92.17 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.016e-05/0.7368, allocations: 28.58 kB / 0.6237 GB, free: 92.17 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005351/0.7421, allocations: 4.366 MB / 0.6279 GB, free: 90.44 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009303/0.7431, allocations: 0.6915 MB / 0.6286 GB, free: 90.37 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004567/0.7436, allocations: 325.2 kB / 0.6289 GB, free: 90.36 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000115/0.7437, allocations: 180.6 kB / 0.6291 GB, free: 90.16 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005196/0.7442, allocations: 0.5113 MB / 0.6296 GB, free: 89.96 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 2.314e-06/0.7442, allocations: 2.844 kB / 0.6296 GB, free: 89.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=80): time 0.003786/0.748, allocations: 1.039 MB / 0.6306 GB, free: 89.84 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.664e-05/0.7481, allocations: 306.3 kB / 0.6309 GB, free: 89.5 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000545/0.7487, allocations: 495.5 kB / 0.6314 GB, free: 89.38 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.43e-05/0.7487, allocations: 32.8 kB / 0.6314 GB, free: 89.35 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001842/0.7489, allocations: 430.2 kB / 0.6318 GB, free: 89.07 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001542/0.7491, allocations: 246.8 kB / 0.632 GB, free: 88.91 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.394e-05/0.7492, allocations: 10.41 kB / 0.6321 GB, free: 88.9 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.83e-05/0.7492, allocations: 378 kB / 0.6324 GB, free: 88.59 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004166/0.7497, allocations: 294 kB / 0.6327 GB, free: 88.59 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005212/0.7502, allocations: 0.5267 MB / 0.6332 GB, free: 88.32 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.01402/0.7642, allocations: 2.534 MB / 0.6357 GB, free: 88.07 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.097e-05/0.7643, allocations: 3.75 kB / 0.6357 GB, free: 88.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002164/0.7664, allocations: 1.024 MB / 0.6367 GB, free: 87.86 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.7664, allocations: 4.531 kB / 0.6367 GB, free: 87.86 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/0.7665, allocations: 7.875 kB / 0.6367 GB, free: 87.86 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004737/0.7669, allocations: 100.6 kB / 0.6368 GB, free: 87.84 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/0.768, allocations: 255.6 kB / 0.637 GB, free: 87.83 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001251/0.7693, allocations: 1.506 MB / 0.6385 GB, free: 86.45 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008447/0.7702, allocations: 85.78 kB / 0.6386 GB, free: 86.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.063e-05/0.7702, allocations: 54.69 kB / 0.6386 GB, free: 86.39 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.0002815/0.7705, allocations: 251.1 kB / 0.6389 GB, free: 86.18 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001186/0.7707, allocations: 81.5 kB / 0.639 GB, free: 86.13 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004199/0.7749, allocations: 1.296 MB / 0.6402 GB, free: 85.72 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.762e-06/0.7749, allocations: 11.81 kB / 0.6402 GB, free: 85.72 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.444e-06/0.7749, allocations: 4 kB / 0.6402 GB, free: 85.72 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.7749, allocations: 3.75 kB / 0.6402 GB, free: 85.72 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00509/0.78, allocations: 2.294 MB / 0.6425 GB, free: 84.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.78, allocations: 0 / 0.6425 GB, free: 84.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005941/0.7806, allocations: 138.3 kB / 0.6426 GB, free: 84.72 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002349/0.783, allocations: 0.5556 MB / 0.6432 GB, free: 84.58 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.943e-05/0.7831, allocations: 22.08 kB / 0.6432 GB, free: 84.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007458/0.7838, allocations: 0.8377 MB / 0.644 GB, free: 83.91 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.962e-06/0.7839, allocations: 11.08 kB / 0.644 GB, free: 83.91 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004957/0.7888, allocations: 1.664 MB / 0.6456 GB, free: 83.18 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005043/0.7939, allocations: 2.467 MB / 0.648 GB, free: 81.88 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003656/0.7943, allocations: 265.6 kB / 0.6483 GB, free: 81.68 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001597/0.7944, allocations: 8.219 kB / 0.6483 GB, free: 81.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006457/0.7951, allocations: 42 kB / 0.6483 GB, free: 81.67 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.7952, allocations: 51.92 kB / 0.6484 GB, free: 81.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.286e-05/0.7953, allocations: 45.97 kB / 0.6484 GB, free: 81.65 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0004559/0.7957, allocations: 375.3 kB / 0.6488 GB, free: 81.46 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001575/0.7973, allocations: 386.6 kB / 0.6492 GB, free: 81.35 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.0006558/0.798, allocations: 391.8 kB / 0.6495 GB, free: 81.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001469/0.7995, allocations: 0.986 MB / 0.6505 GB, free: 80.73 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.377e-06/0.7995, allocations: 0 / 0.6505 GB, free: 80.73 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007029/0.8002, allocations: 0.5511 MB / 0.651 GB, free: 80.44 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006079/0.8008, allocations: 94.36 kB / 0.6511 GB, free: 80.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00249/0.8033, allocations: 1.275 MB / 0.6524 GB, free: 79.27 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006531/0.804, allocations: 1.128 MB / 0.6535 GB, free: 78.27 MB / 394.7 MB Notification: Performance of SimCode: time 2.2e-07/0.804, allocations: 0 / 0.6535 GB, free: 78.27 MB / 394.7 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_2016_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_2016.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe 2>&1)