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.02778/0.02778, allocations: 5.396 MB / 21.03 MB, free: 1.586 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.0009876/0.0009877, allocations: 98.69 kB / 23.02 MB, free: 0.8008 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.001225/0.001225, allocations: 202.4 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.339/1.339, allocations: 222.9 MB / 250 MB, free: 8.418 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01001/0.01001, allocations: 2.326 MB / 303.7 MB, free: 6.465 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001718/0.001718, allocations: 95.84 kB / 419.1 MB, free: 22.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08592/0.08764, allocations: 51.2 MB / 470.3 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808): time 0.008086/0.09577, allocations: 6.89 MB / 477.2 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006358/0.1022, allocations: 4.025 MB / 481.3 MB, free: 8.773 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008799/0.1031, allocations: 19.94 kB / 481.3 MB, free: 8.754 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002749/0.1058, allocations: 1.173 MB / 482.5 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002319/0.1081, allocations: 0.8856 MB / 483.3 MB, free: 6.691 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001897/0.1101, allocations: 0.6069 MB / 483.9 MB, free: 6.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001701/0.1118, allocations: 1.413 MB / 485.4 MB, free: 4.672 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001392/0.1132, allocations: 1.021 MB / 486.4 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009003/0.1141, allocations: 0.5604 MB / 486.9 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009443/0.1151, allocations: 0.6846 MB / 487.6 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002225/0.1153, allocations: 140 kB / 487.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007836/0.1161, allocations: 435.7 kB / 488.2 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002514/0.1164, allocations: 294.9 kB / 488.5 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007744/0.1172, allocations: 0.6375 MB / 489.1 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002116/0.1193, allocations: 1.76 MB / 490.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1193, allocations: 0 / 490.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1193, allocations: 0 / 490.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.555e-05/0.1194, allocations: 3.984 kB / 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.004099/0.1235, allocations: 1.798 MB / 492.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.1235, allocations: 12.03 kB / 492.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002473/0.1238, allocations: 156.6 kB / 492.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002086/0.1259, allocations: 375.1 kB / 493.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001853/0.1278, allocations: 0.8163 MB / 494 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.219e-05/0.1278, allocations: 78 kB / 494.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001366/0.128, allocations: 100 kB / 494.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001952/0.1299, allocations: 1.134 MB / 495.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.881e-05/0.13, allocations: 4 kB / 495.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.725e-05/0.1301, allocations: 44 kB / 495.4 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.998e-05/0.1301, allocations: 28 kB / 495.4 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001944/0.1321, allocations: 0.9508 MB / 496.4 MB, free: 9.461 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006254/0.1383, allocations: 4.299 MB / 0.4889 GB, free: 4.957 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002662/0.141, allocations: 1.662 MB / 0.4905 GB, free: 3.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006712/0.1418, allocations: 320 kB / 0.4909 GB, free: 2.746 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.093e-05/0.1419, allocations: 97.47 kB / 0.4909 GB, free: 2.633 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008035/0.1427, allocations: 458.5 kB / 0.4914 GB, free: 2.156 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.565e-06/0.1427, allocations: 0 / 0.4914 GB, free: 2.156 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005725/0.1484, allocations: 1.548 MB / 0.4929 GB, free: 0.5664 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001381/0.1486, allocations: 273.5 kB / 0.4932 GB, free: 244 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008744/0.1495, allocations: 0.6682 MB / 0.4938 GB, free: 15.56 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001127/0.1497, allocations: 49.62 kB / 0.4939 GB, free: 15.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003601/0.15, allocations: 0.514 MB / 0.4944 GB, free: 14.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001773/0.1502, allocations: 221.1 kB / 0.4946 GB, free: 14.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002736/0.1505, allocations: 190.4 kB / 0.4947 GB, free: 14.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.1507, allocations: 382.8 kB / 0.4951 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007401/0.1514, allocations: 281.8 kB / 0.4954 GB, free: 13.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007602/0.1522, allocations: 0.5402 MB / 0.4959 GB, free: 13.26 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001516/0.1537, allocations: 0.9176 MB / 0.4968 GB, free: 12.22 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.1537, allocations: 0 / 0.4968 GB, free: 12.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002185/0.1559, allocations: 1.075 MB / 0.4979 GB, free: 11.12 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001673/0.1562, allocations: 67.41 kB / 0.4979 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.1562, allocations: 8.062 kB / 0.4979 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004577/0.1566, allocations: 84.78 kB / 0.498 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008119/0.1575, allocations: 219.9 kB / 0.4982 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0016/0.1591, allocations: 1.574 MB / 0.4998 GB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008333/0.1599, allocations: 127 kB / 0.4999 GB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.656e-05/0.16, 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.000403/0.1604, allocations: 327.6 kB / 0.5002 GB, free: 8.504 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001484/0.1606, allocations: 91 kB / 0.5003 GB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001978/0.1626, allocations: 0.9051 MB / 0.5012 GB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.1626, allocations: 8 kB / 0.5012 GB, free: 7.477 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.1626, allocations: 0 / 0.5012 GB, free: 7.477 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/0.1626, allocations: 11.98 kB / 0.5012 GB, free: 7.465 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005738/0.1683, allocations: 2.199 MB / 0.5034 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.1684, allocations: 0 / 0.5034 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004282/0.1688, allocations: 91.83 kB / 0.5035 GB, free: 5.094 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007733/0.1696, allocations: 334.3 kB / 0.5038 GB, free: 4.758 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.936e-05/0.1697, allocations: 23.98 kB / 0.5038 GB, free: 4.734 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00121/0.1709, allocations: 0.8857 MB / 0.5047 GB, free: 3.816 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.1709, allocations: 11.95 kB / 0.5047 GB, free: 3.805 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004819/0.1757, allocations: 1.631 MB / 0.5063 GB, free: 2.129 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003004/0.176, allocations: 219.9 kB / 0.5065 GB, free: 1.895 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001135/0.1761, allocations: 23.94 kB / 0.5065 GB, free: 1.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005164/0.1767, allocations: 47.95 kB / 0.5065 GB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.26e-05/0.1768, allocations: 40.39 kB / 0.5066 GB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.626e-05/0.1768, allocations: 31.97 kB / 0.5066 GB, free: 1.754 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005231/0.1774, allocations: 467 kB / 0.5071 GB, free: 1.301 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.293e-06/0.1774, allocations: 0 / 0.5071 GB, free: 1.301 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008337/0.1782, allocations: 319 kB / 0.5074 GB, free: 0.9883 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.2123/0.3906, allocations: 2.724 MB / 0.51 GB, free: 45.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002238/0.3928, allocations: 0.9627 MB / 0.511 GB, free: 45.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.3929, allocations: 0 / 0.511 GB, free: 45.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009371/0.3938, allocations: 484.7 kB / 0.5114 GB, free: 45.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001188/0.395, allocations: 185.4 kB / 0.5116 GB, free: 45.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0128/0.4078, allocations: 6.97 MB / 0.5184 GB, free: 41.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006576/0.4085, allocations: 1.013 MB / 0.5194 GB, free: 40.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005461/0.4091, allocations: 121.7 kB / 0.5195 GB, free: 40.92 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004684/0.4096, allocations: 390.8 kB / 0.5199 GB, free: 40.64 MB / 382.1 MB Notification: Performance of SimCode: time 1.001e-06/0.4096, allocations: 3.938 kB / 0.5199 GB, free: 40.63 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0531/0.4627, allocations: 20.97 MB / 0.5404 GB, free: 28.62 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.23/16.69, allocations: 6.906 kB / 0.5404 GB, free: 28.62 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)