Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.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_Comax_Measurement_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160629",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160629",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.002334/0.002334, allocations: 185.1 kB / 7.459 MB, free: 2.516 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.167/1.167, allocations: 221.4 MB / 229.3 MB, free: 3.059 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.0009069/0.0009069, allocations: 96.64 kB / 280.1 MB, free: 1.324 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02333/0.02333, allocations: 5.297 MB / 336.2 MB, free: 9.281 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.007759/0.007759, allocations: 2.304 MB / 390.4 MB, free: 74.73 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.09541/0.1032, allocations: 59.05 MB / 449.5 MB, free: 15.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2233/0.3266, allocations: 52.18 MB / 0.4899 GB, free: 43.19 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1075/0.4342, allocations: 97.85 MB / 0.5855 GB, free: 12.79 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002501/0.4345, allocations: 71.89 kB / 0.5855 GB, free: 12.73 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: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.1024/0.5369, allocations: 39.58 MB / 0.6242 GB, free: 4.918 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.5369, allocations: 10.25 kB / 0.6242 GB, free: 4.91 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001778/0.5387, allocations: 318.2 kB / 0.6245 GB, free: 4.598 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001231/0.54, allocations: 0.6563 MB / 0.6251 GB, free: 3.895 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.187e-05/0.54, allocations: 36 kB / 0.6252 GB, free: 3.859 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001776/0.5402, allocations: 60 kB / 0.6252 GB, free: 3.801 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001766/0.542, allocations: 0.8708 MB / 0.6261 GB, free: 2.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001572/0.5436, allocations: 0.9312 MB / 0.627 GB, free: 1.941 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.863e-05/0.5436, allocations: 7.938 kB / 0.627 GB, free: 1.934 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.146e-05/0.5437, allocations: 9.781 kB / 0.627 GB, free: 1.926 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.086e-05/0.5437, allocations: 24 kB / 0.627 GB, free: 1.902 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1391/0.6828, allocations: 4.295 MB / 0.6312 GB, free: 135.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008673/0.6837, allocations: 0.6246 MB / 0.6318 GB, free: 135.5 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004403/0.6842, allocations: 296.8 kB / 0.6321 GB, free: 135.4 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.955e-05/0.6843, allocations: 91.48 kB / 0.6322 GB, free: 135.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004957/0.6848, allocations: 431.1 kB / 0.6326 GB, free: 135.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=67): time 3.337e-06/0.6848, allocations: 0 / 0.6326 GB, free: 135.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=67): time 0.003655/0.6884, allocations: 0.9549 MB / 0.6336 GB, free: 135.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.584e-05/0.6885, allocations: 305.2 kB / 0.6338 GB, free: 134.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007763/0.6893, allocations: 0.5833 MB / 0.6344 GB, free: 134.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.092e-05/0.6894, allocations: 32.67 kB / 0.6344 GB, free: 134.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002547/0.6897, allocations: 444.9 kB / 0.6349 GB, free: 134.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001761/0.6899, allocations: 208.9 kB / 0.6351 GB, free: 134.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.944e-05/0.6899, allocations: 0 / 0.6351 GB, free: 134.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.6901, allocations: 397.7 kB / 0.6355 GB, free: 134 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004347/0.6905, allocations: 258.8 kB / 0.6357 GB, free: 134 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005796/0.6911, allocations: 0.5097 MB / 0.6362 GB, free: 133.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007129/0.6918, allocations: 348.2 kB / 0.6365 GB, free: 133.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.879e-06/0.6918, allocations: 0 / 0.6365 GB, free: 133.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.001866/0.6937, allocations: 0.9325 MB / 0.6374 GB, free: 133.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.6938, allocations: 3.625 kB / 0.6374 GB, free: 133.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.676e-05/0.6938, allocations: 7.375 kB / 0.6374 GB, free: 133.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005849/0.6944, allocations: 99.89 kB / 0.6375 GB, free: 133.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008891/0.6953, allocations: 219.8 kB / 0.6378 GB, free: 133.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001341/0.6966, allocations: 1.504 MB / 0.6392 GB, free: 132.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008131/0.6975, allocations: 82.62 kB / 0.6393 GB, free: 132.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.103e-05/0.6976, allocations: 50.56 kB / 0.6394 GB, free: 132.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.writeCSV.firstTrigger,writeCSV.firstTrigger,$PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition4,$PRE.irradianceTable.nextTimeEvent,$whenCondition3,writeCSV.sampleTrigger,$whenCondition2,mpTracker.sampleTrigger,$whenCondition1,$PRE.powerTable.nextTimeEvent,powerTable.nextTimeEvent,$PRE.powerTable.nextTimeEventScaled,powerTable.nextTimeEventScaled,$PRE.mpTracker.vRef,mpTracker.vRef,irradianceTable.nextTimeEvent,$PRE.irradianceTable.nextTimeEventScaled,irradianceTable.nextTimeEventScaled,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (118): * Single equations (assignments): 115 * 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.0002216/0.6978, allocations: 207.2 kB / 0.6395 GB, free: 132.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001607/0.6979, allocations: 85.91 kB / 0.6396 GB, free: 132.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003728/0.7017, allocations: 1.061 MB / 0.6407 GB, free: 132 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.767e-06/0.7017, allocations: 7.062 kB / 0.6407 GB, free: 132 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.7017, allocations: 0 / 0.6407 GB, free: 132 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.7017, allocations: 3.609 kB / 0.6407 GB, free: 132 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005087/0.7068, allocations: 2.062 MB / 0.6427 GB, free: 131.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.7069, allocations: 6.625 kB / 0.6427 GB, free: 131.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003917/0.7073, allocations: 85.2 kB / 0.6428 GB, free: 131.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002396/0.7097, allocations: 0.5536 MB / 0.6433 GB, free: 131.6 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.195e-05/0.7097, allocations: 20.28 kB / 0.6433 GB, free: 131.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007305/0.7105, allocations: 0.8395 MB / 0.6442 GB, free: 131 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.7105, allocations: 3.094 kB / 0.6442 GB, free: 131 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004145/0.7147, allocations: 1.49 MB / 0.6456 GB, free: 130.8 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005008/0.7197, allocations: 2.204 MB / 0.6478 GB, free: 130.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000488/0.7202, allocations: 254 kB / 0.648 GB, free: 130 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002256/0.7205, allocations: 15.59 kB / 0.648 GB, free: 130 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006282/0.7211, allocations: 41.48 kB / 0.6481 GB, free: 130 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.926e-05/0.7212, allocations: 40.88 kB / 0.6481 GB, free: 130 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.168e-05/0.7213, allocations: 33.59 kB / 0.6481 GB, free: 130 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0005532/0.7218, allocations: 449.2 kB / 0.6486 GB, free: 129.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001605/0.7234, allocations: 367.2 kB / 0.6489 GB, free: 129.9 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (converter.potentialSensor.pin_p.reference.gamma,converter.integrator.y,integrator.y) * Number of discrete variables: 15 ($whenCondition1,powerTable.nextTimeEvent,powerTable.nextTimeEventScaled,$whenCondition4,$whenCondition2,$whenCondition3,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,writeCSV.sampleTrigger,writeCSV.firstTrigger,irradianceTable.nextTimeEvent,irradianceTable.nextTimeEventScaled) * Number of discrete states: 14 (irradianceTable.nextTimeEvent,irradianceTable.nextTimeEventScaled,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition2,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition3,writeCSV.sampleTrigger,powerTable.nextTimeEvent,powerTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 4 * 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.001125/0.7246, allocations: 0.6 MB / 0.6495 GB, free: 129.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001397/0.726, allocations: 0.8454 MB / 0.6503 GB, free: 129.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.726, allocations: 4.125 kB / 0.6503 GB, free: 129.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005761/0.7266, allocations: 410.8 kB / 0.6507 GB, free: 129.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007211/0.7273, allocations: 126.4 kB / 0.6508 GB, free: 129.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002493/0.7298, allocations: 1.234 MB / 0.652 GB, free: 129.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007502/0.7306, allocations: 1.118 MB / 0.6531 GB, free: 128.3 MB / 410.7 MB Notification: Performance of SimCode: time 3.11e-07/0.7306, allocations: 3.688 kB / 0.6531 GB, free: 128.3 MB / 410.7 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160629_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160629.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.pipe 2>&1)