Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004.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) Ignoring simflag -noemit -cpu=() since it seems broken on HelloWorld Running command: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160626_to_20161004",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160626_to_20161004",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.03219/0.03219, allocations: 5.395 MB / 21.03 MB, free: 1.633 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.006245/0.006245, allocations: 87.64 kB / 23.02 MB, free: 0.8086 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.001041/0.001041, allocations: 194.8 kB / 25.14 MB, free: 200 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.229/1.229, allocations: 222.9 MB / 250 MB, free: 8.441 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008938/0.008938, allocations: 2.329 MB / 303.7 MB, free: 6.488 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 103.8 kB / 422.7 MB, free: 19.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07482/0.07648, allocations: 51.21 MB / 473.9 MB, free: 244 kB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004): time 0.007755/0.08427, allocations: 6.859 MB / 480.7 MB, free: 9.344 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00572/0.09002, allocations: 3.932 MB / 484.7 MB, free: 5.398 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007691/0.09082, allocations: 23.94 kB / 484.7 MB, free: 5.375 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002842/0.09369, allocations: 1.163 MB / 485.9 MB, free: 4.211 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002103/0.09581, allocations: 0.8506 MB / 486.7 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00172/0.09754, allocations: 0.5537 MB / 487.3 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00166/0.09921, allocations: 1.417 MB / 488.7 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001225/0.1004, allocations: 1.013 MB / 489.7 MB, free: 352 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005953/0.1011, allocations: 0.5604 MB / 490.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007531/0.1018, allocations: 0.6847 MB / 490.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001629/0.102, allocations: 144 kB / 491.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007429/0.1027, allocations: 435.7 kB / 491.5 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002342/0.103, allocations: 307 kB / 491.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004905/0.1035, allocations: 0.6492 MB / 492.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00169/0.1052, allocations: 1.803 MB / 494.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1052, allocations: 0 / 494.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1052, allocations: 0 / 494.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.806e-05/0.1052, allocations: 0 / 494.2 MB, free: 11.77 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.003668/0.1089, allocations: 1.798 MB / 496 MB, free: 9.902 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.1089, allocations: 8.031 kB / 496.1 MB, free: 9.895 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001731/0.1091, allocations: 164.9 kB / 496.2 MB, free: 9.723 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001987/0.1111, allocations: 383.1 kB / 496.6 MB, free: 9.348 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001609/0.1127, allocations: 0.8319 MB / 497.4 MB, free: 8.473 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.982e-05/0.1128, allocations: 78.08 kB / 497.5 MB, free: 8.395 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000144/0.113, allocations: 112 kB / 497.6 MB, free: 8.285 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001879/0.1149, allocations: 1.169 MB / 498.8 MB, free: 7.055 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.635e-05/0.1149, allocations: 3.938 kB / 498.8 MB, free: 7.051 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.572e-05/0.115, allocations: 48 kB / 498.8 MB, free: 7.004 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.944e-05/0.115, allocations: 24 kB / 498.9 MB, free: 6.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001937/0.117, allocations: 1.066 MB / 499.9 MB, free: 5.914 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005603/0.1226, allocations: 4.353 MB / 0.4924 GB, free: 1.359 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002478/0.1251, allocations: 1.732 MB / 0.4941 GB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005981/0.1257, allocations: 327.2 kB / 0.4945 GB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.135e-05/0.1258, allocations: 93.66 kB / 0.4945 GB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007831/0.1266, allocations: 461.8 kB / 0.495 GB, free: 14.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=69): time 2.194e-06/0.1266, allocations: 0 / 0.495 GB, free: 14.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=69): time 0.00526/0.1319, allocations: 1.596 MB / 0.4965 GB, free: 12.86 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.132, allocations: 226.2 kB / 0.4968 GB, free: 12.59 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007154/0.1327, allocations: 0.6525 MB / 0.4974 GB, free: 11.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.743e-05/0.1328, allocations: 41.7 kB / 0.4974 GB, free: 11.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000331/0.1331, allocations: 0.5257 MB / 0.4979 GB, free: 11.35 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001694/0.1333, allocations: 232.8 kB / 0.4982 GB, free: 11.12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002697/0.1335, allocations: 182.5 kB / 0.4983 GB, free: 10.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.1337, allocations: 390.8 kB / 0.4987 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005991/0.1343, allocations: 293.8 kB / 0.499 GB, free: 10.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007637/0.1351, allocations: 0.5347 MB / 0.4995 GB, free: 9.617 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001395/0.1365, allocations: 0.9361 MB / 0.5004 GB, free: 8.562 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.1365, allocations: 4 kB / 0.5004 GB, free: 8.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002059/0.1386, allocations: 1.114 MB / 0.5015 GB, free: 7.422 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.378e-05/0.1387, allocations: 63.41 kB / 0.5016 GB, free: 7.348 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.1387, allocations: 8 kB / 0.5016 GB, free: 7.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000469/0.1392, allocations: 92.94 kB / 0.5017 GB, free: 7.246 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007986/0.14, allocations: 227.6 kB / 0.5019 GB, free: 7.023 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001397/0.1414, allocations: 1.581 MB / 0.5034 GB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006412/0.142, allocations: 111 kB / 0.5035 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.666e-05/0.1421, allocations: 43.98 kB / 0.5036 GB, free: 5.141 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.0004639/0.1426, allocations: 347.1 kB / 0.5039 GB, free: 4.781 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001299/0.1427, allocations: 83.09 kB / 0.504 GB, free: 4.699 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001959/0.1447, allocations: 1.003 MB / 0.505 GB, free: 3.668 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.1447, allocations: 8 kB / 0.505 GB, free: 3.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.1447, allocations: 0 / 0.505 GB, free: 3.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.1447, allocations: 7.922 kB / 0.505 GB, free: 3.652 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00552/0.1502, allocations: 2.302 MB / 0.5072 GB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.1503, allocations: 3.984 kB / 0.5072 GB, free: 1.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003499/0.1506, allocations: 95.89 kB / 0.5073 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00077/0.1514, allocations: 334.2 kB / 0.5077 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.747e-05/0.1515, allocations: 27.97 kB / 0.5077 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1727/0.3242, allocations: 0.8913 MB / 0.5086 GB, free: 46.25 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.3242, allocations: 1.938 kB / 0.5086 GB, free: 46.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002741/0.327, allocations: 1.406 MB / 0.5099 GB, free: 46.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003234/0.3273, allocations: 223.5 kB / 0.5101 GB, free: 45.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001177/0.3274, allocations: 24.73 kB / 0.5102 GB, free: 45.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005264/0.328, allocations: 45.38 kB / 0.5102 GB, free: 45.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/0.3281, allocations: 41.67 kB / 0.5102 GB, free: 45.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.959e-05/0.3282, allocations: 30.97 kB / 0.5103 GB, free: 45.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005776/0.3288, allocations: 458.3 kB / 0.5107 GB, free: 45.83 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3288, allocations: 0 / 0.5107 GB, free: 45.83 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008765/0.3297, allocations: 320.3 kB / 0.511 GB, free: 45.83 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.003804/0.3335, allocations: 2.513 MB / 0.5135 GB, free: 44.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001682/0.3352, allocations: 0.9944 MB / 0.5144 GB, free: 44.39 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3352, allocations: 0 / 0.5144 GB, free: 44.39 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007973/0.336, allocations: 0.4924 MB / 0.5149 GB, free: 44.14 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007317/0.3367, allocations: 154.1 kB / 0.5151 GB, free: 44.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01004/0.3468, allocations: 7.061 MB / 0.522 GB, free: 40.19 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005058/0.3473, allocations: 1.019 MB / 0.523 GB, free: 39.47 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004793/0.3478, allocations: 129 kB / 0.5231 GB, free: 39.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004329/0.3482, allocations: 398.5 kB / 0.5235 GB, free: 39.14 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3483, allocations: 4 kB / 0.5235 GB, free: 39.13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0392/0.3875, allocations: 20.88 MB / 0.5439 GB, free: 25.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15/15.39, allocations: 8.625 kB / 0.5439 GB, free: 25.18 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160626_to_20161004_fmu --startTime=0 --stopTime=5.8752e+06 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160626_to_20161004.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004.pipe 2>&1)