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.02919/0.02919, allocations: 5.393 MB / 21.03 MB, free: 1.586 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.007577/0.007577, allocations: 89.03 kB / 23.02 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.001221/0.001221, allocations: 194.8 kB / 25.14 MB, free: 160 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.335/1.335, allocations: 222.9 MB / 250 MB, free: 8.445 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009727/0.009728, allocations: 2.321 MB / 303.7 MB, free: 6.496 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001729/0.001729, allocations: 100.2 kB / 419.1 MB, free: 23.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09822/0.09996, allocations: 51.21 MB / 470.3 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004): time 0.008994/0.109, allocations: 6.897 MB / 477.2 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007477/0.1165, allocations: 4.021 MB / 481.3 MB, free: 8.805 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00136/0.1179, allocations: 23.94 kB / 481.3 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003265/0.1212, allocations: 1.186 MB / 482.5 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002671/0.1239, allocations: 0.8896 MB / 483.4 MB, free: 6.699 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002318/0.1263, allocations: 0.6208 MB / 484 MB, free: 6.086 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001898/0.1282, allocations: 1.409 MB / 485.4 MB, free: 4.672 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001477/0.1297, allocations: 1.017 MB / 486.4 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007385/0.1304, allocations: 0.572 MB / 487 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008531/0.1313, allocations: 0.6769 MB / 487.7 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001897/0.1315, allocations: 140 kB / 487.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009323/0.1324, allocations: 435.6 kB / 488.2 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002833/0.1327, allocations: 310.8 kB / 488.5 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000651/0.1334, allocations: 0.6219 MB / 489.1 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00199/0.1354, allocations: 1.775 MB / 490.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1354, allocations: 0 / 490.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.1354, allocations: 0 / 490.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.97e-05/0.1354, allocations: 0 / 490.9 MB, free: 15.1 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.004018/0.1394, allocations: 1.832 MB / 492.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.1395, allocations: 12.03 kB / 492.8 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002024/0.1397, allocations: 156.6 kB / 492.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002076/0.1418, allocations: 383.8 kB / 493.3 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001708/0.1435, allocations: 0.8246 MB / 494.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.726e-05/0.1436, allocations: 81.98 kB / 494.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001528/0.1437, allocations: 104 kB / 494.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001959/0.1457, allocations: 1.126 MB / 495.4 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.815e-05/0.1458, allocations: 0 / 495.4 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.8e-05/0.1459, allocations: 44 kB / 495.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.093e-05/0.1459, allocations: 24 kB / 495.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001926/0.1478, allocations: 0.9602 MB / 496.5 MB, free: 9.395 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005986/0.1538, allocations: 4.307 MB / 0.489 GB, free: 4.883 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00262/0.1565, allocations: 1.666 MB / 0.4907 GB, free: 2.992 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006644/0.1571, allocations: 322 kB / 0.491 GB, free: 2.668 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.067e-05/0.1572, allocations: 97.48 kB / 0.4911 GB, free: 2.555 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008182/0.1581, allocations: 450.7 kB / 0.4915 GB, free: 2.086 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.796e-06/0.1581, allocations: 0 / 0.4915 GB, free: 2.086 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005668/0.1638, allocations: 1.56 MB / 0.493 GB, free: 496 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001453/0.1639, allocations: 273.6 kB / 0.4933 GB, free: 160 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008656/0.1648, allocations: 0.6682 MB / 0.4939 GB, free: 15.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.769e-05/0.1649, allocations: 37.7 kB / 0.494 GB, free: 15.43 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003977/0.1653, allocations: 0.5272 MB / 0.4945 GB, free: 14.9 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001878/0.1655, allocations: 230.2 kB / 0.4947 GB, free: 14.67 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000273/0.1657, allocations: 186.5 kB / 0.4949 GB, free: 14.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.1659, allocations: 390.7 kB / 0.4952 GB, free: 14.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006318/0.1665, allocations: 277.8 kB / 0.4955 GB, free: 13.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007937/0.1674, allocations: 0.5441 MB / 0.496 GB, free: 13.17 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00145/0.1688, allocations: 0.9217 MB / 0.4969 GB, free: 12.12 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/0.1688, allocations: 4 kB / 0.4969 GB, free: 12.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002156/0.171, allocations: 1.071 MB / 0.498 GB, free: 11.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.922e-05/0.1711, allocations: 63.39 kB / 0.498 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.1711, allocations: 8 kB / 0.4981 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004985/0.1716, allocations: 84.78 kB / 0.4981 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008509/0.1724, allocations: 227.6 kB / 0.4984 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001511/0.174, allocations: 1.574 MB / 0.4999 GB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007192/0.1747, allocations: 111.4 kB / 0.5 GB, free: 8.805 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.991e-05/0.1748, allocations: 51.97 kB / 0.5 GB, free: 8.754 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.0004611/0.1753, allocations: 335.5 kB / 0.5004 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.1754, allocations: 95.38 kB / 0.5005 GB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001902/0.1773, allocations: 0.9051 MB / 0.5013 GB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.1773, allocations: 8 kB / 0.5013 GB, free: 7.371 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.554e-06/0.1773, allocations: 0 / 0.5013 GB, free: 7.371 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.791e-05/0.1774, allocations: 7.984 kB / 0.5014 GB, free: 7.363 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005756/0.1831, allocations: 2.223 MB / 0.5035 GB, free: 5.059 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1831, allocations: 0 / 0.5035 GB, free: 5.059 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003435/0.1835, allocations: 87.89 kB / 0.5036 GB, free: 4.973 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008345/0.1843, allocations: 330.2 kB / 0.5039 GB, free: 4.641 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.179e-05/0.1844, allocations: 27.97 kB / 0.504 GB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001257/0.1857, allocations: 0.8819 MB / 0.5048 GB, free: 3.699 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.235e-06/0.1857, allocations: 11.91 kB / 0.5048 GB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005144/0.1909, allocations: 1.631 MB / 0.5064 GB, free: 2.012 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004682/0.1913, allocations: 224.4 kB / 0.5066 GB, free: 1.773 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002178/0.1916, allocations: 20 kB / 0.5067 GB, free: 1.754 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006376/0.1922, allocations: 47.95 kB / 0.5067 GB, free: 1.707 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/0.1923, allocations: 44.39 kB / 0.5067 GB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.685e-05/0.1924, allocations: 27.97 kB / 0.5068 GB, free: 1.637 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007588/0.1932, allocations: 459 kB / 0.5072 GB, free: 1.191 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1932, allocations: 0 / 0.5072 GB, free: 1.191 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001197/0.1944, allocations: 327.1 kB / 0.5075 GB, free: 0.8711 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.2301/0.4245, allocations: 2.739 MB / 0.5102 GB, free: 45.58 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002054/0.4266, allocations: 0.9642 MB / 0.5111 GB, free: 45.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.4266, allocations: 0 / 0.5111 GB, free: 45.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008652/0.4275, allocations: 489.4 kB / 0.5116 GB, free: 45.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001049/0.4286, allocations: 179.7 kB / 0.5118 GB, free: 45.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01094/0.4395, allocations: 6.995 MB / 0.5186 GB, free: 41.65 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007404/0.4403, allocations: 1.007 MB / 0.5196 GB, free: 40.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005332/0.4408, allocations: 123.7 kB / 0.5197 GB, free: 40.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004953/0.4413, allocations: 390.2 kB / 0.5201 GB, free: 40.61 MB / 382.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4414, allocations: 0 / 0.5201 GB, free: 40.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05679/0.4981, allocations: 20.63 MB / 0.5402 GB, free: 28.85 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.9/15.4, allocations: 12.61 kB / 0.5402 GB, free: 28.84 MB / 382.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)