Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.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_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704",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.03042/0.03042, allocations: 5.398 MB / 21.03 MB, free: 2.02 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.001282/0.001282, allocations: 104.1 kB / 23.04 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 196.9 kB / 25.15 MB, free: 348 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.416/1.416, allocations: 222.9 MB / 250 MB, free: 8.414 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01001/0.01001, allocations: 2.307 MB / 303.7 MB, free: 6.48 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00259/0.00259, allocations: 95.84 kB / 419.1 MB, free: 23.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09886/0.1015, allocations: 51.21 MB / 470.4 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704): time 0.009427/0.1109, allocations: 6.893 MB / 477.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007464/0.1184, allocations: 4.029 MB / 481.3 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001155/0.1197, allocations: 19.94 kB / 481.3 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00318/0.1229, allocations: 1.169 MB / 482.5 MB, free: 7.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002622/0.1255, allocations: 0.8778 MB / 483.3 MB, free: 6.707 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002186/0.1277, allocations: 0.6062 MB / 484 MB, free: 6.105 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002374/0.1301, allocations: 1.413 MB / 485.4 MB, free: 4.688 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001985/0.1321, allocations: 1.021 MB / 486.4 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001268/0.1334, allocations: 0.5565 MB / 486.9 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001345/0.1348, allocations: 0.6924 MB / 487.6 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002917/0.1351, allocations: 140 kB / 487.8 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001284/0.1364, allocations: 431.7 kB / 488.2 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003372/0.1367, allocations: 298.9 kB / 488.5 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008276/0.1375, allocations: 0.6297 MB / 489.1 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003095/0.1406, allocations: 1.767 MB / 490.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1407, allocations: 0 / 490.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1407, allocations: 0 / 490.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.64e-05/0.1407, allocations: 4 kB / 490.9 MB, free: 15.12 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: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.004532/0.1453, allocations: 1.839 MB / 492.7 MB, free: 13.22 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.1453, allocations: 8.031 kB / 492.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000222/0.1455, allocations: 160.6 kB / 492.9 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002186/0.1477, allocations: 379.8 kB / 493.3 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001985/0.1497, allocations: 0.8208 MB / 494.1 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.083e-05/0.1498, allocations: 78 kB / 494.2 MB, free: 11.74 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001735/0.15, allocations: 100 kB / 494.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002198/0.1522, allocations: 1.134 MB / 495.4 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.059e-05/0.1523, allocations: 3.938 kB / 495.4 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001051/0.1524, allocations: 44 kB / 495.4 MB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.65e-05/0.1524, allocations: 24 kB / 495.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002082/0.1545, allocations: 0.9485 MB / 496.4 MB, free: 9.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006696/0.1612, allocations: 4.323 MB / 0.489 GB, free: 4.902 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002881/0.1641, allocations: 1.669 MB / 0.4906 GB, free: 3.012 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007061/0.1649, allocations: 315.9 kB / 0.4909 GB, free: 2.691 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001176/0.165, allocations: 101.5 kB / 0.491 GB, free: 2.574 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009003/0.1659, allocations: 454.6 kB / 0.4915 GB, free: 2.102 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.625e-06/0.1659, allocations: 0 / 0.4915 GB, free: 2.102 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005792/0.1717, allocations: 1.553 MB / 0.493 GB, free: 0.5078 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001726/0.1719, allocations: 277.6 kB / 0.4932 GB, free: 180 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009785/0.1729, allocations: 0.6643 MB / 0.4939 GB, free: 15.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.586e-05/0.173, allocations: 45.73 kB / 0.4939 GB, free: 15.45 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004628/0.1734, allocations: 0.5311 MB / 0.4944 GB, free: 14.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002233/0.1737, allocations: 222.2 kB / 0.4947 GB, free: 14.69 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003069/0.174, allocations: 190.5 kB / 0.4948 GB, free: 14.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002089/0.1742, allocations: 382.8 kB / 0.4952 GB, free: 14.11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000677/0.1749, allocations: 289.8 kB / 0.4955 GB, free: 13.83 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000883/0.1758, allocations: 0.5324 MB / 0.496 GB, free: 13.19 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001616/0.1774, allocations: 0.9179 MB / 0.4969 GB, free: 12.15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/0.1774, allocations: 4 kB / 0.4969 GB, free: 12.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002565/0.18, allocations: 1.079 MB / 0.498 GB, free: 11.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.098e-05/0.1801, allocations: 63.39 kB / 0.498 GB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.055e-05/0.1801, allocations: 8 kB / 0.498 GB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004964/0.1806, allocations: 93 kB / 0.4981 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008937/0.1815, allocations: 211.7 kB / 0.4983 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001802/0.1833, allocations: 1.582 MB / 0.4999 GB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008616/0.1842, allocations: 107.5 kB / 0.5 GB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.492e-05/0.1843, allocations: 47.97 kB / 0.5 GB, free: 8.781 MB / 382.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.0005993/0.1849, allocations: 343.5 kB / 0.5003 GB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001904/0.1851, allocations: 91.38 kB / 0.5004 GB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002014/0.1871, allocations: 0.9129 MB / 0.5013 GB, free: 7.395 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.1871, allocations: 12 kB / 0.5013 GB, free: 7.383 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.1872, allocations: 0 / 0.5013 GB, free: 7.383 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.1872, allocations: 3.984 kB / 0.5013 GB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00596/0.1931, allocations: 2.204 MB / 0.5035 GB, free: 5.094 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.236e-05/0.1932, allocations: 8.062 kB / 0.5035 GB, free: 5.086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004003/0.1936, allocations: 83.83 kB / 0.5036 GB, free: 5.004 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009019/0.1945, allocations: 330.3 kB / 0.5039 GB, free: 4.672 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.266e-05/0.1946, allocations: 23.97 kB / 0.5039 GB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001483/0.1961, allocations: 0.8936 MB / 0.5048 GB, free: 3.723 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.1961, allocations: 3.938 kB / 0.5048 GB, free: 3.719 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005352/0.2014, allocations: 1.635 MB / 0.5064 GB, free: 2.039 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004081/0.2019, allocations: 224.3 kB / 0.5066 GB, free: 1.801 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001443/0.202, allocations: 20 kB / 0.5066 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005704/0.2026, allocations: 51.95 kB / 0.5067 GB, free: 1.73 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.2027, allocations: 36.39 kB / 0.5067 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.789e-05/0.2028, allocations: 39.95 kB / 0.5067 GB, free: 1.656 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006488/0.2035, allocations: 463 kB / 0.5072 GB, free: 1.207 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2035, allocations: 0 / 0.5072 GB, free: 1.207 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009728/0.2045, allocations: 319.2 kB / 0.5075 GB, free: 0.8945 MB / 382.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.203/0.4075, allocations: 2.743 MB / 0.5102 GB, free: 45.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001996/0.4095, allocations: 0.9633 MB / 0.5111 GB, free: 45.01 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.4096, allocations: 0 / 0.5111 GB, free: 45.01 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008325/0.4104, allocations: 487.8 kB / 0.5116 GB, free: 44.88 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009823/0.4114, allocations: 178.7 kB / 0.5117 GB, free: 44.88 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0107/0.4221, allocations: 6.99 MB / 0.5186 GB, free: 41.33 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006761/0.4228, allocations: 1.008 MB / 0.5195 GB, free: 40.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005964/0.4234, allocations: 127.3 kB / 0.5197 GB, free: 40.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004875/0.4239, allocations: 391.9 kB / 0.52 GB, free: 40.29 MB / 382.1 MB Notification: Performance of SimCode: time 1.503e-06/0.4239, allocations: 0 / 0.52 GB, free: 40.29 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07095/0.4949, allocations: 20.62 MB / 0.5402 GB, free: 28.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.83/16.33, allocations: 15.09 kB / 0.5402 GB, free: 28.5 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704_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_20160704.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe 2>&1)