Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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_Comax_Measurement_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160629",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_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.03649/0.03649, allocations: 5.391 MB / 20.89 MB, free: 1.395 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.00764/0.00764, allocations: 101.9 kB / 22.89 MB, free: 0.7539 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.001078/0.001078, allocations: 194.1 kB / 25 MB, free: 148 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.253/1.253, 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.008917/0.008917, allocations: 2.328 MB / 303.5 MB, free: 6.531 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001779/0.001779, allocations: 103.8 kB / 367.3 MB, free: 6.754 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.184/0.1858, allocations: 51.2 MB / 418.5 MB, free: 26.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629): time 0.005818/0.1917, allocations: 6.887 MB / 425.4 MB, free: 19.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004777/0.1965, allocations: 4.025 MB / 429.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005492/0.1971, allocations: 20 kB / 429.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002133/0.1992, allocations: 1.165 MB / 430.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001582/0.2008, allocations: 0.8739 MB / 431.4 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00139/0.2022, allocations: 0.6247 MB / 432.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009187/0.2032, allocations: 1.402 MB / 433.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00101/0.2042, allocations: 1.009 MB / 434.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004275/0.2046, allocations: 0.5604 MB / 435 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000558/0.2052, allocations: 0.6885 MB / 435.7 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001323/0.2053, allocations: 140 kB / 435.9 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005966/0.2059, allocations: 435.7 kB / 436.3 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001662/0.2061, allocations: 298.9 kB / 436.6 MB, free: 8.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003591/0.2065, allocations: 0.6297 MB / 437.2 MB, free: 7.547 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001133/0.2076, allocations: 1.745 MB / 439 MB, free: 5.797 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.2076, allocations: 0 / 439 MB, free: 5.797 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2076, allocations: 0 / 439 MB, free: 5.797 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.231e-05/0.2076, allocations: 0 / 439 MB, free: 5.797 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: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.003289/0.2109, allocations: 1.809 MB / 440.8 MB, free: 3.922 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.211, allocations: 11.97 kB / 440.8 MB, free: 3.91 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001398/0.2111, allocations: 156.6 kB / 440.9 MB, free: 3.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001903/0.213, allocations: 375.2 kB / 441.3 MB, free: 3.383 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00133/0.2144, allocations: 0.8008 MB / 442.1 MB, free: 2.539 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.872e-05/0.2144, allocations: 85.98 kB / 442.2 MB, free: 2.453 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.2146, allocations: 103.9 kB / 442.3 MB, free: 2.352 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001519/0.2161, allocations: 1.13 MB / 443.4 MB, free: 1.164 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.53e-05/0.2161, allocations: 3.938 kB / 443.4 MB, free: 1.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.493e-05/0.2162, allocations: 44 kB / 443.5 MB, free: 1.117 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.2162, allocations: 24 kB / 443.5 MB, free: 1.094 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001557/0.2178, allocations: 0.9447 MB / 444.4 MB, free: 156 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005295/0.2231, allocations: 4.341 MB / 448.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002356/0.2255, allocations: 1.67 MB / 450.4 MB, free: 9.707 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006231/0.2261, allocations: 316.6 kB / 450.7 MB, free: 9.391 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.533e-05/0.2262, allocations: 89.48 kB / 450.8 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007628/0.227, allocations: 466.6 kB / 451.3 MB, free: 8.797 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.224e-06/0.227, allocations: 0 / 451.3 MB, free: 8.797 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.005408/0.2324, allocations: 1.545 MB / 452.8 MB, free: 7.219 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.2325, allocations: 273.6 kB / 453.1 MB, free: 6.891 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007417/0.2333, allocations: 0.6642 MB / 453.8 MB, free: 6.219 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.649e-05/0.2333, allocations: 41.7 kB / 453.8 MB, free: 6.172 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003208/0.2337, allocations: 0.514 MB / 454.3 MB, free: 5.648 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001484/0.2338, allocations: 221 kB / 454.5 MB, free: 5.43 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002471/0.2341, allocations: 186.4 kB / 454.7 MB, free: 5.242 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.2342, allocations: 386.8 kB / 455.1 MB, free: 4.855 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005999/0.2348, allocations: 281.8 kB / 455.4 MB, free: 4.578 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007249/0.2355, allocations: 0.5364 MB / 455.9 MB, free: 3.934 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001317/0.2369, allocations: 0.9215 MB / 456.8 MB, free: 2.883 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.2369, allocations: 4 kB / 456.8 MB, free: 2.879 MB / 318.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002009/0.2389, allocations: 1.067 MB / 457.9 MB, free: 1.789 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.351e-05/0.239, allocations: 63.34 kB / 458 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.239, allocations: 8.281 kB / 458 MB, free: 1.707 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004441/0.2394, allocations: 84.78 kB / 458.1 MB, free: 1.621 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008312/0.2403, allocations: 223.7 kB / 458.3 MB, free: 1.402 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00134/0.2416, allocations: 1.581 MB / 459.9 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006956/0.2423, allocations: 115.2 kB / 460 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-05/0.2424, allocations: 43.98 kB / 460 MB, free: 15.52 MB / 334.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.0003993/0.2428, allocations: 339.6 kB / 460.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.243, allocations: 83 kB / 460.4 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001828/0.2448, allocations: 0.9322 MB / 461.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.2448, allocations: 4 kB / 461.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.2448, allocations: 4 kB / 461.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.2448, allocations: 0 / 461.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005459/0.2503, allocations: 2.202 MB / 463.6 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.2503, allocations: 4 kB / 463.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003281/0.2507, allocations: 83.84 kB / 463.6 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007768/0.2514, allocations: 330.3 kB / 464 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.251e-05/0.2515, allocations: 27.97 kB / 464 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001214/0.2527, allocations: 0.8936 MB / 464.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.2527, allocations: 3.938 kB / 464.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004901/0.2576, allocations: 1.63 MB / 466.5 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003319/0.258, allocations: 223.9 kB / 466.7 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001653/0.2582, allocations: 23.98 kB / 466.8 MB, free: 8.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005651/0.2587, allocations: 43.97 kB / 466.8 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.017e-05/0.2588, allocations: 40.38 kB / 466.8 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.628e-05/0.2589, allocations: 27.98 kB / 466.9 MB, free: 8.406 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005796/0.2595, allocations: 471 kB / 467.3 MB, free: 7.953 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2595, allocations: 0 / 467.3 MB, free: 7.953 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009278/0.2604, allocations: 311 kB / 467.6 MB, free: 7.648 MB / 334.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.006414/0.2669, allocations: 2.748 MB / 470.4 MB, free: 5.094 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001977/0.2688, allocations: 0.9824 MB / 471.4 MB, free: 4.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.2689, allocations: 1.438 kB / 471.4 MB, free: 4.07 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008105/0.2697, allocations: 493 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.0008949/0.2706, allocations: 180.3 kB / 472 MB, free: 3.395 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01059/0.2812, allocations: 7.254 MB / 479.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005434/0.2818, allocations: 1.014 MB / 480.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005007/0.2823, allocations: 126.4 kB / 480.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004554/0.2827, allocations: 387.3 kB / 480.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.2828, allocations: 0 / 480.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04721/0.33, allocations: 20.24 MB / 0.4893 GB, free: 6.191 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/10.61, allocations: 6.672 kB / 0.4893 GB, free: 6.188 MB / 366.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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_Comax_Measurement_20160629.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.pipe 2>&1)