Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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_Comax_Measurement_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160808",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160808",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.001431/0.001431, allocations: 173.9 kB / 7.648 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.49/1.49, allocations: 221.5 MB / 229.6 MB, free: 7.57 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.0009151/0.0009152, allocations: 109.8 kB / 280.5 MB, free: 5.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.0231/0.0231, allocations: 5.29 MB / 336.5 MB, free: 9.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008601/0.0086, allocations: 2.298 MB / 390.8 MB, free: 3.527 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 1.454e-05/1.457e-05, allocations: 0 / 450.1 MB, free: 48.84 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2788, allocations: 52.2 MB / 0.4905 GB, free: 5.688 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1373/0.4161, allocations: 97.88 MB / 0.5861 GB, free: 14.74 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002217/0.4164, allocations: 63.97 kB / 0.5862 GB, free: 14.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0958/0.5122, allocations: 36.53 MB / 0.6218 GB, free: 9.824 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.5123, allocations: 4 kB / 0.6218 GB, free: 9.82 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.591e-05/0.5123, allocations: 24 kB / 0.6219 GB, free: 9.797 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.00295/0.5153, allocations: 1.353 MB / 0.6232 GB, free: 8.383 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.5154, allocations: 8.031 kB / 0.6232 GB, free: 8.375 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001491/0.5169, allocations: 310.2 kB / 0.6235 GB, free: 8.07 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00111/0.518, allocations: 0.6488 MB / 0.6241 GB, free: 7.379 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.228e-05/0.518, allocations: 43.94 kB / 0.6242 GB, free: 7.336 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000129/0.5182, allocations: 60 kB / 0.6242 GB, free: 7.277 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001564/0.5198, allocations: 0.8708 MB / 0.6251 GB, free: 6.406 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001602/0.5214, allocations: 0.9235 MB / 0.626 GB, free: 5.426 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.634e-05/0.5214, allocations: 4 kB / 0.626 GB, free: 5.422 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.314e-05/0.5215, allocations: 7.984 kB / 0.626 GB, free: 5.414 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.443e-05/0.5215, allocations: 24 kB / 0.626 GB, free: 5.391 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006454/0.528, allocations: 4.311 MB / 0.6302 GB, free: 0.8828 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001977/0.53, allocations: 1.653 MB / 0.6318 GB, free: 14.98 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004564/0.5305, allocations: 284.5 kB / 0.6321 GB, free: 14.69 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001143/0.5306, allocations: 85.55 kB / 0.6322 GB, free: 14.59 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006445/0.5313, allocations: 430.4 kB / 0.6326 GB, free: 14.13 MB / 426.7 MB Notification: Performance of pre-optimization done (n=67): time 2.404e-06/0.5313, allocations: 4 kB / 0.6326 GB, free: 14.13 MB / 426.7 MB Notification: Performance of matching and sorting (n=67): time 0.003885/0.5352, allocations: 0.9898 MB / 0.6336 GB, free: 13.13 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001417/0.5353, allocations: 307.3 kB / 0.6339 GB, free: 12.76 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009037/0.5362, allocations: 0.5854 MB / 0.6344 GB, free: 12.17 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.23e-05/0.5363, allocations: 29.7 kB / 0.6345 GB, free: 12.13 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004622/0.5368, allocations: 0.518 MB / 0.635 GB, free: 11.61 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001793/0.537, allocations: 212.9 kB / 0.6352 GB, free: 11.39 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.447e-05/0.537, allocations: 4 kB / 0.6352 GB, free: 11.39 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001794/0.5372, allocations: 390.7 kB / 0.6355 GB, free: 11 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004577/0.5377, allocations: 246.6 kB / 0.6358 GB, free: 10.76 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005868/0.5383, allocations: 0.499 MB / 0.6363 GB, free: 10.15 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000802/0.5391, allocations: 388.3 kB / 0.6366 GB, free: 9.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/0.5391, allocations: 4 kB / 0.6366 GB, free: 9.766 MB / 426.7 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.001951/0.5411, allocations: 0.9574 MB / 0.6376 GB, free: 8.797 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.8e-05/0.5411, allocations: 67.39 kB / 0.6376 GB, free: 8.719 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.5412, allocations: 8 kB / 0.6376 GB, free: 8.711 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005324/0.5417, allocations: 92.78 kB / 0.6377 GB, free: 8.617 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008344/0.5425, allocations: 223.6 kB / 0.638 GB, free: 8.398 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001509/0.5441, allocations: 1.506 MB / 0.6394 GB, free: 6.773 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007836/0.5449, allocations: 83.11 kB / 0.6395 GB, free: 6.691 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.536e-05/0.5449, 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.0002921/0.5452, allocations: 211.3 kB / 0.6398 GB, free: 6.414 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003634/0.5489, allocations: 1.048 MB / 0.6408 GB, free: 5.352 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001449/0.549, allocations: 83 kB / 0.6409 GB, free: 5.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003772/0.5528, allocations: 1.093 MB / 0.6419 GB, free: 4.164 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.158e-06/0.5529, allocations: 8 kB / 0.6419 GB, free: 4.156 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.5529, allocations: 3.953 kB / 0.6419 GB, free: 4.152 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.5529, allocations: 3.984 kB / 0.6419 GB, free: 4.148 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003176/0.5561, allocations: 1.856 MB / 0.6437 GB, free: 2.234 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.5561, allocations: 128 / 0.6437 GB, free: 2.234 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003693/0.5565, allocations: 99.83 kB / 0.6438 GB, free: 2.137 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002385/0.5589, allocations: 0.5371 MB / 0.6444 GB, free: 1.59 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.972e-05/0.5589, allocations: 23.97 kB / 0.6444 GB, free: 1.566 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008758/0.5598, allocations: 0.8451 MB / 0.6452 GB, free: 0.6953 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.5598, allocations: 0 / 0.6452 GB, free: 0.6953 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2434/0.8032, allocations: 1.252 MB / 0.6464 GB, free: 111 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00061/0.8039, allocations: 242.2 kB / 0.6467 GB, free: 110.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001439/0.804, allocations: 12.23 kB / 0.6467 GB, free: 110.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000572/0.8046, allocations: 38.98 kB / 0.6467 GB, free: 110.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.8047, allocations: 39.59 kB / 0.6468 GB, free: 110.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.14e-05/0.8048, allocations: 36.09 kB / 0.6468 GB, free: 110.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007076/0.8055, allocations: 448 kB / 0.6472 GB, free: 110.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.8055, allocations: 0 / 0.6472 GB, free: 110.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001327/0.8069, allocations: 333 kB / 0.6475 GB, free: 110.8 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.003763/0.8106, allocations: 2.554 MB / 0.65 GB, free: 109.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001521/0.8122, allocations: 0.8768 MB / 0.6509 GB, free: 109.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.8122, allocations: 3.156 kB / 0.6509 GB, free: 109.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007304/0.8129, allocations: 449.6 kB / 0.6513 GB, free: 109.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008943/0.8138, allocations: 134.5 kB / 0.6514 GB, free: 109.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003128/0.817, allocations: 1.373 MB / 0.6528 GB, free: 109 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008451/0.8178, allocations: 1.033 MB / 0.6538 GB, free: 108.3 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005432/0.8184, allocations: 110.1 kB / 0.6539 GB, free: 108.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005113/0.8189, allocations: 385.8 kB / 0.6543 GB, free: 108.3 MB / 426.7 MB Notification: Performance of SimCode: time 7.91e-07/0.8189, allocations: 3.391 kB / 0.6543 GB, free: 108.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05241/0.8713, allocations: 18.44 MB / 0.6723 GB, free: 107.2 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001598/0.8716, allocations: 175 kB / 0.6725 GB, free: 107 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.505/3.376, allocations: 3.25 kB / 0.6725 GB, free: 107 MB / 426.7 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160808_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160808.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe 2>&1)