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.03085/0.03085, allocations: 5.393 MB / 21.03 MB, free: 1.609 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.007892/0.007892, allocations: 97.94 kB / 23.02 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.001129/0.001129, allocations: 211.5 kB / 25.16 MB, free: 160 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.404/1.404, 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.009188/0.009188, allocations: 2.33 MB / 303.7 MB, free: 6.445 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001823/0.001823, allocations: 99.84 kB / 419.1 MB, free: 22.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1283, allocations: 51.21 MB / 470.4 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004): time 0.009627/0.138, allocations: 6.891 MB / 477.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008039/0.146, allocations: 4.021 MB / 481.3 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008343/0.1469, allocations: 23.94 kB / 481.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003345/0.1503, allocations: 1.173 MB / 482.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002396/0.1527, allocations: 0.874 MB / 483.3 MB, free: 6.684 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002146/0.1549, allocations: 0.618 MB / 484 MB, free: 6.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001981/0.1569, allocations: 1.417 MB / 485.4 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001719/0.1586, allocations: 1.003 MB / 486.4 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001021/0.1596, allocations: 0.572 MB / 486.9 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009735/0.1607, allocations: 0.6808 MB / 487.6 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000211/0.1609, allocations: 140 kB / 487.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001236/0.1621, allocations: 435.6 kB / 488.2 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000282/0.1624, allocations: 302.9 kB / 488.5 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005791/0.163, allocations: 0.6297 MB / 489.1 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0022/0.1652, allocations: 1.76 MB / 490.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.1652, allocations: 0 / 490.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.036e-06/0.1652, allocations: 0 / 490.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.402e-05/0.1653, 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.004335/0.1696, allocations: 1.802 MB / 492.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.1697, allocations: 8.031 kB / 492.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001747/0.1698, allocations: 160.6 kB / 492.8 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00199/0.1718, allocations: 379.1 kB / 493.2 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001973/0.1738, allocations: 0.8124 MB / 494 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.924e-05/0.1739, allocations: 78 kB / 494.1 MB, free: 11.76 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001746/0.1741, allocations: 104 kB / 494.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002144/0.1763, allocations: 1.134 MB / 495.3 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.301e-05/0.1763, allocations: 0 / 495.3 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.872e-05/0.1764, allocations: 44 kB / 495.4 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.313e-05/0.1764, allocations: 28 kB / 495.4 MB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002014/0.1785, allocations: 0.9485 MB / 496.4 MB, free: 9.449 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006726/0.1852, allocations: 4.299 MB / 0.4889 GB, free: 4.945 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00257/0.1878, allocations: 1.662 MB / 0.4905 GB, free: 3.059 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006439/0.1884, allocations: 322.1 kB / 0.4908 GB, free: 2.734 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001111/0.1886, allocations: 105.4 kB / 0.4909 GB, free: 2.613 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009337/0.1895, allocations: 454.6 kB / 0.4914 GB, free: 2.141 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 1.216e-05/0.1896, allocations: 0 / 0.4914 GB, free: 2.141 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005611/0.1952, allocations: 1.548 MB / 0.4929 GB, free: 0.5508 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001745/0.1954, allocations: 277.6 kB / 0.4932 GB, free: 224 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001064/0.1965, allocations: 0.6642 MB / 0.4938 GB, free: 15.54 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.83e-05/0.1965, allocations: 37.7 kB / 0.4938 GB, free: 15.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004195/0.197, allocations: 0.5218 MB / 0.4944 GB, free: 14.97 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001777/0.1971, allocations: 217.1 kB / 0.4946 GB, free: 14.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004592/0.1976, allocations: 182.4 kB / 0.4947 GB, free: 14.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.1978, allocations: 390.7 kB / 0.4951 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006123/0.1984, allocations: 277.8 kB / 0.4954 GB, free: 13.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009601/0.1994, allocations: 0.5441 MB / 0.4959 GB, free: 13.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001583/0.201, allocations: 0.9178 MB / 0.4968 GB, free: 12.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.201, allocations: 7.938 kB / 0.4968 GB, free: 12.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002382/0.2034, allocations: 1.071 MB / 0.4979 GB, free: 11.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7e-05/0.2035, allocations: 63.39 kB / 0.4979 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.678e-05/0.2035, allocations: 8 kB / 0.4979 GB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004753/0.204, allocations: 88.78 kB / 0.498 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009667/0.205, allocations: 223.7 kB / 0.4982 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001669/0.2066, allocations: 1.578 MB / 0.4998 GB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009261/0.2076, allocations: 111 kB / 0.4999 GB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.186e-05/0.2077, allocations: 47.97 kB / 0.4999 GB, free: 8.84 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.0005165/0.2082, allocations: 335.5 kB / 0.5002 GB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.2084, allocations: 86.98 kB / 0.5003 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002024/0.2104, allocations: 0.9091 MB / 0.5012 GB, free: 7.469 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.2104, allocations: 4 kB / 0.5012 GB, free: 7.465 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.2104, allocations: 4 kB / 0.5012 GB, free: 7.461 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.2104, allocations: 7.984 kB / 0.5012 GB, free: 7.453 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006338/0.2168, allocations: 2.207 MB / 0.5034 GB, free: 5.164 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.2168, allocations: 4 kB / 0.5034 GB, free: 5.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003425/0.2171, allocations: 83.89 kB / 0.5035 GB, free: 5.078 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008074/0.218, allocations: 334.2 kB / 0.5038 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.047e-05/0.218, allocations: 28.03 kB / 0.5038 GB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001298/0.2193, allocations: 0.8858 MB / 0.5047 GB, free: 3.797 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/0.2194, allocations: 3.938 kB / 0.5047 GB, free: 3.793 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005123/0.2245, allocations: 1.635 MB / 0.5063 GB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003672/0.2249, allocations: 223.9 kB / 0.5065 GB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001148/0.225, allocations: 16 kB / 0.5065 GB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005378/0.2255, allocations: 47.95 kB / 0.5065 GB, free: 1.812 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.2256, allocations: 44.39 kB / 0.5066 GB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.324e-05/0.2257, allocations: 31.95 kB / 0.5066 GB, free: 1.738 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005683/0.2263, allocations: 459 kB / 0.5071 GB, free: 1.293 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2263, allocations: 4 kB / 0.5071 GB, free: 1.289 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001049/0.2273, allocations: 319 kB / 0.5074 GB, free: 0.9766 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.3287/0.5561, allocations: 2.738 MB / 0.51 GB, free: 45.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002361/0.5585, allocations: 0.9629 MB / 0.511 GB, free: 44.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.5585, allocations: 0 / 0.511 GB, free: 44.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001104/0.5596, allocations: 483.7 kB / 0.5114 GB, free: 44.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001115/0.5607, allocations: 175.3 kB / 0.5116 GB, free: 44.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01274/0.5735, allocations: 6.965 MB / 0.5184 GB, free: 41.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008261/0.5743, allocations: 1.012 MB / 0.5194 GB, free: 40.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005926/0.5749, allocations: 121.1 kB / 0.5195 GB, free: 40.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004913/0.5754, allocations: 389 kB / 0.5199 GB, free: 40.3 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.5755, allocations: 0 / 0.5199 GB, free: 40.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.058/0.6335, allocations: 20.98 MB / 0.5404 GB, free: 28.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.09/16.72, allocations: 15.45 kB / 0.5404 GB, free: 28.29 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)