Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.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_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704",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.04612/0.04612, allocations: 5.396 MB / 21.03 MB, free: 1.637 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.008173/0.008173, allocations: 102.4 kB / 23.02 MB, free: 0.8242 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.001223/0.001223, allocations: 188.2 kB / 25.14 MB, free: 220 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.283/1.283, allocations: 222.9 MB / 250 MB, free: 8.449 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009565/0.009565, allocations: 2.32 MB / 303.7 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00169/0.00169, allocations: 95.86 kB / 419.1 MB, free: 22.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08442/0.08612, allocations: 51.21 MB / 470.4 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704): time 0.008033/0.09419, allocations: 6.845 MB / 477.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006457/0.1007, allocations: 3.951 MB / 481.2 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009393/0.1017, allocations: 16 kB / 481.2 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003038/0.1047, allocations: 1.158 MB / 482.3 MB, free: 7.602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002161/0.1069, allocations: 0.8609 MB / 483.2 MB, free: 6.738 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001804/0.1087, allocations: 0.5438 MB / 483.7 MB, free: 6.199 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001773/0.1105, allocations: 1.413 MB / 485.1 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00155/0.1121, allocations: 1.022 MB / 486.2 MB, free: 3.734 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008035/0.1129, allocations: 0.5565 MB / 486.7 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001045/0.1139, allocations: 0.6926 MB / 487.4 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000309/0.1143, allocations: 144 kB / 487.6 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009727/0.1152, allocations: 439.6 kB / 488 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003293/0.1156, allocations: 307 kB / 488.3 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008036/0.1164, allocations: 0.6375 MB / 488.9 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002232/0.1186, allocations: 1.803 MB / 490.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1186, allocations: 0 / 490.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1187, allocations: 0 / 490.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.713e-05/0.1187, allocations: 0 / 490.7 MB, free: 15.16 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.004571/0.1233, allocations: 1.81 MB / 492.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.1233, allocations: 8.031 kB / 492.5 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002341/0.1236, allocations: 160.9 kB / 492.7 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002158/0.1257, allocations: 379.1 kB / 493.1 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001882/0.1276, allocations: 0.832 MB / 493.9 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.308e-05/0.1277, allocations: 82.08 kB / 494 MB, free: 11.78 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001535/0.1279, allocations: 100 kB / 494.1 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002054/0.13, allocations: 1.177 MB / 495.3 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.836e-05/0.13, allocations: 4 kB / 495.3 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.9e-05/0.1301, allocations: 40 kB / 495.3 MB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.023e-05/0.1301, allocations: 28 kB / 495.3 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002045/0.1322, allocations: 1.07 MB / 496.4 MB, free: 9.305 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006525/0.1387, allocations: 4.341 MB / 0.489 GB, free: 4.762 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002568/0.1413, allocations: 1.74 MB / 0.4907 GB, free: 2.809 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006784/0.142, allocations: 329.3 kB / 0.491 GB, free: 2.484 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001004/0.1421, allocations: 101.6 kB / 0.4911 GB, free: 2.367 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008398/0.143, allocations: 461.7 kB / 0.4916 GB, free: 1.887 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.625e-06/0.143, allocations: 0 / 0.4916 GB, free: 1.887 MB / 366.1 MB Notification: Performance of matching and sorting (n=69): time 0.006092/0.1491, allocations: 1.6 MB / 0.4931 GB, free: 252 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001358/0.1492, allocations: 222.2 kB / 0.4933 GB, free: 15.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009194/0.1502, allocations: 0.6524 MB / 0.494 GB, free: 15.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.704e-05/0.1503, allocations: 49.69 kB / 0.494 GB, free: 15.26 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003838/0.1506, allocations: 0.5063 MB / 0.4945 GB, free: 14.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002112/0.1509, allocations: 236.7 kB / 0.4947 GB, free: 14.51 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002827/0.1512, allocations: 186.5 kB / 0.4949 GB, free: 14.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.1513, allocations: 386.8 kB / 0.4953 GB, free: 13.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006699/0.152, allocations: 297.8 kB / 0.4956 GB, free: 13.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007987/0.1528, allocations: 0.5348 MB / 0.4961 GB, free: 13.01 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001502/0.1543, allocations: 0.9399 MB / 0.497 GB, free: 11.95 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-06/0.1543, allocations: 4 kB / 0.497 GB, free: 11.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002365/0.1567, allocations: 1.114 MB / 0.4981 GB, free: 10.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.636e-05/0.1568, allocations: 63.41 kB / 0.4982 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.652e-05/0.1568, allocations: 8 kB / 0.4982 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005312/0.1573, allocations: 93 kB / 0.4982 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009045/0.1583, allocations: 223.6 kB / 0.4985 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001575/0.1599, allocations: 1.581 MB / 0.5 GB, free: 8.684 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008742/0.1607, allocations: 111.2 kB / 0.5001 GB, free: 8.574 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.931e-05/0.1608, allocations: 43.98 kB / 0.5002 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.0005385/0.1614, allocations: 347.1 kB / 0.5005 GB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002264/0.1616, allocations: 79.06 kB / 0.5006 GB, free: 8.094 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002164/0.1638, allocations: 1.011 MB / 0.5015 GB, free: 7.055 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.084e-06/0.1638, allocations: 4 kB / 0.5016 GB, free: 7.051 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.1638, allocations: 4 kB / 0.5016 GB, free: 7.047 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.1638, allocations: 3.984 kB / 0.5016 GB, free: 7.043 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006595/0.1704, allocations: 2.306 MB / 0.5038 GB, free: 4.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.176e-06/0.1705, allocations: 4 kB / 0.5038 GB, free: 4.656 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004048/0.1709, allocations: 95.89 kB / 0.5039 GB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008622/0.1718, allocations: 334.2 kB / 0.5042 GB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.416e-05/0.1719, allocations: 23.92 kB / 0.5042 GB, free: 4.203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001369/0.1732, allocations: 0.8935 MB / 0.5051 GB, free: 3.277 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.187e-06/0.1733, allocations: 4.031 kB / 0.5051 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002843/0.1761, allocations: 1.402 MB / 0.5065 GB, free: 1.832 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003918/0.1765, allocations: 228 kB / 0.5067 GB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001837/0.1767, allocations: 24.05 kB / 0.5067 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000625/0.1773, allocations: 47.97 kB / 0.5068 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.985e-05/0.1774, allocations: 40.5 kB / 0.5068 GB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.33e-05/0.1775, allocations: 39.91 kB / 0.5069 GB, free: 1.438 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000615/0.1781, allocations: 451 kB / 0.5073 GB, free: 1.004 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1782, allocations: 0 / 0.5073 GB, free: 1.004 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00102/0.1792, allocations: 326.9 kB / 0.5076 GB, free: 0.6836 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.1987/0.3779, allocations: 2.5 MB / 0.51 GB, free: 45.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002121/0.3801, allocations: 0.9934 MB / 0.511 GB, free: 45.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.3801, allocations: 1 kB / 0.511 GB, free: 45.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008763/0.381, allocations: 0.4909 MB / 0.5115 GB, free: 45.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009437/0.382, allocations: 160.6 kB / 0.5116 GB, free: 45.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01128/0.3933, allocations: 7.041 MB / 0.5185 GB, free: 41.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006347/0.3939, allocations: 1.02 MB / 0.5195 GB, free: 40.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005915/0.3945, allocations: 129.3 kB / 0.5196 GB, free: 40.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005032/0.395, allocations: 403.6 kB / 0.52 GB, free: 40.59 MB / 382.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3951, allocations: 0 / 0.52 GB, free: 40.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04657/0.4416, allocations: 20.87 MB / 0.5404 GB, free: 28.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.04/15.48, allocations: 10.95 kB / 0.5404 GB, free: 28.53 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.pipe 2>&1)