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.04857/0.04857, allocations: 5.399 MB / 21.03 MB, free: 1.164 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.001087/0.001087, allocations: 103.6 kB / 23.03 MB, free: 0.7227 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.001157/0.001158, allocations: 202.1 kB / 25.16 MB, free: 32 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.292/1.292, 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.009374/0.009374, allocations: 2.318 MB / 303.7 MB, free: 6.438 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002494/0.002494, allocations: 100.2 kB / 419.2 MB, free: 22.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07879/0.08129, allocations: 51.21 MB / 470.4 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808): time 0.00815/0.08947, allocations: 6.851 MB / 477.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005659/0.09515, allocations: 3.947 MB / 481.2 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003557/0.09554, allocations: 16 kB / 481.2 MB, free: 8.848 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002554/0.0981, allocations: 1.155 MB / 482.3 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001679/0.09979, allocations: 0.862 MB / 483.2 MB, free: 6.824 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001404/0.1012, allocations: 0.5514 MB / 483.7 MB, free: 6.277 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001409/0.1026, allocations: 1.409 MB / 485.2 MB, free: 4.863 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001302/0.1039, allocations: 1.017 MB / 486.2 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006138/0.1046, allocations: 0.5604 MB / 486.7 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008182/0.1054, allocations: 0.6848 MB / 487.4 MB, free: 2.566 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001926/0.1056, allocations: 144 kB / 487.6 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007284/0.1063, allocations: 435.7 kB / 488 MB, free: 2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002777/0.1066, allocations: 310.9 kB / 488.3 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006005/0.1072, allocations: 0.6375 MB / 488.9 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001994/0.1092, allocations: 1.81 MB / 490.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1092, allocations: 4 kB / 490.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1092, allocations: 0 / 490.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.694e-05/0.1093, allocations: 0 / 490.7 MB, free: 15.23 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.003937/0.1132, allocations: 1.847 MB / 492.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.1133, allocations: 8.031 kB / 492.6 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001899/0.1135, allocations: 156.9 kB / 492.7 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002056/0.1155, allocations: 387.8 kB / 493.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00166/0.1172, allocations: 0.8481 MB / 494 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.011e-05/0.1173, allocations: 78.08 kB / 494 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001619/0.1174, allocations: 108 kB / 494.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002004/0.1195, allocations: 1.176 MB / 495.3 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.902e-05/0.1195, allocations: 4 kB / 495.3 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.796e-05/0.1196, allocations: 44 kB / 495.4 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.37e-05/0.1196, allocations: 24 kB / 495.4 MB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002048/0.1217, allocations: 1.07 MB / 496.5 MB, free: 9.316 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006096/0.1278, allocations: 4.346 MB / 0.4891 GB, free: 4.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002747/0.1305, allocations: 1.744 MB / 0.4908 GB, free: 2.812 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006563/0.1312, allocations: 329.3 kB / 0.4911 GB, free: 2.488 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.712e-05/0.1313, allocations: 93.66 kB / 0.4912 GB, free: 2.379 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008374/0.1322, allocations: 465.7 kB / 0.4916 GB, free: 1.895 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 1.834e-06/0.1322, allocations: 0 / 0.4916 GB, free: 1.895 MB / 366.1 MB Notification: Performance of matching and sorting (n=69): time 0.005463/0.1376, allocations: 1.601 MB / 0.4932 GB, free: 260 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000137/0.1378, allocations: 222.1 kB / 0.4934 GB, free: 15.99 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007977/0.1386, allocations: 0.6525 MB / 0.494 GB, free: 15.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.368e-05/0.1387, allocations: 45.69 kB / 0.4941 GB, free: 15.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003879/0.1391, allocations: 0.535 MB / 0.4946 GB, free: 14.73 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001902/0.1393, allocations: 246 kB / 0.4948 GB, free: 14.49 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002822/0.1395, allocations: 186.5 kB / 0.495 GB, free: 14.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001884/0.1397, allocations: 390.8 kB / 0.4954 GB, free: 13.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006336/0.1404, allocations: 297.8 kB / 0.4957 GB, free: 13.62 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008228/0.1412, allocations: 0.5309 MB / 0.4962 GB, free: 12.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001526/0.1427, allocations: 0.9399 MB / 0.4971 GB, free: 11.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.776e-06/0.1428, allocations: 4 kB / 0.4971 GB, free: 11.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002159/0.1449, allocations: 1.118 MB / 0.4982 GB, free: 10.78 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.503e-05/0.145, allocations: 65.75 kB / 0.4983 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.145, allocations: 8 kB / 0.4983 GB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004526/0.1455, allocations: 89 kB / 0.4984 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008152/0.1463, allocations: 223.6 kB / 0.4986 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001544/0.1479, allocations: 1.578 MB / 0.5001 GB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000629/0.1485, allocations: 115.5 kB / 0.5002 GB, free: 8.551 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.124e-05/0.1486, allocations: 43.98 kB / 0.5003 GB, free: 8.508 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.0003985/0.149, allocations: 343.1 kB / 0.5006 GB, free: 8.152 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001343/0.1491, allocations: 83.48 kB / 0.5007 GB, free: 8.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002044/0.1512, allocations: 1.018 MB / 0.5017 GB, free: 7.023 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.363e-06/0.1512, allocations: 8 kB / 0.5017 GB, free: 7.016 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.1512, allocations: 0 / 0.5017 GB, free: 7.016 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.1512, allocations: 3.984 kB / 0.5017 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005702/0.1569, allocations: 2.302 MB / 0.5039 GB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.1569, allocations: 0 / 0.5039 GB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003657/0.1573, allocations: 95.89 kB / 0.504 GB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008083/0.1581, allocations: 330.3 kB / 0.5043 GB, free: 4.207 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.503e-05/0.1582, allocations: 23.98 kB / 0.5044 GB, free: 4.184 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001293/0.1595, allocations: 0.9053 MB / 0.5052 GB, free: 3.246 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1595, allocations: 0 / 0.5052 GB, free: 3.246 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002621/0.1621, allocations: 1.406 MB / 0.5066 GB, free: 1.801 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002852/0.1624, allocations: 236.3 kB / 0.5068 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001195/0.1626, allocations: 20 kB / 0.5069 GB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005118/0.1631, allocations: 43.97 kB / 0.5069 GB, free: 1.488 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.241e-05/0.1632, allocations: 44.5 kB / 0.5069 GB, free: 1.441 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-05/0.1632, allocations: 35.95 kB / 0.507 GB, free: 1.406 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005479/0.1638, allocations: 455 kB / 0.5074 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1638, allocations: 0 / 0.5074 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008206/0.1646, allocations: 327.1 kB / 0.5077 GB, free: 0.6484 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.1594/0.324, allocations: 2.504 MB / 0.5102 GB, free: 45.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001832/0.3259, allocations: 0.9913 MB / 0.5111 GB, free: 45.28 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.3259, allocations: 0 / 0.5111 GB, free: 45.28 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007753/0.3267, allocations: 0.4987 MB / 0.5116 GB, free: 45.15 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000788/0.3275, allocations: 162.7 kB / 0.5118 GB, free: 45.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009228/0.3367, allocations: 7.083 MB / 0.5187 GB, free: 41.53 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005123/0.3373, allocations: 1.018 MB / 0.5197 GB, free: 40.81 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003831/0.3376, allocations: 133.5 kB / 0.5198 GB, free: 40.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004339/0.3381, allocations: 397.9 kB / 0.5202 GB, free: 40.48 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3381, allocations: 0.5938 kB / 0.5202 GB, free: 40.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6741/1.012, allocations: 20.51 MB / 0.5402 GB, free: 28.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.15/17.16, allocations: 7.938 kB / 0.5402 GB, free: 28.79 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)