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/PhotoVoltaics 2.0.0/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/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/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 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) 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 PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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/PhotoVoltaics 2.0.0/package.mo): time 0.04087/0.04087, allocations: 5.391 MB / 21.02 MB, free: 1.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007241/0.007242, allocations: 100.5 kB / 23.03 MB, free: 0.7812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 202.5 kB / 25.15 MB, free: 168 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 222.9 MB / 250 MB, free: 8.414 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009439/0.009439, allocations: 2.314 MB / 303.7 MB, free: 6.457 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001629/0.00163, allocations: 91.86 kB / 419.1 MB, free: 22.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08649/0.08813, allocations: 51.22 MB / 470.4 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808): time 0.008035/0.0962, allocations: 6.888 MB / 477.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006142/0.1024, allocations: 4.017 MB / 481.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008858/0.1033, allocations: 19.94 kB / 481.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002864/0.1062, allocations: 1.182 MB / 482.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002133/0.1083, allocations: 0.8809 MB / 483.3 MB, free: 6.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001831/0.1102, allocations: 0.6063 MB / 484 MB, free: 6.078 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001665/0.1118, allocations: 1.409 MB / 485.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001495/0.1133, allocations: 1.01 MB / 486.4 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007987/0.1142, allocations: 0.572 MB / 486.9 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009731/0.1152, allocations: 0.6769 MB / 487.6 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002726/0.1154, allocations: 140 kB / 487.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000876/0.1163, allocations: 435.6 kB / 488.2 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002898/0.1166, allocations: 306.8 kB / 488.5 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007473/0.1174, allocations: 0.6297 MB / 489.1 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002093/0.1195, allocations: 1.768 MB / 490.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1195, allocations: 0 / 490.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1195, allocations: 0 / 490.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.299e-05/0.1196, allocations: 0 / 490.9 MB, free: 15.1 MB / 366.1 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.00444/0.124, allocations: 1.794 MB / 492.7 MB, free: 13.24 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.1241, allocations: 12.03 kB / 492.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002261/0.1243, allocations: 160.6 kB / 492.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002127/0.1264, allocations: 375.1 kB / 493.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001913/0.1284, allocations: 0.8163 MB / 494 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.292e-05/0.1285, allocations: 78 kB / 494.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001792/0.1287, allocations: 108 kB / 494.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002085/0.1307, allocations: 1.134 MB / 495.3 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.028e-05/0.1308, allocations: 4 kB / 495.3 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001026/0.1309, allocations: 44 kB / 495.4 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.273e-05/0.1309, allocations: 24 kB / 495.4 MB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001967/0.1329, allocations: 0.9485 MB / 496.4 MB, free: 9.449 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006388/0.1393, allocations: 4.295 MB / 0.4889 GB, free: 4.949 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002454/0.1418, allocations: 1.666 MB / 0.4905 GB, free: 3.059 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006621/0.1425, allocations: 319.9 kB / 0.4909 GB, free: 2.734 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001008/0.1426, allocations: 93.48 kB / 0.4909 GB, free: 2.625 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008365/0.1435, allocations: 458.6 kB / 0.4914 GB, free: 2.148 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.595e-06/0.1435, allocations: 0 / 0.4914 GB, free: 2.148 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005869/0.1493, allocations: 1.556 MB / 0.4929 GB, free: 0.5508 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001618/0.1495, allocations: 269.6 kB / 0.4932 GB, free: 232 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009555/0.1505, allocations: 0.6681 MB / 0.4938 GB, free: 15.55 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.366e-05/0.1506, allocations: 41.7 kB / 0.4938 GB, free: 15.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003939/0.151, allocations: 0.514 MB / 0.4943 GB, free: 14.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002066/0.1512, allocations: 217.1 kB / 0.4946 GB, free: 14.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002855/0.1515, allocations: 190.4 kB / 0.4947 GB, free: 14.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.1517, allocations: 390.8 kB / 0.4951 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006494/0.1523, allocations: 277.9 kB / 0.4954 GB, free: 13.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008026/0.1531, allocations: 0.5402 MB / 0.4959 GB, free: 13.26 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001424/0.1546, allocations: 0.9215 MB / 0.4968 GB, free: 12.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.376e-06/0.1546, allocations: 0 / 0.4968 GB, free: 12.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002252/0.1568, allocations: 1.067 MB / 0.4978 GB, free: 11.12 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.551e-05/0.1569, allocations: 63.41 kB / 0.4979 GB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/0.1569, allocations: 8.281 kB / 0.4979 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004993/0.1574, allocations: 88.72 kB / 0.498 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008741/0.1583, allocations: 223.6 kB / 0.4982 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001514/0.1599, allocations: 1.574 MB / 0.4997 GB, free: 9.012 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008462/0.1607, allocations: 122.9 kB / 0.4999 GB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.989e-05/0.1608, allocations: 43.98 kB / 0.4999 GB, free: 8.848 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 26 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,$PRE.irradianceTable.nextTimeEvent,$whenCondition4,writeCSV.sampleTrigger,$whenCondition3,mpTracker.sampleTrigger,$whenCondition2,$PRE.powerTable.nextTimeEvent,$whenCondition1,powerTable.nextTimeEventScaled,$PRE.powerTable.nextTimeEventScaled,powerTable.nextTimeEvent,irradianceTable.nextTimeEventScaled,$PRE.irradianceTable.nextTimeEventScaled,irradianceTable.nextTimeEvent,mpTracker.vRef,$PRE.mpTracker.vRef,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004971/0.1613, allocations: 335.9 kB / 0.5002 GB, free: 8.496 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002064/0.1616, allocations: 91 kB / 0.5003 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001944/0.1635, allocations: 0.913 MB / 0.5012 GB, free: 7.469 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.367e-06/0.1635, allocations: 8 kB / 0.5012 GB, free: 7.461 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.1635, allocations: 0 / 0.5012 GB, free: 7.461 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.1636, allocations: 7.938 kB / 0.5012 GB, free: 7.453 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006393/0.17, allocations: 2.203 MB / 0.5034 GB, free: 5.168 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.247e-05/0.17, allocations: 4.031 kB / 0.5034 GB, free: 5.164 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000388/0.1704, allocations: 83.89 kB / 0.5035 GB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008281/0.1712, allocations: 326.2 kB / 0.5038 GB, free: 4.754 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.198e-05/0.1714, allocations: 39.94 kB / 0.5038 GB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001307/0.1727, allocations: 0.8818 MB / 0.5047 GB, free: 3.801 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.1727, allocations: 7.969 kB / 0.5047 GB, free: 3.793 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005527/0.1782, allocations: 1.627 MB / 0.5063 GB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004071/0.1787, allocations: 219.9 kB / 0.5065 GB, free: 1.887 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002009/0.1789, allocations: 24 kB / 0.5065 GB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006457/0.1795, allocations: 47.97 kB / 0.5065 GB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.605e-05/0.1796, allocations: 36.38 kB / 0.5066 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.371e-05/0.1797, allocations: 31.98 kB / 0.5066 GB, free: 1.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006522/0.1804, allocations: 463 kB / 0.507 GB, free: 1.301 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1804, allocations: 4 kB / 0.5071 GB, free: 1.297 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001037/0.1814, allocations: 319 kB / 0.5074 GB, free: 0.9844 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (voltageSource.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.nextTimeEventScaled,powerTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1995/0.381, allocations: 2.74 MB / 0.51 GB, free: 45.47 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002215/0.3832, allocations: 0.9687 MB / 0.511 GB, free: 45.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.3833, allocations: 0 / 0.511 GB, free: 45.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009322/0.3842, allocations: 480.4 kB / 0.5114 GB, free: 45.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.3853, allocations: 169.2 kB / 0.5116 GB, free: 45.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01229/0.3976, allocations: 6.964 MB / 0.5184 GB, free: 41.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006422/0.3983, allocations: 1.009 MB / 0.5194 GB, free: 40.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006237/0.3989, allocations: 125.6 kB / 0.5195 GB, free: 40.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005323/0.3995, allocations: 390.9 kB / 0.5199 GB, free: 40.58 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3995, allocations: 1.906 kB / 0.5199 GB, free: 40.58 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05206/0.4515, allocations: 20.98 MB / 0.5404 GB, free: 28.58 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.05/15.5, allocations: 3.938 kB / 0.5404 GB, free: 28.57 MB / 382.1 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/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)