Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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) Running command: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160626_to_20161004",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_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.02795/0.02795, allocations: 5.391 MB / 20.89 MB, free: 1.402 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.006828/0.006828, allocations: 97.55 kB / 22.88 MB, free: 0.7461 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.001127/0.001127, allocations: 196.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.243/1.243, allocations: 222.9 MB / 249.9 MB, free: 8.504 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008928/0.008928, allocations: 2.317 MB / 303.5 MB, free: 6.559 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001789/0.001789, allocations: 91.86 kB / 367.3 MB, free: 6.781 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1718/0.1736, allocations: 51.21 MB / 418.5 MB, free: 26.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004): time 0.005975/0.1796, allocations: 6.887 MB / 425.4 MB, free: 19.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004428/0.184, allocations: 4.013 MB / 429.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004699/0.1845, allocations: 19.94 kB / 429.4 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002051/0.1866, allocations: 1.173 MB / 430.6 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001568/0.1882, allocations: 0.874 MB / 431.4 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001404/0.1896, allocations: 0.6172 MB / 432.1 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009115/0.1905, allocations: 1.406 MB / 433.5 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009928/0.1915, allocations: 1.021 MB / 434.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004356/0.192, allocations: 0.5604 MB / 435.1 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000553/0.1925, allocations: 0.6912 MB / 435.7 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001293/0.1927, allocations: 140 kB / 435.9 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005834/0.1933, allocations: 431.7 kB / 436.3 MB, free: 8.508 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001565/0.1934, allocations: 299 kB / 436.6 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003433/0.1938, allocations: 0.6335 MB / 437.2 MB, free: 7.578 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001119/0.1949, allocations: 1.741 MB / 439 MB, free: 5.832 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1949, allocations: 0 / 439 MB, free: 5.832 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1949, allocations: 4 kB / 439 MB, free: 5.828 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.432e-05/0.1949, allocations: 0 / 439 MB, free: 5.828 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.003233/0.1982, allocations: 1.798 MB / 440.8 MB, free: 3.961 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.1982, allocations: 12.03 kB / 440.8 MB, free: 3.949 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001347/0.1984, allocations: 152.6 kB / 440.9 MB, free: 3.793 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001894/0.2003, allocations: 379.1 kB / 441.3 MB, free: 3.422 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001332/0.2016, allocations: 0.8046 MB / 442.1 MB, free: 2.574 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.019e-05/0.2017, allocations: 78 kB / 442.2 MB, free: 2.496 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001187/0.2018, allocations: 103.9 kB / 442.3 MB, free: 2.395 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001504/0.2033, allocations: 1.13 MB / 443.4 MB, free: 1.207 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.416e-05/0.2033, allocations: 3.938 kB / 443.4 MB, free: 1.203 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.337e-05/0.2034, allocations: 48 kB / 443.5 MB, free: 1.156 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/0.2034, allocations: 28 kB / 443.5 MB, free: 1.129 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001547/0.205, allocations: 0.9525 MB / 444.4 MB, free: 184 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005533/0.2105, allocations: 4.326 MB / 448.8 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00243/0.213, allocations: 1.676 MB / 450.4 MB, free: 9.742 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006186/0.2136, allocations: 319 kB / 450.8 MB, free: 9.426 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.676e-05/0.2137, allocations: 93.47 kB / 450.8 MB, free: 9.316 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007794/0.2145, allocations: 458.6 kB / 451.3 MB, free: 8.836 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 4.819e-06/0.2145, allocations: 3.984 kB / 451.3 MB, free: 8.832 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.005405/0.2199, allocations: 1.545 MB / 452.8 MB, free: 7.254 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001298/0.2201, allocations: 281.6 kB / 453.1 MB, free: 6.918 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008392/0.2209, allocations: 0.6565 MB / 453.8 MB, free: 6.254 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.106e-05/0.221, allocations: 45.7 kB / 453.8 MB, free: 6.203 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003566/0.2213, allocations: 0.5101 MB / 454.3 MB, free: 5.684 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000166/0.2215, allocations: 217.1 kB / 454.5 MB, free: 5.469 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002521/0.2218, allocations: 190.4 kB / 454.7 MB, free: 5.277 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.2219, allocations: 390.7 kB / 455.1 MB, free: 4.887 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005859/0.2225, allocations: 281.8 kB / 455.4 MB, free: 4.609 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007343/0.2233, allocations: 0.5365 MB / 455.9 MB, free: 3.965 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001316/0.2246, allocations: 0.9215 MB / 456.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.2246, allocations: 0 / 456.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002006/0.2266, allocations: 1.067 MB / 457.9 MB, free: 1.824 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.701e-05/0.2267, allocations: 71.39 kB / 458 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.2267, allocations: 8 kB / 458 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004466/0.2271, allocations: 80.73 kB / 458.1 MB, free: 1.652 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008/0.2279, allocations: 224.1 kB / 458.3 MB, free: 1.434 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001355/0.2293, allocations: 1.581 MB / 459.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006976/0.23, allocations: 107.1 kB / 460 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.235e-05/0.2301, allocations: 47.97 kB / 460 MB, free: 15.55 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.0004002/0.2305, allocations: 343.6 kB / 460.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/0.2306, allocations: 83 kB / 460.4 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001788/0.2324, allocations: 0.9205 MB / 461.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.2325, allocations: 11.94 kB / 461.4 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.2325, allocations: 0 / 461.4 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.2325, allocations: 3.984 kB / 461.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005436/0.2379, allocations: 2.206 MB / 463.6 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.2379, allocations: 0 / 463.6 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003279/0.2383, allocations: 87.89 kB / 463.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007508/0.239, allocations: 330.2 kB / 464 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.013e-05/0.2391, allocations: 27.97 kB / 464 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00117/0.2403, allocations: 0.8857 MB / 464.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.2403, allocations: 7.969 kB / 464.9 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004862/0.2452, allocations: 1.626 MB / 466.5 MB, free: 8.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002811/0.2454, allocations: 220 kB / 466.7 MB, free: 8.586 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001263/0.2456, allocations: 24 kB / 466.8 MB, free: 8.562 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005385/0.2461, allocations: 43.97 kB / 466.8 MB, free: 8.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.336e-05/0.2462, allocations: 48.38 kB / 466.9 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.322e-05/0.2463, allocations: 31.91 kB / 466.9 MB, free: 8.438 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005139/0.2468, allocations: 463 kB / 467.3 MB, free: 7.992 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2468, allocations: 0 / 467.3 MB, free: 7.992 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008576/0.2477, allocations: 319 kB / 467.7 MB, free: 7.68 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.006273/0.254, allocations: 2.736 MB / 470.4 MB, free: 5.133 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00197/0.2559, allocations: 0.9837 MB / 471.4 MB, free: 4.109 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.256, allocations: 4.125 kB / 471.4 MB, free: 4.105 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007972/0.2568, allocations: 481.2 kB / 471.8 MB, free: 3.613 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008516/0.2576, allocations: 181.5 kB / 472 MB, free: 3.438 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009775/0.2674, allocations: 7.265 MB / 479.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004945/0.2679, allocations: 1.006 MB / 480.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004642/0.2684, allocations: 122.4 kB / 480.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004317/0.2688, allocations: 395.3 kB / 480.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2688, allocations: 0 / 480.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04387/0.3127, allocations: 20.25 MB / 0.4893 GB, free: 6.238 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/10.7, allocations: 14.98 kB / 0.4893 GB, free: 6.23 MB / 366.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004_res.csv --start-time 0 --stop-time 5.8752e+06 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 60 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160626_to_20161004.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.pipe 2>&1)