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.0309/0.0309, allocations: 5.396 MB / 21.03 MB, free: 1.625 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.006894/0.006894, allocations: 91.41 kB / 23.03 MB, free: 0.7891 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.001299/0.001299, allocations: 196.8 kB / 25.15 MB, free: 192 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.368/1.368, allocations: 222.9 MB / 250 MB, free: 8.434 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01015/0.01015, allocations: 2.324 MB / 303.7 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003825/0.003826, allocations: 95.84 kB / 419.2 MB, free: 23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08341/0.08726, allocations: 51.2 MB / 470.4 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004): time 0.008959/0.09627, allocations: 6.904 MB / 477.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006834/0.1032, allocations: 4.021 MB / 481.3 MB, free: 8.777 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007484/0.1039, allocations: 23.94 kB / 481.3 MB, free: 8.754 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002819/0.1068, allocations: 1.166 MB / 482.5 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002151/0.1089, allocations: 0.8778 MB / 483.3 MB, free: 6.703 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001814/0.1108, allocations: 0.6115 MB / 484 MB, free: 6.094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001622/0.1124, allocations: 1.413 MB / 485.4 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001434/0.1139, allocations: 1.013 MB / 486.4 MB, free: 3.633 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007715/0.1146, allocations: 0.5681 MB / 487 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009878/0.1156, allocations: 0.6831 MB / 487.6 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002007/0.1159, allocations: 140 kB / 487.8 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009061/0.1168, allocations: 439.6 kB / 488.2 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002814/0.1171, allocations: 294.9 kB / 488.5 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006791/0.1177, allocations: 0.6258 MB / 489.1 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00242/0.1202, allocations: 1.771 MB / 490.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.1202, allocations: 4 kB / 490.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1202, allocations: 0 / 490.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.055e-05/0.1203, 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.006475/0.1267, allocations: 1.835 MB / 492.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/0.1268, allocations: 8.031 kB / 492.7 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000295/0.1271, allocations: 156.6 kB / 492.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002711/0.1298, allocations: 383.8 kB / 493.3 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001859/0.1317, allocations: 0.8246 MB / 494.1 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.577e-05/0.1318, allocations: 78 kB / 494.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001617/0.132, allocations: 104 kB / 494.3 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002136/0.1341, allocations: 1.13 MB / 495.4 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.905e-05/0.1342, allocations: 0 / 495.4 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/0.1343, allocations: 44 kB / 495.4 MB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.309e-05/0.1343, allocations: 24 kB / 495.5 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002055/0.1364, allocations: 0.9563 MB / 496.4 MB, free: 9.414 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006472/0.1429, allocations: 4.315 MB / 0.489 GB, free: 4.895 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002744/0.1456, allocations: 1.662 MB / 0.4906 GB, free: 3.008 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000691/0.1463, allocations: 315.2 kB / 0.4909 GB, free: 2.691 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001026/0.1465, allocations: 105.5 kB / 0.491 GB, free: 2.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008777/0.1474, allocations: 454.7 kB / 0.4915 GB, free: 2.098 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.294e-06/0.1474, allocations: 0 / 0.4915 GB, free: 2.098 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005856/0.1532, allocations: 1.549 MB / 0.493 GB, free: 0.5078 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00017/0.1534, allocations: 277.6 kB / 0.4932 GB, free: 180 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009333/0.1544, allocations: 0.6683 MB / 0.4939 GB, free: 15.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.197e-05/0.1544, allocations: 41.69 kB / 0.4939 GB, free: 15.45 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004487/0.1549, allocations: 0.5311 MB / 0.4944 GB, free: 14.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002019/0.1551, allocations: 222.2 kB / 0.4947 GB, free: 14.69 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002978/0.1554, allocations: 186.5 kB / 0.4948 GB, free: 14.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002076/0.1556, allocations: 390.8 kB / 0.4952 GB, free: 14.11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006731/0.1563, allocations: 285.8 kB / 0.4955 GB, free: 13.83 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008823/0.1572, allocations: 0.5363 MB / 0.496 GB, free: 13.19 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001579/0.1588, allocations: 0.9216 MB / 0.4969 GB, free: 12.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.1588, allocations: 4 kB / 0.4969 GB, free: 12.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002281/0.1611, allocations: 1.071 MB / 0.4979 GB, free: 11.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.753e-05/0.1611, allocations: 67.39 kB / 0.498 GB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/0.1612, allocations: 4 kB / 0.498 GB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004754/0.1616, allocations: 101 kB / 0.4981 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008561/0.1625, allocations: 215.6 kB / 0.4983 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001643/0.1642, allocations: 1.578 MB / 0.4999 GB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007329/0.1649, allocations: 107.5 kB / 0.5 GB, free: 8.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.341e-05/0.165, allocations: 43.98 kB / 0.5 GB, free: 8.777 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.0004873/0.1655, allocations: 347.5 kB / 0.5003 GB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.1657, allocations: 91.38 kB / 0.5004 GB, free: 8.324 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002047/0.1677, allocations: 0.9091 MB / 0.5013 GB, free: 7.391 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.1677, allocations: 8 kB / 0.5013 GB, free: 7.383 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.215e-06/0.1677, allocations: 0 / 0.5013 GB, free: 7.383 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.1678, allocations: 3.984 kB / 0.5013 GB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005973/0.1737, allocations: 2.211 MB / 0.5035 GB, free: 5.086 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.1738, allocations: 4 kB / 0.5035 GB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003558/0.1741, allocations: 87.89 kB / 0.5036 GB, free: 4.996 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008906/0.175, allocations: 334.3 kB / 0.5039 GB, free: 4.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.439e-05/0.1751, allocations: 27.97 kB / 0.5039 GB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001427/0.1765, allocations: 0.8859 MB / 0.5048 GB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.1765, allocations: 7.875 kB / 0.5048 GB, free: 3.707 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005324/0.1819, allocations: 1.635 MB / 0.5064 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000357/0.1822, allocations: 220.4 kB / 0.5066 GB, free: 1.793 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001315/0.1824, allocations: 16 kB / 0.5066 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005684/0.183, allocations: 51.95 kB / 0.5067 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.995e-05/0.1831, allocations: 40.39 kB / 0.5067 GB, free: 1.688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.616e-05/0.1831, allocations: 31.97 kB / 0.5067 GB, free: 1.656 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006303/0.1838, allocations: 463 kB / 0.5072 GB, free: 1.207 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1838, allocations: 0 / 0.5072 GB, free: 1.207 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009314/0.1847, allocations: 319.2 kB / 0.5075 GB, free: 0.8945 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.1918/0.3765, allocations: 2.745 MB / 0.5102 GB, free: 45.22 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002043/0.3786, allocations: 0.9626 MB / 0.5111 GB, free: 44.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.3786, allocations: 0 / 0.5111 GB, free: 44.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008575/0.3795, allocations: 488.9 kB / 0.5116 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.0009505/0.3804, allocations: 180.3 kB / 0.5117 GB, free: 44.83 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00992/0.3904, allocations: 7.004 MB / 0.5186 GB, free: 41.28 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004455/0.3909, allocations: 1.006 MB / 0.5196 GB, free: 40.56 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004422/0.3913, allocations: 118.7 kB / 0.5197 GB, free: 40.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004265/0.3917, allocations: 394.2 kB / 0.52 GB, free: 40.24 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3917, allocations: 0.5938 kB / 0.52 GB, free: 40.24 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06895/0.4607, allocations: 20.64 MB / 0.5402 GB, free: 28.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.61/16.07, allocations: 16.61 kB / 0.5402 GB, free: 28.48 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)