Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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_Comax_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_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.03468/0.03468, allocations: 5.4 MB / 21.04 MB, free: 1.16 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.001202/0.001202, allocations: 100.9 kB / 23.03 MB, free: 0.7188 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.001227/0.001227, allocations: 193.9 kB / 25.15 MB, free: 28 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.489/1.489, allocations: 222.9 MB / 250 MB, free: 8.422 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009899/0.009899, allocations: 2.332 MB / 303.7 MB, free: 6.48 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00266/0.00266, allocations: 99.83 kB / 419.1 MB, free: 22.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08723/0.08991, allocations: 51.2 MB / 470.4 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704): time 0.008883/0.09883, allocations: 6.905 MB / 477.3 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006643/0.1055, allocations: 4.017 MB / 481.3 MB, free: 8.691 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006358/0.1062, allocations: 27.94 kB / 481.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002694/0.1089, allocations: 1.166 MB / 482.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001969/0.1109, allocations: 0.8817 MB / 483.3 MB, free: 6.609 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001711/0.1126, allocations: 0.605 MB / 484 MB, free: 6.012 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00159/0.1142, allocations: 1.421 MB / 485.4 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001444/0.1157, allocations: 1.013 MB / 486.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007206/0.1164, allocations: 0.5642 MB / 487 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00092/0.1173, allocations: 0.6847 MB / 487.6 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001963/0.1175, allocations: 136 kB / 487.8 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008493/0.1184, allocations: 435.6 kB / 488.2 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000278/0.1187, allocations: 302.9 kB / 488.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005946/0.1193, allocations: 0.6258 MB / 489.1 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00207/0.1214, allocations: 1.775 MB / 490.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.1214, allocations: 0 / 490.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1214, allocations: 0 / 490.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.362e-05/0.1214, allocations: 0 / 490.9 MB, free: 15.02 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.004215/0.1256, allocations: 1.828 MB / 492.7 MB, free: 13.13 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.1257, allocations: 16.03 kB / 492.7 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001889/0.1259, allocations: 156.6 kB / 492.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002184/0.1281, allocations: 379.8 kB / 493.3 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001804/0.1299, allocations: 0.8363 MB / 494.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.38e-05/0.13, allocations: 74 kB / 494.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001626/0.1301, allocations: 100 kB / 494.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002036/0.1322, allocations: 1.13 MB / 495.4 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.854e-05/0.1322, allocations: 0 / 495.4 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001053/0.1323, allocations: 44 kB / 495.4 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.619e-05/0.1324, allocations: 31.94 kB / 495.5 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002105/0.1345, allocations: 0.9525 MB / 496.4 MB, free: 9.32 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006522/0.141, allocations: 4.307 MB / 0.489 GB, free: 4.809 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002809/0.1438, allocations: 1.666 MB / 0.4906 GB, free: 2.918 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006909/0.1445, allocations: 315.9 kB / 0.4909 GB, free: 2.598 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001091/0.1447, allocations: 93.47 kB / 0.491 GB, free: 2.488 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009116/0.1456, allocations: 450.7 kB / 0.4914 GB, free: 2.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 4.548e-06/0.1456, allocations: 0 / 0.4914 GB, free: 2.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.00582/0.1514, allocations: 1.56 MB / 0.493 GB, free: 428 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001661/0.1516, allocations: 277.6 kB / 0.4932 GB, free: 88 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009174/0.1525, allocations: 0.6643 MB / 0.4939 GB, free: 15.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.28e-05/0.1526, allocations: 41.7 kB / 0.4939 GB, free: 15.36 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004295/0.153, allocations: 0.5272 MB / 0.4944 GB, free: 14.83 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001917/0.1532, allocations: 226.2 kB / 0.4946 GB, free: 14.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002926/0.1535, allocations: 190.6 kB / 0.4948 GB, free: 14.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002014/0.1538, allocations: 390.7 kB / 0.4952 GB, free: 14.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006612/0.1544, allocations: 285.8 kB / 0.4955 GB, free: 13.74 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008658/0.1553, allocations: 0.5402 MB / 0.496 GB, free: 13.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001523/0.1568, allocations: 0.9176 MB / 0.4969 GB, free: 12.05 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.1568, allocations: 256 / 0.4969 GB, free: 12.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002287/0.1591, allocations: 1.079 MB / 0.498 GB, free: 10.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.074e-05/0.1592, allocations: 67.39 kB / 0.498 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.1592, allocations: 8 kB / 0.498 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004642/0.1597, allocations: 80.78 kB / 0.4981 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008496/0.1606, allocations: 227.6 kB / 0.4983 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001689/0.1623, allocations: 1.578 MB / 0.4999 GB, free: 8.836 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007251/0.163, allocations: 103.4 kB / 0.5 GB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.549e-05/0.1631, allocations: 52.06 kB / 0.5 GB, free: 8.684 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.0004894/0.1636, allocations: 339.5 kB / 0.5003 GB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.1637, allocations: 95.36 kB / 0.5004 GB, free: 8.234 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002007/0.1658, allocations: 0.909 MB / 0.5013 GB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.1658, allocations: 8 kB / 0.5013 GB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.574e-06/0.1658, allocations: 0 / 0.5013 GB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/0.1658, allocations: 3.984 kB / 0.5013 GB, free: 7.289 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005859/0.1717, allocations: 2.215 MB / 0.5035 GB, free: 4.992 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.1717, allocations: 0 / 0.5035 GB, free: 4.992 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003512/0.172, allocations: 83.89 kB / 0.5036 GB, free: 4.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008429/0.1729, allocations: 334.2 kB / 0.5039 GB, free: 4.574 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.131e-05/0.173, allocations: 28.03 kB / 0.5039 GB, free: 4.547 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001369/0.1743, allocations: 0.8897 MB / 0.5048 GB, free: 3.625 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.1744, allocations: 8 kB / 0.5048 GB, free: 3.617 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005275/0.1796, allocations: 1.639 MB / 0.5064 GB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003281/0.18, allocations: 220.4 kB / 0.5066 GB, free: 1.699 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001345/0.1801, allocations: 20 kB / 0.5066 GB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005705/0.1807, allocations: 51.95 kB / 0.5067 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.782e-05/0.1808, allocations: 32.39 kB / 0.5067 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.242e-05/0.1809, allocations: 39.97 kB / 0.5067 GB, free: 1.559 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006673/0.1816, allocations: 459 kB / 0.5072 GB, free: 1.113 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1816, allocations: 3.938 kB / 0.5072 GB, free: 1.109 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00101/0.1826, allocations: 327.1 kB / 0.5075 GB, free: 0.7891 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.1837/0.3663, allocations: 2.735 MB / 0.5102 GB, free: 45.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001932/0.3683, allocations: 0.9646 MB / 0.5111 GB, free: 45.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.3683, allocations: 0 / 0.5111 GB, free: 45.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008549/0.3691, allocations: 487.8 kB / 0.5116 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.00103/0.3702, allocations: 176.5 kB / 0.5117 GB, free: 45.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01073/0.3809, allocations: 6.998 MB / 0.5186 GB, free: 41.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005583/0.3815, allocations: 1.009 MB / 0.5196 GB, free: 40.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005096/0.382, allocations: 118.2 kB / 0.5197 GB, free: 40.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004068/0.3825, allocations: 392.8 kB / 0.52 GB, free: 40.6 MB / 382.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3825, allocations: 0 / 0.52 GB, free: 40.6 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05323/0.4357, allocations: 20.63 MB / 0.5402 GB, free: 28.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.64/16.08, allocations: 8 kB / 0.5402 GB, free: 28.79 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe 2>&1)