Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.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) Running command: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704",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.002446/0.002446, allocations: 180.4 kB / 7.458 MB, free: 2.5 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.151/1.151, allocations: 221.4 MB / 229.3 MB, free: 3.082 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.0009766/0.0009763, allocations: 100.8 kB / 280.1 MB, free: 1.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.0233/0.0233, allocations: 5.298 MB / 336.2 MB, free: 9.238 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.007615/0.007615, allocations: 2.295 MB / 390.4 MB, free: 74.75 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.1005/0.1081, allocations: 59.05 MB / 449.5 MB, free: 15.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2265/0.3346, allocations: 52.19 MB / 0.4899 GB, free: 43.21 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1111/0.4458, allocations: 98.04 MB / 0.5857 GB, free: 12.63 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000217/0.446, allocations: 71.89 kB / 0.5857 GB, free: 12.56 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: 269 * Number of variables: 269 Notification: Performance of Generate backend data structure: time 0.105/0.551, allocations: 38.74 MB / 0.6236 GB, free: 5.59 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/0.5511, allocations: 13.5 kB / 0.6236 GB, free: 5.578 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002039/0.5532, allocations: 326.2 kB / 0.6239 GB, free: 5.258 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00165/0.5548, allocations: 0.6564 MB / 0.6245 GB, free: 4.555 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.993e-05/0.5549, allocations: 35.98 kB / 0.6246 GB, free: 4.52 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002745/0.5552, allocations: 64 kB / 0.6246 GB, free: 4.457 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002209/0.5574, allocations: 1.027 MB / 0.6256 GB, free: 3.426 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001805/0.5593, allocations: 0.9735 MB / 0.6266 GB, free: 2.395 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.081e-05/0.5593, allocations: 7.906 kB / 0.6266 GB, free: 2.387 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.131e-05/0.5594, allocations: 4 kB / 0.6266 GB, free: 2.383 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.45e-05/0.5594, allocations: 24 kB / 0.6266 GB, free: 2.359 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1451/0.7045, allocations: 4.384 MB / 0.6309 GB, free: 135.9 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008794/0.7055, allocations: 0.6864 MB / 0.6316 GB, free: 135.8 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004482/0.7059, allocations: 309.3 kB / 0.6319 GB, free: 135.8 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.556e-05/0.706, allocations: 96.17 kB / 0.6319 GB, free: 135.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005335/0.7066, allocations: 452.6 kB / 0.6324 GB, free: 135.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=70): time 2.896e-06/0.7066, allocations: 0 / 0.6324 GB, free: 135.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=70): time 0.003786/0.7104, allocations: 1.006 MB / 0.6334 GB, free: 135.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.854e-05/0.7104, allocations: 255.8 kB / 0.6336 GB, free: 135.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007138/0.7112, allocations: 0.5986 MB / 0.6342 GB, free: 135.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.59e-05/0.7112, allocations: 35.91 kB / 0.6342 GB, free: 135.1 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002838/0.7115, allocations: 446.4 kB / 0.6346 GB, free: 134.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001611/0.7117, allocations: 225.6 kB / 0.6349 GB, free: 134.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.486e-05/0.7117, allocations: 0 / 0.6349 GB, free: 134.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.7119, allocations: 390 kB / 0.6352 GB, free: 134.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004232/0.7123, allocations: 292 kB / 0.6355 GB, free: 134.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004954/0.7128, allocations: 0.5111 MB / 0.636 GB, free: 134.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006193/0.7134, allocations: 373.7 kB / 0.6364 GB, free: 134.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.7134, allocations: 3.969 kB / 0.6364 GB, free: 134.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.001813/0.7152, allocations: 0.9934 MB / 0.6373 GB, free: 134.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.7153, allocations: 4.875 kB / 0.6373 GB, free: 134.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.444e-05/0.7153, allocations: 8.516 kB / 0.6374 GB, free: 134.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006026/0.7159, allocations: 95.38 kB / 0.6374 GB, free: 134.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009107/0.7168, allocations: 223.8 kB / 0.6377 GB, free: 134.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001433/0.7183, allocations: 1.501 MB / 0.6391 GB, free: 132.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008713/0.7192, allocations: 84.41 kB / 0.6392 GB, free: 132.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.958e-05/0.7193, allocations: 52.98 kB / 0.6393 GB, free: 132.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.writeCSV.firstTrigger,writeCSV.firstTrigger,$PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition3,$PRE.combiTimeTable.nextTimeEvent,$whenCondition2,writeCSV.sampleTrigger,$whenCondition1,mpTracker.sampleTrigger,$PRE.mpTracker.vRef,mpTracker.vRef,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (119): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 2 * 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.0002252/0.7195, allocations: 198.6 kB / 0.6394 GB, free: 132.6 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001938/0.7197, allocations: 84.25 kB / 0.6395 GB, free: 132.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003955/0.7237, allocations: 1.178 MB / 0.6407 GB, free: 132.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.7237, allocations: 10.72 kB / 0.6407 GB, free: 132.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.7237, allocations: 3.938 kB / 0.6407 GB, free: 132.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.276e-05/0.7237, allocations: 7.5 kB / 0.6407 GB, free: 132.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005065/0.7288, allocations: 2.231 MB / 0.6429 GB, free: 132.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.7288, allocations: 0 / 0.6429 GB, free: 132.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000437/0.7293, allocations: 118.4 kB / 0.643 GB, free: 132.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002426/0.7317, allocations: 0.5483 MB / 0.6435 GB, free: 132 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.511e-05/0.7318, allocations: 20.53 kB / 0.6435 GB, free: 132 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008367/0.7327, allocations: 0.8432 MB / 0.6444 GB, free: 131.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.7327, allocations: 2.906 kB / 0.6444 GB, free: 131.5 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004524/0.7372, allocations: 1.593 MB / 0.6459 GB, free: 131.3 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004674/0.7419, allocations: 2.367 MB / 0.6482 GB, free: 130.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004715/0.7424, allocations: 267.5 kB / 0.6485 GB, free: 130.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002273/0.7426, allocations: 12 kB / 0.6485 GB, free: 130.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006186/0.7433, allocations: 40.14 kB / 0.6485 GB, free: 130.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.7434, allocations: 44.03 kB / 0.6486 GB, free: 130.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.224e-05/0.7435, allocations: 37.42 kB / 0.6486 GB, free: 130.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0006608/0.7442, allocations: 460.1 kB / 0.6491 GB, free: 130.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00183/0.746, allocations: 382.2 kB / 0.6494 GB, free: 130.4 MB / 410.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: 12 ($whenCondition3,$whenCondition1,$whenCondition2,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled,writeCSV.sampleTrigger,writeCSV.firstTrigger) * Number of discrete states: 12 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition2,writeCSV.sampleTrigger) * Top-level inputs: 0 Notification: Strong component statistics for simulation (69): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 1 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00134/0.7474, allocations: 0.5886 MB / 0.65 GB, free: 130.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001414/0.7488, allocations: 0.8952 MB / 0.6509 GB, free: 130.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.7488, allocations: 3.703 kB / 0.6509 GB, free: 130.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006062/0.7494, allocations: 461.7 kB / 0.6513 GB, free: 130 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006597/0.7501, allocations: 109.8 kB / 0.6514 GB, free: 130 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002611/0.7527, allocations: 1.297 MB / 0.6527 GB, free: 129.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007435/0.7535, allocations: 1.147 MB / 0.6538 GB, free: 128.9 MB / 410.7 MB Notification: Performance of SimCode: time 3.9e-07/0.7535, allocations: 0 / 0.6538 GB, free: 128.9 MB / 410.7 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.pipe 2>&1)