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.04561/0.04561, allocations: 5.399 MB / 21.03 MB, free: 1.508 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.001603/0.001603, allocations: 103.8 kB / 23.02 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.001826/0.001826, allocations: 200.3 kB / 25.15 MB, free: 104 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.475/1.475, allocations: 222.9 MB / 250 MB, free: 8.359 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.00996/0.00996, allocations: 2.325 MB / 303.7 MB, free: 6.441 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002657/0.002657, allocations: 95.84 kB / 419.1 MB, free: 22.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08481/0.08748, allocations: 51.21 MB / 470.4 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808): time 0.008895/0.09642, allocations: 6.893 MB / 477.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006521/0.103, allocations: 4.033 MB / 481.3 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006206/0.1036, allocations: 19.94 kB / 481.3 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002684/0.1064, allocations: 1.17 MB / 482.5 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001917/0.1083, allocations: 0.8854 MB / 483.4 MB, free: 6.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001709/0.11, allocations: 0.6058 MB / 484 MB, free: 6.078 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001558/0.1116, allocations: 1.409 MB / 485.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001417/0.113, allocations: 1.013 MB / 486.4 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006936/0.1137, allocations: 0.5681 MB / 486.9 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009012/0.1146, allocations: 0.673 MB / 487.6 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001897/0.1148, allocations: 144 kB / 487.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008312/0.1157, allocations: 431.7 kB / 488.2 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000288/0.116, allocations: 298.9 kB / 488.5 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006257/0.1166, allocations: 0.6375 MB / 489.1 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002302/0.1189, allocations: 1.763 MB / 490.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1189, allocations: 0 / 490.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1189, allocations: 0 / 490.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.615e-05/0.119, allocations: 0 / 490.9 MB, free: 15.11 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.004284/0.1232, allocations: 1.839 MB / 492.7 MB, free: 13.2 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.1233, allocations: 8.031 kB / 492.7 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001883/0.1235, allocations: 156.6 kB / 492.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002204/0.1257, allocations: 395.8 kB / 493.3 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001819/0.1275, allocations: 0.8208 MB / 494.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.086e-05/0.1276, allocations: 78 kB / 494.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001611/0.1278, allocations: 104 kB / 494.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002106/0.1299, allocations: 1.13 MB / 495.4 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.88e-05/0.1299, allocations: 4 kB / 495.4 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001033/0.13, allocations: 44 kB / 495.4 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.803e-05/0.1301, allocations: 24 kB / 495.5 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002061/0.1321, allocations: 0.9469 MB / 496.4 MB, free: 9.406 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006511/0.1387, allocations: 4.315 MB / 0.489 GB, free: 4.887 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002829/0.1415, allocations: 1.67 MB / 0.4906 GB, free: 2.992 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000719/0.1423, allocations: 323.9 kB / 0.4909 GB, free: 2.664 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001043/0.1424, allocations: 89.48 kB / 0.491 GB, free: 2.559 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008872/0.1433, allocations: 466.6 kB / 0.4915 GB, free: 2.074 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.385e-06/0.1433, allocations: 0 / 0.4915 GB, free: 2.074 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.006025/0.1493, allocations: 1.553 MB / 0.493 GB, free: 492 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001633/0.1495, allocations: 273.6 kB / 0.4932 GB, free: 156 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009363/0.1504, allocations: 0.6682 MB / 0.4939 GB, free: 15.47 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.201e-05/0.1505, allocations: 37.7 kB / 0.4939 GB, free: 15.43 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00045/0.151, allocations: 0.5351 MB / 0.4944 GB, free: 14.89 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002009/0.1512, allocations: 226.2 kB / 0.4947 GB, free: 14.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002956/0.1515, allocations: 190.5 kB / 0.4948 GB, free: 14.47 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002043/0.1517, allocations: 386.7 kB / 0.4952 GB, free: 14.08 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00067/0.1524, allocations: 281.9 kB / 0.4955 GB, free: 13.81 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008965/0.1533, allocations: 0.5402 MB / 0.496 GB, free: 13.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001565/0.1548, allocations: 0.9137 MB / 0.4969 GB, free: 12.12 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.1549, allocations: 4 kB / 0.4969 GB, free: 12.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002342/0.1572, allocations: 1.075 MB / 0.498 GB, free: 11.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.127e-05/0.1573, allocations: 59.41 kB / 0.498 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.1573, allocations: 8 kB / 0.498 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004751/0.1578, allocations: 89.06 kB / 0.4981 GB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008939/0.1587, allocations: 223.6 kB / 0.4983 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001896/0.1606, allocations: 1.578 MB / 0.4999 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008031/0.1614, allocations: 115.4 kB / 0.5 GB, free: 8.797 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.411e-05/0.1615, allocations: 39.98 kB / 0.5 GB, free: 8.758 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.0005208/0.162, allocations: 335.8 kB / 0.5003 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001624/0.1622, allocations: 91.38 kB / 0.5004 GB, free: 8.316 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002027/0.1642, allocations: 0.9168 MB / 0.5013 GB, free: 7.375 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.1642, allocations: 8 kB / 0.5013 GB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.1643, allocations: 8 kB / 0.5013 GB, free: 7.359 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.1643, allocations: 0 / 0.5013 GB, free: 7.359 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006174/0.1704, allocations: 2.211 MB / 0.5035 GB, free: 5.066 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.1705, allocations: 0 / 0.5035 GB, free: 5.066 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003765/0.1709, allocations: 83.91 kB / 0.5036 GB, free: 4.984 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008863/0.1718, allocations: 334.3 kB / 0.5039 GB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.89e-05/0.1719, allocations: 23.97 kB / 0.5039 GB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00151/0.1734, allocations: 0.8975 MB / 0.5048 GB, free: 3.695 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.219e-06/0.1734, allocations: 3.938 kB / 0.5048 GB, free: 3.691 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005427/0.1788, allocations: 1.631 MB / 0.5064 GB, free: 2.016 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004126/0.1792, allocations: 220.4 kB / 0.5066 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000185/0.1794, allocations: 19.98 kB / 0.5066 GB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000606/0.1801, allocations: 47.97 kB / 0.5067 GB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.915e-05/0.1802, allocations: 48.31 kB / 0.5067 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-05/0.1802, allocations: 23.98 kB / 0.5067 GB, free: 1.645 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006743/0.1809, allocations: 467 kB / 0.5072 GB, free: 1.191 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1809, allocations: 0 / 0.5072 GB, free: 1.191 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001055/0.182, allocations: 319.2 kB / 0.5075 GB, free: 0.8789 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.193/0.375, allocations: 2.74 MB / 0.5101 GB, free: 46.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002569/0.3776, allocations: 0.9677 MB / 0.5111 GB, free: 45.83 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.3776, allocations: 0 / 0.5111 GB, free: 45.83 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009632/0.3786, allocations: 491 kB / 0.5116 GB, free: 45.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001132/0.3797, allocations: 172 kB / 0.5117 GB, free: 45.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01251/0.3923, allocations: 7.001 MB / 0.5186 GB, free: 41.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000645/0.3929, allocations: 1.009 MB / 0.5195 GB, free: 41.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005167/0.3935, allocations: 125.3 kB / 0.5197 GB, free: 41.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000497/0.394, allocations: 395.1 kB / 0.52 GB, free: 40.76 MB / 382.1 MB Notification: Performance of SimCode: time 7.72e-07/0.394, allocations: 5.062 kB / 0.52 GB, free: 40.75 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05656/0.4506, allocations: 20.61 MB / 0.5402 GB, free: 28.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.01/16.46, allocations: 8 kB / 0.5402 GB, free: 28.94 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)