Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.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_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808",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.003267/0.003268, allocations: 184.3 kB / 7.462 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.181/1.181, allocations: 221.4 MB / 229.3 MB, free: 3.004 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.001004/0.001004, allocations: 107.9 kB / 280.1 MB, free: 1.219 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02372/0.02372, allocations: 5.296 MB / 336.2 MB, free: 9.195 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01672/0.01672, allocations: 2.294 MB / 390.4 MB, free: 74.68 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.1092/0.126, allocations: 59.04 MB / 449.5 MB, free: 15.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.229/0.355, allocations: 52.19 MB / 0.4899 GB, free: 43.18 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1061/0.461, allocations: 98.05 MB / 0.5857 GB, free: 12.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001637/0.4612, allocations: 67.91 kB / 0.5857 GB, free: 12.53 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.1014/0.5626, allocations: 38.74 MB / 0.6236 GB, free: 5.559 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.5627, allocations: 13.5 kB / 0.6236 GB, free: 5.547 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001996/0.5647, allocations: 318.2 kB / 0.6239 GB, free: 5.234 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001467/0.5662, allocations: 0.6603 MB / 0.6245 GB, free: 4.527 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.135e-05/0.5663, allocations: 32 kB / 0.6246 GB, free: 4.496 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002058/0.5665, allocations: 68.75 kB / 0.6246 GB, free: 4.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002421/0.5689, allocations: 1.027 MB / 0.6256 GB, free: 3.398 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00231/0.5713, allocations: 0.9696 MB / 0.6266 GB, free: 2.371 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.1e-05/0.5713, allocations: 7.906 kB / 0.6266 GB, free: 2.363 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.811e-05/0.5714, allocations: 8 kB / 0.6266 GB, free: 2.355 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.814e-05/0.5715, allocations: 24 kB / 0.6266 GB, free: 2.332 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.196/0.7675, allocations: 4.382 MB / 0.6309 GB, free: 79.33 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009181/0.7684, allocations: 0.6827 MB / 0.6316 GB, free: 79.28 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004373/0.7689, allocations: 311.1 kB / 0.6319 GB, free: 79.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.111e-05/0.769, allocations: 95.03 kB / 0.6319 GB, free: 79.17 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000499/0.7695, allocations: 450.8 kB / 0.6324 GB, free: 79.03 MB / 410.7 MB Notification: Performance of pre-optimization done (n=70): time 1.964e-06/0.7695, allocations: 0 / 0.6324 GB, free: 79.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=70): time 0.003662/0.7731, allocations: 1.012 MB / 0.6334 GB, free: 78.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.964e-05/0.7732, allocations: 250.7 kB / 0.6336 GB, free: 78.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006732/0.7739, allocations: 0.5981 MB / 0.6342 GB, free: 78.58 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.194e-05/0.774, allocations: 30.73 kB / 0.6342 GB, free: 78.55 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002326/0.7742, allocations: 447.8 kB / 0.6346 GB, free: 78.32 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001524/0.7744, allocations: 228.2 kB / 0.6349 GB, free: 78.21 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.286e-05/0.7744, allocations: 6.75 kB / 0.6349 GB, free: 78.21 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.7746, allocations: 391.4 kB / 0.6352 GB, free: 77.89 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004221/0.775, allocations: 283.8 kB / 0.6355 GB, free: 77.89 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004902/0.7755, allocations: 0.5179 MB / 0.636 GB, free: 77.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006104/0.7761, allocations: 368.1 kB / 0.6364 GB, free: 77.61 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.7761, allocations: 3.906 kB / 0.6364 GB, free: 77.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.001674/0.7778, allocations: 0.9973 MB / 0.6373 GB, free: 77.51 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.7778, allocations: 7.625 kB / 0.6373 GB, free: 77.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.7778, allocations: 8.719 kB / 0.6374 GB, free: 77.51 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005016/0.7783, allocations: 94.06 kB / 0.6374 GB, free: 77.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000825/0.7792, allocations: 226.6 kB / 0.6377 GB, free: 77.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001233/0.7804, allocations: 1.5 MB / 0.6391 GB, free: 76.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006779/0.7811, allocations: 85.95 kB / 0.6392 GB, free: 76.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-05/0.7812, allocations: 48.59 kB / 0.6393 GB, free: 76.19 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.0001732/0.7814, allocations: 204.4 kB / 0.6395 GB, free: 76.02 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/0.7815, allocations: 80.84 kB / 0.6395 GB, free: 75.98 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003759/0.7852, allocations: 1.175 MB / 0.6407 GB, free: 75.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.7853, allocations: 9.594 kB / 0.6407 GB, free: 75.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.7853, allocations: 1.562 kB / 0.6407 GB, free: 75.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.716e-06/0.7853, allocations: 3.375 kB / 0.6407 GB, free: 75.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004759/0.7901, allocations: 2.243 MB / 0.6429 GB, free: 75.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.7901, allocations: 0 / 0.6429 GB, free: 75.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004303/0.7905, allocations: 108.9 kB / 0.643 GB, free: 75.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002363/0.7929, allocations: 0.5546 MB / 0.6435 GB, free: 75.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.047e-05/0.793, allocations: 20.42 kB / 0.6435 GB, free: 75.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006573/0.7936, allocations: 0.834 MB / 0.6444 GB, free: 74.95 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.7936, allocations: 0.6562 kB / 0.6444 GB, free: 74.95 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003949/0.7976, allocations: 1.609 MB / 0.6459 GB, free: 74.68 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004512/0.8021, allocations: 2.362 MB / 0.6482 GB, free: 74.03 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003487/0.8025, allocations: 267.8 kB / 0.6485 GB, free: 73.89 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001532/0.8026, allocations: 11.03 kB / 0.6485 GB, free: 73.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005535/0.8032, allocations: 39.42 kB / 0.6485 GB, free: 73.89 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.665e-05/0.8033, allocations: 43.06 kB / 0.6486 GB, free: 73.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.793e-05/0.8034, allocations: 33.2 kB / 0.6486 GB, free: 73.89 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.000478/0.8038, allocations: 466 kB / 0.6491 GB, free: 73.79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00155/0.8054, allocations: 377.4 kB / 0.6494 GB, free: 73.77 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.001073/0.8065, allocations: 0.6026 MB / 0.65 GB, free: 73.58 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001366/0.8079, allocations: 0.9043 MB / 0.6509 GB, free: 73.39 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.8079, allocations: 3.391 kB / 0.6509 GB, free: 73.39 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005554/0.8084, allocations: 449.8 kB / 0.6513 GB, free: 73.33 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006003/0.809, allocations: 112.2 kB / 0.6514 GB, free: 73.32 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/0.8114, allocations: 1.298 MB / 0.6527 GB, free: 72.88 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006531/0.812, allocations: 1.147 MB / 0.6538 GB, free: 72.15 MB / 410.7 MB Notification: Performance of SimCode: time 4.41e-07/0.8121, allocations: 0 / 0.6538 GB, free: 72.15 MB / 410.7 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.pipe 2>&1)