Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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_Comax_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001414/0.001414, allocations: 180.9 kB / 7.651 MB, free: 1.422 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.493/1.493, allocations: 221.5 MB / 229.6 MB, free: 7.578 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.0009126/0.0009127, allocations: 89 kB / 280.5 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02265/0.02265, allocations: 5.287 MB / 336.5 MB, free: 9.918 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009364/0.009364, allocations: 2.295 MB / 390.8 MB, free: 3.539 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 1.666e-05/1.657e-05, allocations: 0 / 450.1 MB, free: 48.86 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3142/0.3142, allocations: 52.2 MB / 0.4905 GB, free: 5.668 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1394/0.4537, allocations: 97.87 MB / 0.5861 GB, free: 14.74 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000227/0.4539, allocations: 63.98 kB / 0.5862 GB, free: 14.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0926/0.5466, allocations: 36.54 MB / 0.6218 GB, free: 9.816 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.5466, allocations: 4 kB / 0.6218 GB, free: 9.812 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.542e-05/0.5467, allocations: 24 kB / 0.6219 GB, free: 9.789 MB / 410.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.002911/0.5496, allocations: 1.349 MB / 0.6232 GB, free: 8.379 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.5496, allocations: 8.031 kB / 0.6232 GB, free: 8.371 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001479/0.5511, allocations: 314.1 kB / 0.6235 GB, free: 8.062 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00117/0.5523, allocations: 0.6449 MB / 0.6241 GB, free: 7.375 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.254e-05/0.5524, allocations: 39.95 kB / 0.6242 GB, free: 7.336 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001334/0.5525, allocations: 64 kB / 0.6242 GB, free: 7.273 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001602/0.5541, allocations: 0.8631 MB / 0.6251 GB, free: 6.41 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00166/0.5558, allocations: 0.9351 MB / 0.626 GB, free: 5.418 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.876e-05/0.5558, allocations: 4 kB / 0.626 GB, free: 5.414 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.066e-05/0.5559, allocations: 0 / 0.626 GB, free: 5.414 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.963e-05/0.556, allocations: 28 kB / 0.626 GB, free: 5.387 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006456/0.5624, allocations: 4.319 MB / 0.6302 GB, free: 0.8711 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001912/0.5644, allocations: 1.653 MB / 0.6318 GB, free: 14.97 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004277/0.5648, allocations: 283.2 kB / 0.6321 GB, free: 14.68 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.912e-05/0.5649, allocations: 93.53 kB / 0.6322 GB, free: 14.57 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006034/0.5656, allocations: 418.4 kB / 0.6326 GB, free: 14.13 MB / 426.7 MB Notification: Performance of pre-optimization done (n=67): time 2.885e-06/0.5656, allocations: 4 kB / 0.6326 GB, free: 14.12 MB / 426.7 MB Notification: Performance of matching and sorting (n=67): time 0.003682/0.5693, allocations: 0.9976 MB / 0.6336 GB, free: 13.12 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000169/0.5694, allocations: 311.2 kB / 0.6339 GB, free: 12.75 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008253/0.5703, allocations: 0.5777 MB / 0.6344 GB, free: 12.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.463e-05/0.5703, allocations: 29.7 kB / 0.6345 GB, free: 12.12 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004022/0.5707, allocations: 0.518 MB / 0.635 GB, free: 11.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000181/0.5709, allocations: 209 kB / 0.6352 GB, free: 11.39 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.345e-05/0.571, allocations: 0 / 0.6352 GB, free: 11.39 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.5712, allocations: 394.7 kB / 0.6355 GB, free: 11 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003989/0.5716, allocations: 246.6 kB / 0.6358 GB, free: 10.76 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005738/0.5722, allocations: 0.5029 MB / 0.6363 GB, free: 10.14 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007701/0.5729, allocations: 380.3 kB / 0.6366 GB, free: 9.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.652e-06/0.5729, allocations: 4 kB / 0.6366 GB, free: 9.766 MB / 426.7 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.001899/0.5749, allocations: 0.9613 MB / 0.6376 GB, free: 8.793 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.054e-05/0.5749, allocations: 63.41 kB / 0.6376 GB, free: 8.719 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.517e-05/0.575, allocations: 8 kB / 0.6376 GB, free: 8.711 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005322/0.5755, allocations: 96.77 kB / 0.6377 GB, free: 8.613 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008224/0.5763, allocations: 219.6 kB / 0.6379 GB, free: 8.398 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001625/0.578, allocations: 1.506 MB / 0.6394 GB, free: 6.773 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007443/0.5787, allocations: 83.11 kB / 0.6395 GB, free: 6.691 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.341e-05/0.5788, allocations: 51.92 kB / 0.6395 GB, free: 6.641 MB / 426.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.0002845/0.5791, allocations: 213.6 kB / 0.6397 GB, free: 6.414 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003567/0.5827, allocations: 1.049 MB / 0.6408 GB, free: 5.352 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001446/0.5828, allocations: 79.06 kB / 0.6408 GB, free: 5.273 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003656/0.5865, allocations: 1.101 MB / 0.6419 GB, free: 4.16 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.148e-05/0.5865, allocations: 11.98 kB / 0.6419 GB, free: 4.148 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.5865, allocations: 3.953 kB / 0.6419 GB, free: 4.145 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/0.5866, allocations: 0 / 0.6419 GB, free: 4.145 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0031/0.5897, allocations: 1.863 MB / 0.6438 GB, free: 2.223 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.5897, allocations: 0 / 0.6438 GB, free: 2.223 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003596/0.5901, allocations: 87.89 kB / 0.6438 GB, free: 2.137 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002227/0.5923, allocations: 0.541 MB / 0.6444 GB, free: 1.586 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.617e-05/0.5924, allocations: 11.98 kB / 0.6444 GB, free: 1.574 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008837/0.5932, allocations: 0.8607 MB / 0.6452 GB, free: 0.6875 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.5933, allocations: 0 / 0.6452 GB, free: 0.6875 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2264/0.8197, allocations: 1.245 MB / 0.6464 GB, free: 111.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005328/0.8203, allocations: 244.3 kB / 0.6467 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001415/0.8204, allocations: 11.33 kB / 0.6467 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005391/0.821, allocations: 35.42 kB / 0.6467 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.8211, allocations: 42.91 kB / 0.6468 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.677e-05/0.8212, allocations: 37.5 kB / 0.6468 GB, free: 111.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006123/0.8218, allocations: 447.4 kB / 0.6472 GB, free: 111 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.8218, allocations: 1.031 kB / 0.6472 GB, free: 111 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00116/0.823, allocations: 334.3 kB / 0.6475 GB, free: 111 MB / 426.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.003602/0.8266, allocations: 2.552 MB / 0.65 GB, free: 109.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001483/0.8281, allocations: 0.8787 MB / 0.6509 GB, free: 109.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.8281, allocations: 0 / 0.6509 GB, free: 109.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005891/0.8287, allocations: 448.2 kB / 0.6513 GB, free: 109.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008647/0.8296, allocations: 137 kB / 0.6514 GB, free: 109.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002888/0.8325, allocations: 1.382 MB / 0.6528 GB, free: 109.2 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000549/0.833, allocations: 1.033 MB / 0.6538 GB, free: 108.4 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004708/0.8335, allocations: 105.6 kB / 0.6539 GB, free: 108.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004564/0.834, allocations: 387.9 kB / 0.6543 GB, free: 108.4 MB / 426.7 MB Notification: Performance of SimCode: time 7.51e-07/0.834, allocations: 0 / 0.6543 GB, free: 108.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04512/0.8791, allocations: 18.44 MB / 0.6723 GB, free: 107.3 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/0.8793, allocations: 171 kB / 0.6724 GB, free: 107.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.488/3.368, allocations: 0 / 0.6724 GB, free: 107.1 MB / 426.7 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe 2>&1)