Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.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_20160626_to_20161004,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160626_to_20161004",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160626_to_20161004",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.02926/0.02926, allocations: 5.398 MB / 21.03 MB, free: 1.633 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.008115/0.008115, allocations: 106.8 kB / 23.03 MB, free: 0.8047 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.001348/0.001348, allocations: 191.8 kB / 25.15 MB, free: 216 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.441 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009133/0.009133, allocations: 2.325 MB / 303.7 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001608/0.001608, allocations: 95.86 kB / 419.1 MB, free: 23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08694/0.08856, allocations: 51.21 MB / 470.4 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004): time 0.008118/0.09672, allocations: 6.892 MB / 477.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006533/0.1033, allocations: 4.017 MB / 481.3 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001005/0.1043, allocations: 19.94 kB / 481.3 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002805/0.1072, allocations: 1.174 MB / 482.5 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002206/0.1094, allocations: 0.8851 MB / 483.3 MB, free: 6.699 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001886/0.1113, allocations: 0.6094 MB / 483.9 MB, free: 6.094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001769/0.1131, allocations: 1.421 MB / 485.4 MB, free: 4.668 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001399/0.1145, allocations: 1.01 MB / 486.4 MB, free: 3.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000688/0.1152, allocations: 0.5642 MB / 486.9 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008493/0.116, allocations: 0.6868 MB / 487.6 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002261/0.1163, allocations: 136 kB / 487.8 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008249/0.1171, allocations: 435.7 kB / 488.2 MB, free: 1.816 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002351/0.1174, allocations: 298.9 kB / 488.5 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005342/0.1179, allocations: 0.6297 MB / 489.1 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002032/0.1199, allocations: 1.768 MB / 490.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.12, allocations: 0 / 490.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.12, allocations: 0 / 490.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.773e-05/0.12, allocations: 0 / 490.9 MB, free: 15.12 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.004062/0.1241, allocations: 1.794 MB / 492.7 MB, free: 13.26 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.1241, allocations: 12.03 kB / 492.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001814/0.1243, allocations: 156.6 kB / 492.8 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002021/0.1263, allocations: 383 kB / 493.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001763/0.1281, allocations: 0.8124 MB / 494 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.23e-05/0.1282, allocations: 74 kB / 494.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001529/0.1283, allocations: 108 kB / 494.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001872/0.1302, allocations: 1.134 MB / 495.3 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.865e-05/0.1302, allocations: 7.938 kB / 495.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.41e-05/0.1303, allocations: 40 kB / 495.4 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.952e-05/0.1304, allocations: 28 kB / 495.4 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001834/0.1322, allocations: 0.9485 MB / 496.4 MB, free: 9.465 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005765/0.138, allocations: 4.303 MB / 0.4889 GB, free: 4.957 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002405/0.1404, allocations: 1.662 MB / 0.4906 GB, free: 3.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006421/0.1411, allocations: 316 kB / 0.4909 GB, free: 2.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.837e-05/0.1412, allocations: 105.5 kB / 0.491 GB, free: 2.629 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000815/0.142, allocations: 454.5 kB / 0.4914 GB, free: 2.156 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.775e-06/0.142, allocations: 0 / 0.4914 GB, free: 2.156 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.00599/0.148, allocations: 1.541 MB / 0.4929 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001306/0.1482, allocations: 281.6 kB / 0.4932 GB, free: 244 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008451/0.149, allocations: 0.6642 MB / 0.4938 GB, free: 15.56 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.092e-05/0.1491, allocations: 41.7 kB / 0.4938 GB, free: 15.52 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003724/0.1495, allocations: 0.5179 MB / 0.4944 GB, free: 14.99 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001684/0.1496, allocations: 213.1 kB / 0.4946 GB, free: 14.78 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002558/0.1499, allocations: 186.4 kB / 0.4947 GB, free: 14.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.1501, allocations: 398.7 kB / 0.4951 GB, free: 14.19 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006174/0.1507, allocations: 285.8 kB / 0.4954 GB, free: 13.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000786/0.1515, allocations: 0.5325 MB / 0.4959 GB, free: 13.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001427/0.1529, allocations: 0.9215 MB / 0.4968 GB, free: 12.22 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.77e-06/0.1529, allocations: 0 / 0.4968 GB, free: 12.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002168/0.1551, allocations: 1.063 MB / 0.4978 GB, free: 11.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.409e-05/0.1552, allocations: 67.39 kB / 0.4979 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/0.1552, allocations: 16.28 kB / 0.4979 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005097/0.1557, allocations: 88.72 kB / 0.498 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008519/0.1566, allocations: 219.6 kB / 0.4982 GB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001496/0.1581, allocations: 1.578 MB / 0.4998 GB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007668/0.1589, allocations: 107 kB / 0.4999 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.762e-05/0.1589, allocations: 47.97 kB / 0.4999 GB, free: 8.863 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.0004865/0.1594, allocations: 343.6 kB / 0.5002 GB, free: 8.504 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001566/0.1596, allocations: 83 kB / 0.5003 GB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001946/0.1616, allocations: 0.9129 MB / 0.5012 GB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.1616, allocations: 8 kB / 0.5012 GB, free: 7.477 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.716e-06/0.1616, allocations: 0 / 0.5012 GB, free: 7.477 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.1616, allocations: 3.984 kB / 0.5012 GB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006053/0.1677, allocations: 2.207 MB / 0.5034 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.1677, allocations: 4.031 kB / 0.5034 GB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003561/0.168, allocations: 87.89 kB / 0.5035 GB, free: 5.094 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008116/0.1689, allocations: 326.2 kB / 0.5038 GB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.615e-05/0.1689, allocations: 23.97 kB / 0.5038 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001275/0.1702, allocations: 0.8896 MB / 0.5047 GB, free: 3.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/0.1702, allocations: 8 kB / 0.5047 GB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005501/0.1757, allocations: 1.631 MB / 0.5063 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003505/0.1761, allocations: 223.9 kB / 0.5065 GB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001354/0.1762, allocations: 20 kB / 0.5065 GB, free: 1.879 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005596/0.1768, allocations: 51.95 kB / 0.5065 GB, free: 1.828 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.53e-05/0.1769, allocations: 36.39 kB / 0.5066 GB, free: 1.793 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.873e-05/0.177, allocations: 31.97 kB / 0.5066 GB, free: 1.762 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005683/0.1776, allocations: 471 kB / 0.5071 GB, free: 1.305 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1776, allocations: 0 / 0.5071 GB, free: 1.305 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009195/0.1785, allocations: 319 kB / 0.5074 GB, free: 0.9922 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.1901/0.3686, allocations: 2.726 MB / 0.51 GB, free: 45.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002009/0.3707, allocations: 0.9666 MB / 0.511 GB, free: 45.28 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.3707, allocations: 1.219 kB / 0.511 GB, free: 45.28 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008031/0.3715, allocations: 488 kB / 0.5114 GB, free: 45.14 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009629/0.3725, allocations: 177.7 kB / 0.5116 GB, free: 45.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/0.3827, allocations: 6.969 MB / 0.5184 GB, free: 41.65 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005295/0.3832, allocations: 1.009 MB / 0.5194 GB, free: 40.94 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004605/0.3837, allocations: 117.2 kB / 0.5195 GB, free: 40.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003967/0.3841, allocations: 392.4 kB / 0.5199 GB, free: 40.62 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3841, allocations: 0 / 0.5199 GB, free: 40.62 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07645/0.4606, allocations: 20.98 MB / 0.5404 GB, free: 28.62 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.07/15.53, allocations: 16.48 kB / 0.5404 GB, free: 28.6 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160626_to_20161004_fmu --startTime=0 --stopTime=5.8752e+06 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160626_to_20161004.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.pipe 2>&1)