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.03011/0.03011, allocations: 5.396 MB / 20.9 MB, free: 1.414 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.00541/0.00541, allocations: 98.28 kB / 22.88 MB, free: 0.7773 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.001032/0.001032, allocations: 195.2 kB / 25 MB, free: 276 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.232/1.232, allocations: 222.9 MB / 249.9 MB, free: 8.523 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009105/0.009105, allocations: 2.315 MB / 303.5 MB, free: 6.578 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001724/0.001724, allocations: 95.84 kB / 367.3 MB, free: 6.805 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1685/0.1703, allocations: 51.21 MB / 418.5 MB, free: 26.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808): time 0.005629/0.1759, allocations: 6.84 MB / 425.3 MB, free: 19.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004163/0.1801, allocations: 3.943 MB / 429.3 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006034/0.1807, allocations: 16 kB / 429.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002128/0.1829, allocations: 1.158 MB / 430.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001339/0.1843, allocations: 0.8584 MB / 431.3 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001262/0.1855, allocations: 0.5549 MB / 431.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008249/0.1864, allocations: 1.394 MB / 433.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009465/0.1873, allocations: 1.021 MB / 434.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003668/0.1877, allocations: 0.5604 MB / 434.8 MB, free: 10 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005202/0.1882, allocations: 0.6809 MB / 435.5 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001319/0.1884, allocations: 144 kB / 435.6 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005435/0.1889, allocations: 435.7 kB / 436.1 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001566/0.1891, allocations: 314.8 kB / 436.4 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003564/0.1894, allocations: 0.6375 MB / 437 MB, free: 7.805 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001084/0.1905, allocations: 1.772 MB / 438.8 MB, free: 6.027 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1905, allocations: 0 / 438.8 MB, free: 6.027 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1906, allocations: 0 / 438.8 MB, free: 6.027 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.662e-05/0.1906, allocations: 0 / 438.8 MB, free: 6.027 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.003144/0.1937, allocations: 1.82 MB / 440.6 MB, free: 4.141 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.947e-05/0.1938, allocations: 8.031 kB / 440.6 MB, free: 4.133 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001318/0.1939, allocations: 156.9 kB / 440.8 MB, free: 3.969 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001866/0.1958, allocations: 387 kB / 441.1 MB, free: 3.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001349/0.1971, allocations: 0.8242 MB / 442 MB, free: 2.719 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.062e-05/0.1972, allocations: 78.08 kB / 442 MB, free: 2.641 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.1973, allocations: 108 kB / 442.2 MB, free: 2.535 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001511/0.1988, allocations: 1.169 MB / 443.3 MB, free: 1.305 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.54e-05/0.1989, allocations: 11.94 kB / 443.3 MB, free: 1.293 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.393e-05/0.199, allocations: 40 kB / 443.4 MB, free: 1.254 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.416e-05/0.199, allocations: 28 kB / 443.4 MB, free: 1.227 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001664/0.2006, allocations: 1.07 MB / 444.5 MB, free: 164 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005423/0.2061, allocations: 4.376 MB / 448.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002495/0.2086, allocations: 1.744 MB / 450.6 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006233/0.2092, allocations: 327.8 kB / 450.9 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.924e-05/0.2093, allocations: 101.6 kB / 451 MB, free: 9.176 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007704/0.2101, allocations: 461.7 kB / 451.5 MB, free: 8.699 MB / 318.1 MB Notification: Performance of pre-optimization done (n=69): time 2.074e-06/0.2101, allocations: 4 kB / 451.5 MB, free: 8.695 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.005573/0.2157, allocations: 1.592 MB / 453.1 MB, free: 7.062 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.322e-05/0.2158, allocations: 222.2 kB / 453.3 MB, free: 6.797 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007067/0.2165, allocations: 0.6485 MB / 453.9 MB, free: 6.141 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.048e-05/0.2166, allocations: 53.62 kB / 454 MB, free: 6.082 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003066/0.2169, allocations: 0.518 MB / 454.5 MB, free: 5.555 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001601/0.2171, allocations: 240.8 kB / 454.7 MB, free: 5.316 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002463/0.2173, allocations: 178.5 kB / 454.9 MB, free: 5.137 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.2174, allocations: 390.8 kB / 455.3 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006186/0.2181, allocations: 289.8 kB / 455.6 MB, free: 4.461 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007453/0.2188, allocations: 0.5387 MB / 456.1 MB, free: 3.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001381/0.2202, allocations: 0.9322 MB / 457 MB, free: 2.766 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.2202, allocations: 0 / 457 MB, free: 2.766 MB / 318.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002072/0.2223, allocations: 1.114 MB / 458.2 MB, free: 1.629 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.103e-05/0.2224, allocations: 67.39 kB / 458.2 MB, free: 1.551 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.2224, allocations: 8 kB / 458.2 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004524/0.2229, allocations: 92.94 kB / 458.3 MB, free: 1.449 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008128/0.2237, allocations: 219.7 kB / 458.5 MB, free: 1.234 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001367/0.2251, allocations: 1.582 MB / 460.1 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006774/0.2257, allocations: 111.2 kB / 460.2 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.511e-05/0.2258, allocations: 47.97 kB / 460.3 MB, free: 15.36 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.000364/0.2262, allocations: 343.1 kB / 460.6 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/0.2263, allocations: 79.06 kB / 460.7 MB, free: 14.92 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001958/0.2283, allocations: 1.007 MB / 461.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.216e-06/0.2283, allocations: 12 kB / 461.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.983e-06/0.2283, allocations: 3.938 kB / 461.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.2283, allocations: 3.984 kB / 461.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005669/0.234, allocations: 2.306 MB / 464 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.234, allocations: 0 / 464 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003526/0.2344, allocations: 99.92 kB / 464.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007573/0.2352, allocations: 330.2 kB / 464.4 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.003e-05/0.2352, allocations: 23.98 kB / 464.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00119/0.2364, allocations: 0.909 MB / 465.4 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2364, allocations: 3.938 kB / 465.4 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002434/0.2389, allocations: 1.401 MB / 466.8 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000245/0.2391, allocations: 227.9 kB / 467 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001222/0.2393, allocations: 27.94 kB / 467 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005255/0.2398, allocations: 43.97 kB / 467.1 MB, free: 8.328 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.73e-05/0.2399, allocations: 44.5 kB / 467.1 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.436e-05/0.2399, allocations: 31.97 kB / 467.1 MB, free: 8.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004786/0.2404, allocations: 451 kB / 467.6 MB, free: 7.812 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2404, allocations: 0 / 467.6 MB, free: 7.812 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007839/0.2412, allocations: 319 kB / 467.9 MB, free: 7.5 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.003843/0.2451, allocations: 2.514 MB / 470.4 MB, free: 5.184 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001894/0.247, allocations: 1.022 MB / 471.4 MB, free: 4.117 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.247, allocations: 0 / 471.4 MB, free: 4.117 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007777/0.2478, allocations: 0.4915 MB / 471.9 MB, free: 3.602 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007268/0.2485, allocations: 156.3 kB / 472.1 MB, free: 3.457 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009714/0.2582, allocations: 7.325 MB / 479.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005005/0.2588, allocations: 1.018 MB / 480.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004395/0.2592, allocations: 138.3 kB / 480.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004497/0.2597, allocations: 399.3 kB / 480.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2597, allocations: 7.938 kB / 480.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06215/0.3218, allocations: 20.12 MB / 0.4893 GB, free: 6.273 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.29/10.62, allocations: 11.03 kB / 0.4893 GB, free: 6.266 MB / 366.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 & python3 -m fmpy simulate --output-file PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808_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_20160808.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.pipe 2>&1)