Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_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_Trina_Measurement_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_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.03222/0.03222, allocations: 5.47 MB / 21.15 MB, free: 1.145 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.001217/0.001217, allocations: 109.3 kB / 23.22 MB, free: 0.9883 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: 199.4 kB / 25.43 MB, free: 4.344 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 225.6 MB / 253.1 MB, free: 7.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009684/0.009684, allocations: 2.362 MB / 309.5 MB, free: 3.559 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002548/0.002548, allocations: 92.22 kB / 430.6 MB, free: 16.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09639/0.09894, allocations: 54.02 MB / 484.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808): time 0.008845/0.1078, allocations: 6.886 MB / 491.6 MB, free: 3.582 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006594/0.1144, allocations: 3.959 MB / 495.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007259/0.1151, allocations: 27.88 kB / 495.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00294/0.118, allocations: 1.174 MB / 496.7 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00235/0.1204, allocations: 0.8857 MB / 497.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001917/0.1223, allocations: 0.5365 MB / 498.1 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001878/0.1242, allocations: 1.413 MB / 499.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00141/0.1256, allocations: 0.7903 MB / 0.4886 GB, free: 10.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009054/0.1265, allocations: 0.5565 MB / 0.4892 GB, free: 10.19 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001317/0.1278, allocations: 0.6925 MB / 0.4898 GB, free: 9.492 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000256/0.1281, allocations: 148 kB / 0.49 GB, free: 9.348 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001226/0.1293, allocations: 435.7 kB / 0.4904 GB, free: 8.922 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003533/0.1297, allocations: 311 kB / 0.4907 GB, free: 8.617 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008163/0.1305, allocations: 0.6374 MB / 0.4913 GB, free: 7.977 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00254/0.133, allocations: 1.817 MB / 0.4931 GB, free: 6.152 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.133, allocations: 0 / 0.4931 GB, free: 6.152 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.133, allocations: 0 / 0.4931 GB, free: 6.152 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.534e-05/0.133, allocations: 0 / 0.4931 GB, free: 6.152 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: 269 * Number of variables: 269 Notification: Performance of Generate backend data structure: time 0.004112/0.1371, allocations: 1.839 MB / 0.4949 GB, free: 4.246 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.1372, allocations: 8.031 kB / 0.4949 GB, free: 4.238 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002033/0.1374, allocations: 164.8 kB / 0.495 GB, free: 4.066 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002074/0.1395, allocations: 383.8 kB / 0.4954 GB, free: 3.691 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001904/0.1414, allocations: 0.8404 MB / 0.4962 GB, free: 2.809 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.442e-05/0.1415, allocations: 78.08 kB / 0.4963 GB, free: 2.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001615/0.1416, allocations: 108 kB / 0.4964 GB, free: 2.625 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002098/0.1437, allocations: 1.169 MB / 0.4976 GB, free: 1.395 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.146e-05/0.1437, allocations: 3.984 kB / 0.4976 GB, free: 1.391 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.901e-05/0.1438, allocations: 48 kB / 0.4976 GB, free: 1.344 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.534e-05/0.1439, allocations: 24 kB / 0.4976 GB, free: 1.32 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00211/0.146, allocations: 1.066 MB / 0.4987 GB, free: 260 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006553/0.1525, allocations: 4.366 MB / 0.5029 GB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002714/0.1552, allocations: 1.666 MB / 0.5046 GB, free: 9.809 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000683/0.1559, allocations: 281.1 kB / 0.5048 GB, free: 9.531 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000103/0.156, allocations: 97.64 kB / 0.5049 GB, free: 9.418 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008734/0.1569, allocations: 465.8 kB / 0.5054 GB, free: 8.934 MB / 382.1 MB Notification: Performance of pre-optimization done (n=69): time 4.338e-06/0.1569, allocations: 7.922 kB / 0.5054 GB, free: 8.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=69): time 0.005899/0.1628, allocations: 1.577 MB / 0.5069 GB, free: 7.309 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001581/0.163, allocations: 226.1 kB / 0.5071 GB, free: 7.039 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008969/0.1639, allocations: 0.6525 MB / 0.5078 GB, free: 6.375 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.543e-05/0.1639, allocations: 37.7 kB / 0.5078 GB, free: 6.332 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004828/0.1644, allocations: 0.5389 MB / 0.5083 GB, free: 5.785 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002243/0.1646, allocations: 246 kB / 0.5086 GB, free: 5.543 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002913/0.1649, allocations: 190.5 kB / 0.5087 GB, free: 5.348 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002204/0.1651, allocations: 386.7 kB / 0.5091 GB, free: 4.961 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006603/0.1658, allocations: 301.8 kB / 0.5094 GB, free: 4.668 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008733/0.1667, allocations: 0.5309 MB / 0.5099 GB, free: 4.035 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001546/0.1682, allocations: 0.936 MB / 0.5108 GB, free: 2.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.1682, allocations: 4 kB / 0.5108 GB, free: 2.977 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002343/0.1706, allocations: 1.11 MB / 0.5119 GB, free: 1.844 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.176e-05/0.1706, allocations: 67.33 kB / 0.512 GB, free: 1.766 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.547e-05/0.1707, allocations: 12.28 kB / 0.512 GB, free: 1.754 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004925/0.1712, allocations: 88.72 kB / 0.5121 GB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008622/0.172, allocations: 219.6 kB / 0.5123 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.21/0.3821, allocations: 1.574 MB / 0.5138 GB, free: 36.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/0.3831, allocations: 109.5 kB / 0.5139 GB, free: 36.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.544e-05/0.3832, allocations: 45.33 kB / 0.514 GB, free: 36.62 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 21 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,$PRE.combiTimeTable.nextTimeEvent,$whenCondition3,writeCSV.sampleTrigger,$whenCondition2,mpTracker.sampleTrigger,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.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 (118): * Single equations (assignments): 115 * 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.0005537/0.3837, allocations: 343.2 kB / 0.5143 GB, free: 36.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001651/0.3839, allocations: 83.66 kB / 0.5144 GB, free: 36.45 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002186/0.3861, allocations: 0.9841 MB / 0.5153 GB, free: 36.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.3861, allocations: 10.03 kB / 0.5153 GB, free: 36.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3861, allocations: 0 / 0.5153 GB, free: 36.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.3861, allocations: 5.719 kB / 0.5154 GB, free: 36.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006088/0.3922, allocations: 2.27 MB / 0.5176 GB, free: 35.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.3922, allocations: 4.969 kB / 0.5176 GB, free: 35.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003858/0.3926, allocations: 100.2 kB / 0.5177 GB, free: 35.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000833/0.3934, allocations: 327.1 kB / 0.518 GB, free: 35.89 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.186e-05/0.3935, allocations: 29.75 kB / 0.518 GB, free: 35.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001201/0.3947, allocations: 0.896 MB / 0.5189 GB, free: 35.22 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.3947, allocations: 1.625 kB / 0.5189 GB, free: 35.22 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002512/0.3972, allocations: 1.37 MB / 0.5202 GB, free: 34.63 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003356/0.3975, allocations: 230.3 kB / 0.5204 GB, free: 34.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001255/0.3977, allocations: 23.34 kB / 0.5205 GB, free: 34.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005461/0.3982, allocations: 51.5 kB / 0.5205 GB, free: 34.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.709e-05/0.3983, allocations: 43.39 kB / 0.5206 GB, free: 34.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.885e-05/0.3984, allocations: 35.81 kB / 0.5206 GB, free: 34.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005933/0.399, allocations: 453.6 kB / 0.521 GB, free: 34.24 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.399, allocations: 0 / 0.521 GB, free: 34.24 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00105/0.4, allocations: 326.6 kB / 0.5213 GB, free: 34.18 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (voltageSource.pin_p.reference.gamma,converter.integrator.y,integrator.y) * Number of discrete variables: 12 ($whenCondition3,$whenCondition1,$whenCondition2,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled,writeCSV.sampleTrigger,writeCSV.firstTrigger) * Number of discrete states: 12 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition2,writeCSV.sampleTrigger) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.004559/0.4046, allocations: 2.494 MB / 0.5238 GB, free: 32.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001986/0.4066, allocations: 0.9497 MB / 0.5247 GB, free: 32.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.4066, allocations: 0.5312 kB / 0.5247 GB, free: 32.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008516/0.4074, allocations: 444 kB / 0.5251 GB, free: 32.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008689/0.4083, allocations: 140.5 kB / 0.5253 GB, free: 32.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/0.4189, allocations: 7.092 MB / 0.5322 GB, free: 28.1 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005389/0.4194, allocations: 1.02 MB / 0.5332 GB, free: 27.38 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005111/0.42, allocations: 129.5 kB / 0.5333 GB, free: 27.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004353/0.4204, allocations: 398 kB / 0.5337 GB, free: 27.05 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4204, allocations: 1.312 kB / 0.5337 GB, free: 27.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05005/0.4704, allocations: 20.63 MB / 0.5538 GB, free: 11.58 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.96/16.43, allocations: 11.91 kB / 0.5538 GB, free: 11.57 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.pipe 2>&1)