Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629.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_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160629",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160629",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.03028/0.03028, allocations: 5.398 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.001449/0.001449, allocations: 96.7 kB / 23.02 MB, free: 0.7734 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.001203/0.001203, allocations: 198.4 kB / 25.16 MB, free: 172 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.341/1.341, allocations: 222.9 MB / 250 MB, free: 8.398 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009904/0.009904, allocations: 2.321 MB / 303.7 MB, free: 6.465 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002574/0.002574, allocations: 99.84 kB / 419.2 MB, free: 22.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08997/0.09256, allocations: 51.21 MB / 470.4 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629): time 0.008813/0.1014, allocations: 6.843 MB / 477.2 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006295/0.1077, allocations: 3.939 MB / 481.1 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007255/0.1085, allocations: 20 kB / 481.2 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002887/0.1114, allocations: 1.173 MB / 482.3 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002018/0.1134, allocations: 0.8545 MB / 483.2 MB, free: 6.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001588/0.115, allocations: 0.5466 MB / 483.7 MB, free: 6.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001663/0.1167, allocations: 1.413 MB / 485.2 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001412/0.1181, allocations: 1.013 MB / 486.2 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006979/0.1188, allocations: 0.5604 MB / 486.7 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009707/0.1198, allocations: 0.6886 MB / 487.4 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002546/0.12, allocations: 144 kB / 487.6 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008146/0.1209, allocations: 435.6 kB / 488 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003105/0.1212, allocations: 307 kB / 488.3 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007247/0.1219, allocations: 0.6531 MB / 488.9 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00212/0.124, allocations: 1.806 MB / 490.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.1241, allocations: 0 / 490.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1241, allocations: 7.938 kB / 490.8 MB, free: 15.24 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.293e-05/0.1241, allocations: 0 / 490.8 MB, free: 15.24 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.004283/0.1284, allocations: 1.835 MB / 492.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.1284, allocations: 8.031 kB / 492.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002074/0.1287, allocations: 164.9 kB / 492.8 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002143/0.1308, allocations: 387.8 kB / 493.1 MB, free: 12.78 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001764/0.1326, allocations: 0.8364 MB / 494 MB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.312e-05/0.1327, allocations: 78.08 kB / 494 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001632/0.1328, allocations: 116 kB / 494.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002089/0.1349, allocations: 1.165 MB / 495.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.757e-05/0.135, allocations: 0 / 495.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001006/0.1351, allocations: 48 kB / 495.4 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.628e-05/0.1351, allocations: 24 kB / 495.4 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002294/0.1374, allocations: 1.07 MB / 496.5 MB, free: 9.344 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006354/0.1438, allocations: 4.354 MB / 0.4891 GB, free: 4.789 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002804/0.1466, allocations: 1.74 MB / 0.4908 GB, free: 2.836 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006946/0.1473, allocations: 325.3 kB / 0.4911 GB, free: 2.516 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001055/0.1474, allocations: 93.66 kB / 0.4912 GB, free: 2.406 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008575/0.1483, allocations: 469.7 kB / 0.4916 GB, free: 1.918 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 1.854e-06/0.1483, allocations: 0 / 0.4916 GB, free: 1.918 MB / 366.1 MB Notification: Performance of matching and sorting (n=69): time 0.005718/0.154, allocations: 1.593 MB / 0.4932 GB, free: 292 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001316/0.1542, allocations: 230.1 kB / 0.4934 GB, free: 12 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008362/0.155, allocations: 0.6486 MB / 0.494 GB, free: 15.35 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.662e-05/0.1551, allocations: 45.7 kB / 0.4941 GB, free: 15.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004041/0.1555, allocations: 0.5389 MB / 0.4946 GB, free: 14.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002017/0.1557, allocations: 246 kB / 0.4948 GB, free: 14.51 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002872/0.156, allocations: 186.5 kB / 0.495 GB, free: 14.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001913/0.1562, allocations: 390.8 kB / 0.4954 GB, free: 13.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006792/0.1569, allocations: 289.8 kB / 0.4957 GB, free: 13.65 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008697/0.1578, allocations: 0.5426 MB / 0.4962 GB, free: 13 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001584/0.1593, allocations: 0.936 MB / 0.4971 GB, free: 11.95 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.1594, allocations: 4 kB / 0.4971 GB, free: 11.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002276/0.1616, allocations: 1.114 MB / 0.4982 GB, free: 10.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.295e-05/0.1617, allocations: 63.41 kB / 0.4983 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.1617, allocations: 8 kB / 0.4983 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004595/0.1622, allocations: 89 kB / 0.4984 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008547/0.1631, allocations: 227.6 kB / 0.4986 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001577/0.1646, allocations: 1.578 MB / 0.5001 GB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006726/0.1653, allocations: 111.3 kB / 0.5002 GB, free: 8.578 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.886e-05/0.1654, allocations: 47.92 kB / 0.5003 GB, free: 8.531 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.0004177/0.1658, allocations: 339.1 kB / 0.5006 GB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001439/0.166, allocations: 87.55 kB / 0.5007 GB, free: 8.094 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002169/0.1682, allocations: 1.01 MB / 0.5017 GB, free: 7.055 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.1682, allocations: 8 kB / 0.5017 GB, free: 7.047 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-06/0.1682, allocations: 0 / 0.5017 GB, free: 7.047 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.1682, allocations: 3.984 kB / 0.5017 GB, free: 7.043 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006017/0.1742, allocations: 2.298 MB / 0.5039 GB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.1743, allocations: 11.98 kB / 0.5039 GB, free: 4.656 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003727/0.1746, allocations: 95.89 kB / 0.504 GB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008594/0.1755, allocations: 330.3 kB / 0.5043 GB, free: 4.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.483e-05/0.1756, allocations: 27.97 kB / 0.5044 GB, free: 4.203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001355/0.1769, allocations: 0.8975 MB / 0.5052 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.177, allocations: 0 / 0.5052 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002784/0.1798, allocations: 1.414 MB / 0.5066 GB, free: 1.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002944/0.1801, allocations: 232.3 kB / 0.5068 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001266/0.1802, allocations: 20 kB / 0.5069 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005362/0.1807, allocations: 47.95 kB / 0.5069 GB, free: 1.508 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.292e-05/0.1808, allocations: 44.52 kB / 0.5069 GB, free: 1.461 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.761e-05/0.1809, allocations: 31.97 kB / 0.507 GB, free: 1.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005609/0.1815, allocations: 455 kB / 0.5074 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1815, allocations: 3.938 kB / 0.5074 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008179/0.1823, allocations: 323.2 kB / 0.5077 GB, free: 0.6719 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.1679/0.3503, allocations: 2.504 MB / 0.5102 GB, free: 45.31 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001951/0.3522, allocations: 0.9946 MB / 0.5111 GB, free: 45.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.3523, allocations: 3.406 kB / 0.5111 GB, free: 45.07 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008075/0.3531, allocations: 0.4951 MB / 0.5116 GB, free: 44.94 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008248/0.3539, allocations: 159.8 kB / 0.5118 GB, free: 44.92 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009848/0.3638, allocations: 7.077 MB / 0.5187 GB, free: 41.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004829/0.3643, allocations: 1.022 MB / 0.5197 GB, free: 40.58 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004221/0.3647, allocations: 132.2 kB / 0.5198 GB, free: 40.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004129/0.3651, allocations: 397.1 kB / 0.5202 GB, free: 40.25 MB / 382.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3651, allocations: 0 / 0.5202 GB, free: 40.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2586/0.6237, allocations: 20.52 MB / 0.5402 GB, free: 28.56 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.11/16.74, allocations: 11.98 kB / 0.5402 GB, free: 28.55 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160629_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160629.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629.pipe 2>&1)