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.03393/0.03393, allocations: 5.394 MB / 20.89 MB, free: 1.406 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.006791/0.006791, allocations: 99 kB / 22.88 MB, free: 0.7891 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.001072/0.001072, allocations: 193 kB / 25 MB, free: 272 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 / 249.9 MB, free: 8.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009264/0.009264, allocations: 2.331 MB / 303.5 MB, free: 6.539 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001831/0.001831, allocations: 96.09 kB / 367.3 MB, free: 6.781 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1727/0.1746, allocations: 51.22 MB / 418.5 MB, free: 26.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629): time 0.006307/0.1809, allocations: 6.847 MB / 425.3 MB, free: 19.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004652/0.1856, allocations: 3.939 MB / 429.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007408/0.1863, allocations: 19.94 kB / 429.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002289/0.1886, allocations: 1.158 MB / 430.4 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001615/0.1903, allocations: 0.8614 MB / 431.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001351/0.1916, allocations: 0.5369 MB / 431.8 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001083/0.1927, allocations: 1.402 MB / 433.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001109/0.1938, allocations: 1.028 MB / 434.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004994/0.1944, allocations: 0.5526 MB / 434.8 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006578/0.195, allocations: 0.6848 MB / 435.5 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000187/0.1952, allocations: 140 kB / 435.6 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006309/0.1959, allocations: 435.6 kB / 436.1 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001885/0.1961, allocations: 314.9 kB / 436.4 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004576/0.1965, allocations: 0.6374 MB / 437 MB, free: 7.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001337/0.1979, allocations: 1.772 MB / 438.8 MB, free: 5.992 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1979, allocations: 4 kB / 438.8 MB, free: 5.988 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1979, allocations: 4 kB / 438.8 MB, free: 5.984 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.129e-05/0.1979, allocations: 0 / 438.8 MB, free: 5.984 MB / 302.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.003499/0.2014, allocations: 1.814 MB / 440.6 MB, free: 4.102 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.984e-05/0.2015, allocations: 8.031 kB / 440.6 MB, free: 4.094 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001427/0.2016, allocations: 160.9 kB / 440.8 MB, free: 3.926 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002007/0.2036, allocations: 383.1 kB / 441.1 MB, free: 3.551 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001415/0.205, allocations: 0.8203 MB / 442 MB, free: 2.684 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.883e-05/0.2051, allocations: 82.02 kB / 442 MB, free: 2.602 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.2052, allocations: 108 kB / 442.2 MB, free: 2.496 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001645/0.2069, allocations: 1.169 MB / 443.3 MB, free: 1.266 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.773e-05/0.2069, allocations: 0 / 443.3 MB, free: 1.266 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.859e-05/0.207, allocations: 48 kB / 443.4 MB, free: 1.219 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.207, allocations: 24 kB / 443.4 MB, free: 1.195 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0017/0.2087, allocations: 1.073 MB / 444.5 MB, free: 128 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00584/0.2146, allocations: 4.384 MB / 448.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002541/0.2172, allocations: 1.746 MB / 450.6 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006404/0.2178, allocations: 323.8 kB / 450.9 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.489e-05/0.2179, allocations: 97.66 kB / 451 MB, free: 9.145 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008117/0.2187, allocations: 465.6 kB / 451.5 MB, free: 8.664 MB / 318.1 MB Notification: Performance of pre-optimization done (n=69): time 2.134e-06/0.2187, allocations: 0 / 451.5 MB, free: 8.664 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.005586/0.2243, allocations: 1.592 MB / 453.1 MB, free: 7.031 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.2245, allocations: 222.2 kB / 453.3 MB, free: 6.766 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007864/0.2252, allocations: 0.6564 MB / 453.9 MB, free: 6.102 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.501e-05/0.2253, allocations: 45.69 kB / 454 MB, free: 6.051 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003878/0.2257, allocations: 0.518 MB / 454.5 MB, free: 5.523 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001918/0.2259, allocations: 232.7 kB / 454.7 MB, free: 5.293 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002671/0.2262, allocations: 182.5 kB / 454.9 MB, free: 5.109 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.2263, allocations: 390.8 kB / 455.3 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006409/0.227, allocations: 297.8 kB / 455.6 MB, free: 4.426 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007801/0.2278, allocations: 0.5309 MB / 456.1 MB, free: 3.793 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00143/0.2292, allocations: 0.9399 MB / 457 MB, free: 2.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/0.2292, allocations: 7.984 kB / 457 MB, free: 2.723 MB / 318.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002193/0.2314, allocations: 1.114 MB / 458.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.57e-05/0.2315, allocations: 66.2 kB / 458.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.2315, allocations: 8 kB / 458.2 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004646/0.232, allocations: 88.72 kB / 458.3 MB, free: 1.414 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000821/0.2328, allocations: 227.7 kB / 458.5 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001432/0.2342, allocations: 1.585 MB / 460.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007415/0.235, allocations: 103.1 kB / 460.2 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.561e-05/0.2351, allocations: 47.97 kB / 460.3 MB, free: 15.32 MB / 334.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.0004288/0.2355, allocations: 339.2 kB / 460.6 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001484/0.2357, allocations: 83.12 kB / 460.7 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002012/0.2377, allocations: 1.01 MB / 461.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.2377, allocations: 8 kB / 461.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.2377, allocations: 0 / 461.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.2377, allocations: 3.984 kB / 461.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005853/0.2436, allocations: 2.306 MB / 464 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.2436, allocations: 0 / 464 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003592/0.244, allocations: 99.83 kB / 464.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007816/0.2448, allocations: 334.3 kB / 464.4 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.529e-05/0.2448, allocations: 19.98 kB / 464.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001258/0.2461, allocations: 0.909 MB / 465.4 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.2461, allocations: 64 / 465.4 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002546/0.2487, allocations: 1.405 MB / 466.8 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003338/0.249, allocations: 224 kB / 467 MB, free: 8.367 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000147/0.2492, allocations: 27.94 kB / 467 MB, free: 8.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005547/0.2497, allocations: 51.95 kB / 467.1 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.53e-05/0.2498, allocations: 40.5 kB / 467.1 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.448e-05/0.2499, allocations: 31.97 kB / 467.1 MB, free: 8.215 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005404/0.2505, allocations: 451 kB / 467.6 MB, free: 7.777 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2505, allocations: 0 / 467.6 MB, free: 7.777 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008944/0.2514, allocations: 323 kB / 467.9 MB, free: 7.461 MB / 334.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.004167/0.2555, allocations: 2.516 MB / 470.4 MB, free: 5.145 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002053/0.2576, allocations: 1.023 MB / 471.4 MB, free: 4.078 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.2576, allocations: 320 / 471.4 MB, free: 4.078 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008209/0.2585, allocations: 497.8 kB / 471.9 MB, free: 3.566 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007733/0.2592, allocations: 157.5 kB / 472.1 MB, free: 3.418 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01075/0.27, allocations: 7.322 MB / 479.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005764/0.2706, allocations: 1.018 MB / 480.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004901/0.2711, allocations: 126.4 kB / 480.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004845/0.2716, allocations: 403.3 kB / 480.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2716, allocations: 0 / 480.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04424/0.3158, allocations: 20.14 MB / 0.4893 GB, free: 6.234 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.25/10.56, allocations: 10.69 kB / 0.4893 GB, free: 6.23 MB / 366.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 & python3 -m fmpy simulate --output-file PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 60 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160629.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629.pipe 2>&1)